Example #1
0
 public JThermometer()
 {
   base.\u002Ector((LayoutManager) new CardLayout());
   JThermometer jthermometer = this;
   this.plot = new ThermometerPlot();
   this.plot.setInsets(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
   this.data = new DefaultValueDataset();
   this.plot.setDataset((ValueDataset) this.data);
   JFreeChart.__\u003Cclinit\u003E();
   this.chart = new JFreeChart((string) null, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) this.plot, false);
   ChartPanel.__\u003Cclinit\u003E();
   this.panel = new ChartPanel(this.chart);
   ((Container) this).add((Component) this.panel, (object) "Panel");
   this.setBackground(((Component) this).getBackground());
 }
Example #2
0
 public Compass()
 {
   Compass compass = this;
   this.__\u003C\u003Ecircumference = new DoubleProperty((PropertyHolder) this, "Circumference", 360.0);
   this.__\u003C\u003EringColor = new ColorProperty((PropertyHolder) this, "Ring Color", (Color) Color.YELLOW);
   this.data = new DefaultValueDataset(0.0);
 }