예제 #1
0
 public EncoderDisplay()
 {
   EncoderDisplay encoderDisplay = this;
   this.speedTag = new JLabel("Speed");
   this.distanceTag = new JLabel("Distance");
   this.DPTTag = new JLabel("Distance per Tick");
   this.speed = new Widget.UneditableNumberField();
   this.distance = new Widget.UneditableNumberField();
   this.DPT = new Widget.BindableNumberField((NumberBindable) null);
   this.zero = new JButton("Zero Distance");
 }
예제 #2
0
		/**
		 * Set up the applet's GUI.
		 * As recommended, the init method executes this in the event-dispatching 
		 * thread.
		 */
		public void run()
		{
			Container pane = getContentPane();
			pane.setLayout(new BorderLayout());

			// Build the button controls
			JRadioButton voronoiButton = new JRadioButton("Voronoi Diagram");
			voronoiButton.setActionCommand("voronoi");
			JRadioButton delaunayButton = new JRadioButton("Delaunay Triangulation");
			delaunayButton.setActionCommand("delaunay");
			JButton clearButton = new JButton("Clear");
			clearButton.setActionCommand("clear");
			
			ButtonGroup group = new ButtonGroup();
			group.add(voronoiButton);
			group.add(delaunayButton);
			JPanel buttonPanel = new JPanel();
			buttonPanel.add(voronoiButton);
			buttonPanel.add(delaunayButton);
			buttonPanel.add(clearButton);
			pane.add(buttonPanel, "North");

			// Build the mouse-entry switches
			JLabel circleLabel = new JLabel("Show Empty Circles");
			circleLabel.setName("circles");
			JLabel delaunayLabel = new JLabel("Show Delaunay Edges");
			delaunayLabel.setName("delaunay");
			JLabel voronoiLabel = new JLabel("Show Voronoi Edges");
			voronoiLabel.setName("voronoi");
			JPanel switchPanel = new JPanel();
			switchPanel.add(circleLabel);
			switchPanel.add(new Label("     "));
			switchPanel.add(delaunayLabel);
			switchPanel.add(new Label("     "));
			switchPanel.add(voronoiLabel);
			pane.add(switchPanel, "South");

			// Build the graphics panel
			DelaunayPanel graphicsPanel = new DelaunayPanel();
			graphicsPanel.setBackground(Color.gray);
			pane.add(graphicsPanel, "Center");

			// Register the listeners
			voronoiButton.addActionListener(graphicsPanel);
			delaunayButton.addActionListener(graphicsPanel);
			clearButton.addActionListener(graphicsPanel);
			graphicsPanel.addMouseListener(graphicsPanel);
			circleLabel.addMouseListener(graphicsPanel);
			delaunayLabel.addMouseListener(graphicsPanel);
			voronoiLabel.addMouseListener(graphicsPanel);

			// Initialize the radio buttons
			voronoiButton.doClick();
		}
 public SortButtonRenderer()
 {
   base.\u002Ector();
   SortButtonRenderer sortButtonRenderer = this;
   this.pressedColumn = -1;
   this.pressedColumn = -1;
   this.useLabels = String.instancehelper_equals(UIManager.getLookAndFeel().getID(), (object) "Aqua");
   Border border = UIManager.getBorder((object) "TableHeader.cellBorder");
   if (this.useLabels)
   {
     this.normalLabel = new JLabel();
     this.normalLabel.setHorizontalAlignment(10);
     this.ascendingLabel = new JLabel();
     this.ascendingLabel.setHorizontalAlignment(10);
     this.ascendingLabel.setHorizontalTextPosition(2);
     this.ascendingLabel.setIcon((Icon) new BevelArrowIcon(1, false, false));
     this.descendingLabel = new JLabel();
     this.descendingLabel.setHorizontalAlignment(10);
     this.descendingLabel.setHorizontalTextPosition(2);
     this.descendingLabel.setIcon((Icon) new BevelArrowIcon(0, false, false));
     ((JComponent) this.normalLabel).setBorder(border);
     ((JComponent) this.ascendingLabel).setBorder(border);
     ((JComponent) this.descendingLabel).setBorder(border);
   }
   else
   {
     this.normalButton = new JButton();
     ((AbstractButton) this.normalButton).setMargin(new Insets(0, 0, 0, 0));
     ((AbstractButton) this.normalButton).setHorizontalAlignment(10);
     this.ascendingButton = new JButton();
     ((AbstractButton) this.ascendingButton).setMargin(new Insets(0, 0, 0, 0));
     ((AbstractButton) this.ascendingButton).setHorizontalAlignment(10);
     ((AbstractButton) this.ascendingButton).setHorizontalTextPosition(2);
     ((AbstractButton) this.ascendingButton).setIcon((Icon) new BevelArrowIcon(1, false, false));
     ((AbstractButton) this.ascendingButton).setPressedIcon((Icon) new BevelArrowIcon(1, false, true));
     this.descendingButton = new JButton();
     ((AbstractButton) this.descendingButton).setMargin(new Insets(0, 0, 0, 0));
     ((AbstractButton) this.descendingButton).setHorizontalAlignment(10);
     ((AbstractButton) this.descendingButton).setHorizontalTextPosition(2);
     ((AbstractButton) this.descendingButton).setIcon((Icon) new BevelArrowIcon(0, false, false));
     ((AbstractButton) this.descendingButton).setPressedIcon((Icon) new BevelArrowIcon(0, false, true));
     ((JComponent) this.normalButton).setBorder(border);
     ((JComponent) this.ascendingButton).setBorder(border);
     ((JComponent) this.descendingButton).setBorder(border);
   }
 }
 public InsetsChooserPanel(Insets current)
 {
   base.\u002Ector();
   InsetsChooserPanel insetsChooserPanel = this;
   current = current != null ? current : new Insets(0, 0, 0, 0);
   JTextField.__\u003Cclinit\u003E();
   this.topValueEditor = new JTextField((Document) new IntegerDocument(), new StringBuffer().append("").append((int) current.top).toString(), 0);
   JTextField.__\u003Cclinit\u003E();
   this.leftValueEditor = new JTextField((Document) new IntegerDocument(), new StringBuffer().append("").append((int) current.left).toString(), 0);
   JTextField.__\u003Cclinit\u003E();
   this.bottomValueEditor = new JTextField((Document) new IntegerDocument(), new StringBuffer().append("").append((int) current.bottom).toString(), 0);
   JTextField.__\u003Cclinit\u003E();
   this.rightValueEditor = new JTextField((Document) new IntegerDocument(), new StringBuffer().append("").append((int) current.right).toString(), 0);
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new GridBagLayout());
   ((JComponent) jpanel1).setBorder((Border) new TitledBorder(InsetsChooserPanel.localizationResources.getString("Insets")));
   JPanel jpanel2 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel1 = new JLabel(InsetsChooserPanel.localizationResources.getString("Top"));
   GridBagConstraints gridBagConstraints1 = new GridBagConstraints(1, 0, 3, 1, 0.0, 0.0, 10, 0, new Insets(0, 0, 0, 0), 0, 0);
   ((Container) jpanel2).add((Component) jlabel1, (object) gridBagConstraints1);
   ((Container) jpanel1).add((Component) new JLabel(" "), (object) new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, 10, 1, new Insets(0, 12, 0, 12), 8, 0));
   ((Container) jpanel1).add((Component) this.topValueEditor, (object) new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0));
   ((Container) jpanel1).add((Component) new JLabel(" "), (object) new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0, 10, 1, new Insets(0, 12, 0, 11), 8, 0));
   JPanel jpanel3 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel2 = new JLabel(InsetsChooserPanel.localizationResources.getString("Left"));
   GridBagConstraints gridBagConstraints2 = new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, 10, 1, new Insets(0, 4, 0, 4), 0, 0);
   ((Container) jpanel3).add((Component) jlabel2, (object) gridBagConstraints2);
   ((Container) jpanel1).add((Component) this.leftValueEditor, (object) new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, 10, 1, new Insets(0, 0, 0, 0), 0, 0));
   ((Container) jpanel1).add((Component) new JLabel(" "), (object) new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, 10, 0, new Insets(0, 12, 0, 12), 8, 0));
   ((Container) jpanel1).add((Component) this.rightValueEditor, (object) new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0));
   JPanel jpanel4 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel3 = new JLabel(InsetsChooserPanel.localizationResources.getString("Right"));
   GridBagConstraints gridBagConstraints3 = new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0, 10, 0, new Insets(0, 4, 0, 4), 0, 0);
   ((Container) jpanel4).add((Component) jlabel3, (object) gridBagConstraints3);
   ((Container) jpanel1).add((Component) this.bottomValueEditor, (object) new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0));
   JPanel jpanel5 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel4 = new JLabel(InsetsChooserPanel.localizationResources.getString("Bottom"));
   GridBagConstraints gridBagConstraints4 = new GridBagConstraints(1, 4, 3, 1, 0.0, 0.0, 10, 0, new Insets(0, 0, 0, 0), 0, 0);
   ((Container) jpanel5).add((Component) jlabel4, (object) gridBagConstraints4);
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   ((Container) this).add((Component) jpanel1, (object) "Center");
 }
예제 #5
0
 public AboutPanel(string application, string version, string copyright, string info, Image logo)
 {
   base.\u002Ector();
   AboutPanel aboutPanel = this;
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new GridLayout(4, 1, 0, 4));
   JPanel jpanel2 = new JPanel();
   Font font1 = new Font("Dialog", 1, 14);
   JLabel jlabel1 = RefineryUtilities.createJLabel(application, font1, (Color) Color.black);
   jlabel1.setHorizontalTextPosition(0);
   ((Container) jpanel2).add((Component) jlabel1);
   JPanel jpanel3 = new JPanel();
   Font font2 = new Font("Dialog", 0, 12);
   JLabel jlabel2 = RefineryUtilities.createJLabel(version, font2, (Color) Color.black);
   jlabel2.setHorizontalTextPosition(0);
   ((Container) jpanel3).add((Component) jlabel2);
   JPanel jpanel4 = new JPanel();
   JLabel jlabel3 = RefineryUtilities.createJLabel(copyright, font2, (Color) Color.black);
   jlabel3.setHorizontalTextPosition(0);
   ((Container) jpanel4).add((Component) jlabel3);
   JPanel jpanel5 = new JPanel();
   JLabel jlabel4 = RefineryUtilities.createJLabel(info, font2, (Color) Color.black);
   jlabel4.setHorizontalTextPosition(0);
   ((Container) jpanel5).add((Component) jlabel4);
   ((Container) jpanel1).add((Component) jpanel2);
   ((Container) jpanel1).add((Component) jpanel3);
   ((Container) jpanel1).add((Component) jpanel4);
   ((Container) jpanel1).add((Component) jpanel5);
   ((Container) this).add((Component) jpanel1);
   if (logo == null)
     return;
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel6 = new JPanel((LayoutManager) new BorderLayout());
   JPanel jpanel7 = jpanel6;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel5 = new JLabel((Icon) new ImageIcon(logo));
   ((Container) jpanel7).add((Component) jlabel5);
   ((JComponent) jpanel6).setBorder(BorderFactory.createLineBorder((Color) Color.black));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel8 = new JPanel((LayoutManager) new BorderLayout());
   ((Container) jpanel8).add((Component) jpanel6, (object) "North");
   ((Container) this).add((Component) jpanel8, (object) "West");
 }
예제 #6
0
 public override void init()
 {
   this.setResizable(false);
   JPanel.__\u003Cclinit\u003E();
   Command command = this;
   CardLayout cardLayout1 = new CardLayout();
   CardLayout cardLayout2 = cardLayout1;
   this.layout = cardLayout1;
   this.buttonPanel = new JPanel((LayoutManager) cardLayout2);
   ((JComponent) this.buttonPanel).setOpaque(false);
   this.start = new JButton("start");
   ((JComponent) this.start).setOpaque(false);
   ((AbstractButton) this.start).addActionListener((ActionListener) new Command\u00241(this));
   ((JComponent) this.start).setForeground((Color) this.__\u003C\u003EstartBackground.getValue());
   ((Container) this.buttonPanel).add((Component) this.start, (object) "Start");
   this.cancel = new JButton("cancel");
   ((JComponent) this.cancel).setOpaque(false);
   ((AbstractButton) this.cancel).addActionListener((ActionListener) new Command\u00242(this));
   ((JComponent) this.cancel).setForeground((Color) this.__\u003C\u003EcancelBackground.getValue());
   ((Container) this.buttonPanel).add((Component) this.cancel, (object) "Cancel");
   JLabel.__\u003Cclinit\u003E();
   this.name = new JLabel(this.getFieldName());
   ((Container) this).add((Component) this.name);
   ((Container) this).add((Component) this.buttonPanel);
 }
 public DefaultNumberAxisEditor([In] NumberAxis obj0)
   : base((Axis) obj0)
 {
   DefaultNumberAxisEditor numberAxisEditor = this;
   this.autoRange = obj0.isAutoRange();
   this.minimumValue = obj0.getLowerBound();
   this.maximumValue = obj0.getUpperBound();
   PaintSample.__\u003Cclinit\u003E();
   this.gridPaintSample = new PaintSample((Paint) Color.blue);
   StrokeSample.__\u003Cclinit\u003E();
   this.gridStrokeSample = new StrokeSample((Stroke) new BasicStroke(1f));
   this.availableStrokeSamples = new StrokeSample[3];
   StrokeSample[] strokeSampleArray1 = this.availableStrokeSamples;
   int index1 = 0;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample1 = new StrokeSample((Stroke) new BasicStroke(1f));
   strokeSampleArray1[index1] = strokeSample1;
   StrokeSample[] strokeSampleArray2 = this.availableStrokeSamples;
   int index2 = 1;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample2 = new StrokeSample((Stroke) new BasicStroke(2f));
   strokeSampleArray2[index2] = strokeSample2;
   StrokeSample[] strokeSampleArray3 = this.availableStrokeSamples;
   int index3 = 2;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample3 = new StrokeSample((Stroke) new BasicStroke(3f));
   strokeSampleArray3[index3] = strokeSample3;
   JTabbedPane otherTabs = this.getOtherTabs();
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new LCBLayout(3));
   ((JComponent) jpanel1).setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
   ((Container) jpanel1).add((Component) new JPanel());
   JCheckBox.__\u003Cclinit\u003E();
   this.autoRangeCheckBox = new JCheckBox(DefaultNumberAxisEditor.localizationResources.getString("Auto-adjust_range"), this.autoRange);
   ((AbstractButton) this.autoRangeCheckBox).setActionCommand("AutoRangeOnOff");
   ((AbstractButton) this.autoRangeCheckBox).addActionListener((ActionListener) this);
   ((Container) jpanel1).add((Component) this.autoRangeCheckBox);
   ((Container) jpanel1).add((Component) new JPanel());
   JPanel jpanel2 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel1 = new JLabel(DefaultNumberAxisEditor.localizationResources.getString("Minimum_range_value"));
   ((Container) jpanel2).add((Component) jlabel1);
   JTextField.__\u003Cclinit\u003E();
   this.minimumRangeValue = new JTextField(Double.toString(this.minimumValue));
   ((JComponent) this.minimumRangeValue).setEnabled(!this.autoRange);
   this.minimumRangeValue.setActionCommand("MinimumRange");
   this.minimumRangeValue.addActionListener((ActionListener) this);
   ((Component) this.minimumRangeValue).addFocusListener((FocusListener) this);
   ((Container) jpanel1).add((Component) this.minimumRangeValue);
   ((Container) jpanel1).add((Component) new JPanel());
   JPanel jpanel3 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel2 = new JLabel(DefaultNumberAxisEditor.localizationResources.getString("Maximum_range_value"));
   ((Container) jpanel3).add((Component) jlabel2);
   JTextField.__\u003Cclinit\u003E();
   this.maximumRangeValue = new JTextField(Double.toString(this.maximumValue));
   ((JComponent) this.maximumRangeValue).setEnabled(!this.autoRange);
   this.maximumRangeValue.setActionCommand("MaximumRange");
   this.maximumRangeValue.addActionListener((ActionListener) this);
   ((Component) this.maximumRangeValue).addFocusListener((FocusListener) this);
   ((Container) jpanel1).add((Component) this.maximumRangeValue);
   ((Container) jpanel1).add((Component) new JPanel());
   otherTabs.add(DefaultNumberAxisEditor.localizationResources.getString("Range"), (Component) jpanel1);
 }
예제 #8
0
 public static JLabel createJLabel(string text, Font font, Color color)
 {
   JLabel jlabel = new JLabel(text);
   ((JComponent) jlabel).setFont(font);
   ((JComponent) jlabel).setForeground(color);
   return jlabel;
 }
예제 #9
0
 public static JLabel createJLabel(string text, Font font)
 {
   JLabel jlabel = new JLabel(text);
   ((JComponent) jlabel).setFont(font);
   return jlabel;
 }
예제 #10
0
 public DefaultChartEditor([In] JFreeChart obj0)
 {
   base.\u002Ector();
   DefaultChartEditor defaultChartEditor = this;
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel1).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel2 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel2).setBorder((Border) BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), DefaultChartEditor.localizationResources.getString("General")));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel3 = new JPanel((LayoutManager) new LCBLayout(6));
   ((JComponent) jpanel3).setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
   JCheckBox.__\u003Cclinit\u003E();
   this.antialias = new JCheckBox(DefaultChartEditor.localizationResources.getString("Draw_anti-aliased"));
   ((AbstractButton) this.antialias).setSelected(obj0.getAntiAlias());
   ((Container) jpanel3).add((Component) this.antialias);
   ((Container) jpanel3).add((Component) new JLabel(""));
   ((Container) jpanel3).add((Component) new JLabel(""));
   JPanel jpanel4 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel1 = new JLabel(DefaultChartEditor.localizationResources.getString("Background_paint"));
   ((Container) jpanel4).add((Component) jlabel1);
   PaintSample.__\u003Cclinit\u003E();
   this.background = new PaintSample(obj0.getBackgroundPaint());
   ((Container) jpanel3).add((Component) this.background);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton1 = new JButton(DefaultChartEditor.localizationResources.getString("Select..."));
   ((AbstractButton) jbutton1).setActionCommand("BackgroundPaint");
   ((AbstractButton) jbutton1).addActionListener((ActionListener) this);
   ((Container) jpanel3).add((Component) jbutton1);
   JPanel jpanel5 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel2 = new JLabel(DefaultChartEditor.localizationResources.getString("Series_Paint"));
   ((Container) jpanel5).add((Component) jlabel2);
   JTextField.__\u003Cclinit\u003E();
   JTextField jtextField1 = new JTextField(DefaultChartEditor.localizationResources.getString("No_editor_implemented"));
   ((JComponent) jtextField1).setEnabled(false);
   ((Container) jpanel3).add((Component) jtextField1);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton2 = new JButton(DefaultChartEditor.localizationResources.getString("Edit..."));
   ((AbstractButton) jbutton2).setEnabled(false);
   ((Container) jpanel3).add((Component) jbutton2);
   JPanel jpanel6 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel3 = new JLabel(DefaultChartEditor.localizationResources.getString("Series_Stroke"));
   ((Container) jpanel6).add((Component) jlabel3);
   JTextField.__\u003Cclinit\u003E();
   JTextField jtextField2 = new JTextField(DefaultChartEditor.localizationResources.getString("No_editor_implemented"));
   ((JComponent) jtextField2).setEnabled(false);
   ((Container) jpanel3).add((Component) jtextField2);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton3 = new JButton(DefaultChartEditor.localizationResources.getString("Edit..."));
   ((AbstractButton) jbutton3).setEnabled(false);
   ((Container) jpanel3).add((Component) jbutton3);
   JPanel jpanel7 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel4 = new JLabel(DefaultChartEditor.localizationResources.getString("Series_Outline_Paint"));
   ((Container) jpanel7).add((Component) jlabel4);
   JTextField.__\u003Cclinit\u003E();
   JTextField jtextField3 = new JTextField(DefaultChartEditor.localizationResources.getString("No_editor_implemented"));
   ((JComponent) jtextField3).setEnabled(false);
   ((Container) jpanel3).add((Component) jtextField3);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton4 = new JButton(DefaultChartEditor.localizationResources.getString("Edit..."));
   ((AbstractButton) jbutton4).setEnabled(false);
   ((Container) jpanel3).add((Component) jbutton4);
   JPanel jpanel8 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel5 = new JLabel(DefaultChartEditor.localizationResources.getString("Series_Outline_Stroke"));
   ((Container) jpanel8).add((Component) jlabel5);
   JTextField.__\u003Cclinit\u003E();
   JTextField jtextField4 = new JTextField(DefaultChartEditor.localizationResources.getString("No_editor_implemented"));
   ((JComponent) jtextField4).setEnabled(false);
   ((Container) jpanel3).add((Component) jtextField4);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton5 = new JButton(DefaultChartEditor.localizationResources.getString("Edit..."));
   ((AbstractButton) jbutton5).setEnabled(false);
   ((Container) jpanel3).add((Component) jbutton5);
   ((Container) jpanel2).add((Component) jpanel3, (object) "North");
   ((Container) jpanel1).add((Component) jpanel2, (object) "North");
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel9 = new JPanel((LayoutManager) new BorderLayout());
   TextTitle title = obj0.getTitle();
   Plot plot = obj0.getPlot();
   JTabbedPane jtabbedPane = new JTabbedPane();
   this.titleEditor = new DefaultTitleEditor((Title) title);
   ((JComponent) this.titleEditor).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
   jtabbedPane.addTab(DefaultChartEditor.localizationResources.getString("Title"), (Component) this.titleEditor);
   this.plotEditor = new DefaultPlotEditor(plot);
   ((JComponent) this.plotEditor).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
   jtabbedPane.addTab(DefaultChartEditor.localizationResources.getString("Plot"), (Component) this.plotEditor);
   jtabbedPane.add(DefaultChartEditor.localizationResources.getString("Other"), (Component) jpanel1);
   ((Container) jpanel9).add((Component) jtabbedPane, (object) "North");
   ((Container) this).add((Component) jpanel9);
 }
예제 #11
0
 public DefaultPlotEditor([In] Plot obj0)
 {
   base.\u002Ector();
   DefaultPlotEditor defaultPlotEditor = this;
   this.plotInsets = obj0.getInsets();
   PaintSample.__\u003Cclinit\u003E();
   this.backgroundPaintSample = new PaintSample(obj0.getBackgroundPaint());
   StrokeSample.__\u003Cclinit\u003E();
   this.outlineStrokeSample = new StrokeSample(obj0.getOutlineStroke());
   PaintSample.__\u003Cclinit\u003E();
   this.outlinePaintSample = new PaintSample(obj0.getOutlinePaint());
   if (obj0 is CategoryPlot)
     this.plotOrientation = ((CategoryPlot) obj0).getOrientation();
   else if (obj0 is XYPlot)
     this.plotOrientation = ((XYPlot) obj0).getOrientation();
   if (obj0 is CategoryPlot)
   {
     CategoryItemRenderer renderer = ((CategoryPlot) obj0).getRenderer();
     if (renderer is LineAndShapeRenderer)
     {
       LineAndShapeRenderer andShapeRenderer = (LineAndShapeRenderer) renderer;
       this.drawLines = BooleanUtilities.valueOf(andShapeRenderer.getBaseLinesVisible());
       this.drawShapes = BooleanUtilities.valueOf(andShapeRenderer.getBaseShapesVisible());
     }
   }
   else if (obj0 is XYPlot)
   {
     XYItemRenderer renderer = ((XYPlot) obj0).getRenderer();
     if (renderer is StandardXYItemRenderer)
     {
       StandardXYItemRenderer standardXyItemRenderer = (StandardXYItemRenderer) renderer;
       this.drawLines = BooleanUtilities.valueOf(standardXyItemRenderer.getPlotLines());
       this.drawShapes = BooleanUtilities.valueOf(standardXyItemRenderer.getBaseShapesVisible());
     }
   }
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   this.availableStrokeSamples = new StrokeSample[4];
   this.availableStrokeSamples[0] = new StrokeSample((Stroke) null);
   StrokeSample[] strokeSampleArray1 = this.availableStrokeSamples;
   int index1 = 1;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample1 = new StrokeSample((Stroke) new BasicStroke(1f));
   strokeSampleArray1[index1] = strokeSample1;
   StrokeSample[] strokeSampleArray2 = this.availableStrokeSamples;
   int index2 = 2;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample2 = new StrokeSample((Stroke) new BasicStroke(2f));
   strokeSampleArray2[index2] = strokeSample2;
   StrokeSample[] strokeSampleArray3 = this.availableStrokeSamples;
   int index3 = 3;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample3 = new StrokeSample((Stroke) new BasicStroke(3f));
   strokeSampleArray3[index3] = strokeSample3;
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel1).setBorder((Border) BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), new StringBuffer().append(obj0.getPlotType()).append(DefaultPlotEditor.localizationResources.getString(":")).toString()));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel2 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel2).setBorder((Border) BorderFactory.createTitledBorder(DefaultPlotEditor.localizationResources.getString("General")));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel3 = new JPanel((LayoutManager) new LCBLayout(7));
   ((JComponent) jpanel3).setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
   JPanel jpanel4 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel1 = new JLabel(DefaultPlotEditor.localizationResources.getString("Outline_stroke"));
   ((Container) jpanel4).add((Component) jlabel1);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton1 = new JButton(DefaultPlotEditor.localizationResources.getString("Select..."));
   ((AbstractButton) jbutton1).setActionCommand("OutlineStroke");
   ((AbstractButton) jbutton1).addActionListener((ActionListener) this);
   ((Container) jpanel3).add((Component) this.outlineStrokeSample);
   ((Container) jpanel3).add((Component) jbutton1);
   JPanel jpanel5 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel2 = new JLabel(DefaultPlotEditor.localizationResources.getString("Outline_Paint"));
   ((Container) jpanel5).add((Component) jlabel2);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton2 = new JButton(DefaultPlotEditor.localizationResources.getString("Select..."));
   ((AbstractButton) jbutton2).setActionCommand("OutlinePaint");
   ((AbstractButton) jbutton2).addActionListener((ActionListener) this);
   ((Container) jpanel3).add((Component) this.outlinePaintSample);
   ((Container) jpanel3).add((Component) jbutton2);
   JPanel jpanel6 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel3 = new JLabel(DefaultPlotEditor.localizationResources.getString("Background_paint"));
   ((Container) jpanel6).add((Component) jlabel3);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton3 = new JButton(DefaultPlotEditor.localizationResources.getString("Select..."));
   ((AbstractButton) jbutton3).setActionCommand("BackgroundPaint");
   ((AbstractButton) jbutton3).addActionListener((ActionListener) this);
   ((Container) jpanel3).add((Component) this.backgroundPaintSample);
   ((Container) jpanel3).add((Component) jbutton3);
   if (this.plotOrientation != null)
   {
     int num = !this.plotOrientation.equals((object) PlotOrientation.__\u003C\u003EVERTICAL) ? 1 : 0;
     JPanel jpanel7 = jpanel3;
     JLabel.__\u003Cclinit\u003E();
     JLabel jlabel4 = new JLabel(DefaultPlotEditor.localizationResources.getString("Orientation"));
     ((Container) jpanel7).add((Component) jlabel4);
     JComboBox.__\u003Cclinit\u003E();
     this.orientationCombo = new JComboBox((object[]) DefaultPlotEditor.orientationNames);
     this.orientationCombo.setSelectedIndex(num);
     this.orientationCombo.setActionCommand("Orientation");
     this.orientationCombo.addActionListener((ActionListener) this);
     ((Container) jpanel3).add((Component) new JPanel());
     ((Container) jpanel3).add((Component) this.orientationCombo);
   }
   if (this.drawLines != null)
   {
     JPanel jpanel7 = jpanel3;
     JLabel.__\u003Cclinit\u003E();
     JLabel jlabel4 = new JLabel(DefaultPlotEditor.localizationResources.getString("Draw_lines"));
     ((Container) jpanel7).add((Component) jlabel4);
     this.drawLinesCheckBox = new JCheckBox();
     ((AbstractButton) this.drawLinesCheckBox).setSelected(this.drawLines.booleanValue());
     ((AbstractButton) this.drawLinesCheckBox).setActionCommand("DrawLines");
     ((AbstractButton) this.drawLinesCheckBox).addActionListener((ActionListener) this);
     ((Container) jpanel3).add((Component) new JPanel());
     ((Container) jpanel3).add((Component) this.drawLinesCheckBox);
   }
   if (this.drawShapes != null)
   {
     JPanel jpanel7 = jpanel3;
     JLabel.__\u003Cclinit\u003E();
     JLabel jlabel4 = new JLabel(DefaultPlotEditor.localizationResources.getString("Draw_shapes"));
     ((Container) jpanel7).add((Component) jlabel4);
     this.drawShapesCheckBox = new JCheckBox();
     ((AbstractButton) this.drawShapesCheckBox).setSelected(this.drawShapes.booleanValue());
     ((AbstractButton) this.drawShapesCheckBox).setActionCommand("DrawShapes");
     ((AbstractButton) this.drawShapesCheckBox).addActionListener((ActionListener) this);
     ((Container) jpanel3).add((Component) new JPanel());
     ((Container) jpanel3).add((Component) this.drawShapesCheckBox);
   }
   ((Container) jpanel2).add((Component) jpanel3, (object) "North");
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel8 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel8).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
   ((Container) jpanel8).add((Component) jpanel2, (object) "North");
   JTabbedPane jtabbedPane = new JTabbedPane();
   ((JComponent) jtabbedPane).setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
   Axis axis = (Axis) null;
   if (obj0 is CategoryPlot)
     axis = (Axis) ((CategoryPlot) obj0).getDomainAxis();
   else if (obj0 is XYPlot)
     axis = (Axis) ((XYPlot) obj0).getDomainAxis();
   this.domainAxisPropertyPanel = DefaultAxisEditor.getInstance(axis);
   if (this.domainAxisPropertyPanel != null)
   {
     ((JComponent) this.domainAxisPropertyPanel).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
     jtabbedPane.add(DefaultPlotEditor.localizationResources.getString("Domain_Axis"), (Component) this.domainAxisPropertyPanel);
   }
   ValueAxis valueAxis = (ValueAxis) null;
   if (obj0 is CategoryPlot)
     valueAxis = ((CategoryPlot) obj0).getRangeAxis();
   else if (obj0 is XYPlot)
     valueAxis = ((XYPlot) obj0).getRangeAxis();
   this.rangeAxisPropertyPanel = DefaultAxisEditor.getInstance((Axis) valueAxis);
   if (this.rangeAxisPropertyPanel != null)
   {
     ((JComponent) this.rangeAxisPropertyPanel).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
     jtabbedPane.add(DefaultPlotEditor.localizationResources.getString("Range_Axis"), (Component) this.rangeAxisPropertyPanel);
   }
   ColorBar colorBar = (ColorBar) null;
   if (obj0 is ContourPlot)
     colorBar = ((ContourPlot) obj0).getColorBar();
   this.colorBarAxisPropertyPanel = DefaultColorBarEditor.getInstance(colorBar);
   if (this.colorBarAxisPropertyPanel != null)
   {
     ((JComponent) this.colorBarAxisPropertyPanel).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
     jtabbedPane.add(DefaultPlotEditor.localizationResources.getString("Color_Bar"), (Component) this.colorBarAxisPropertyPanel);
   }
   jtabbedPane.add(DefaultPlotEditor.localizationResources.getString("Appearance"), (Component) jpanel8);
   ((Container) jpanel1).add((Component) jtabbedPane);
   ((Container) this).add((Component) jpanel1);
 }
예제 #12
0
 public override void init()
 {
   ((Container) this).setLayout((LayoutManager) new BoxLayout((Container) this, 0));
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel = new JLabel(this.getFieldName());
   if (this.getType().isChildOf(DataType.__\u003C\u003EBOOLEAN))
   {
     AbstractValueWidget.EditableBooleanValueField.__\u003Cclinit\u003E();
     this.valueField = (JTextField) new AbstractValueWidget.EditableBooleanValueField((AbstractValueWidget) this, this.getFieldName());
   }
   else if (this.getType().isChildOf(DataType.__\u003C\u003ENUMBER))
   {
     AbstractValueWidget.EditableNumberValueField.__\u003Cclinit\u003E();
     this.valueField = (JTextField) new AbstractValueWidget.EditableNumberValueField((AbstractValueWidget) this, this.getFieldName());
   }
   else if (this.getType().isChildOf(DataType.__\u003C\u003ESTRING))
   {
     AbstractValueWidget.EditableStringValueField.__\u003Cclinit\u003E();
     this.valueField = (JTextField) new AbstractValueWidget.EditableStringValueField((AbstractValueWidget) this, this.getFieldName());
   }
   else
   {
     this.valueField = new JTextField();
     ((JTextComponent) this.valueField).setText(new StringBuilder().append("Unupported basic data type: ").append((object) this.getType()).toString());
     ((JTextComponent) this.valueField).setEditable(false);
   }
   this.update((Property) this.__\u003C\u003Ebackground, (object) ((Component) this.valueField).getBackground());
   ((JTextComponent) this.valueField).setEditable(((Boolean) this.__\u003C\u003Eeditable.getValue()).booleanValue());
   this.valueField.setColumns(10);
   ((Container) this).add((Component) jlabel);
   ((Container) this).add((Component) this.valueField);
 }
예제 #13
0
 public override void init()
 {
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel = new JLabel(this.getFieldName());
   this.valueField = new Subsystem.SubsystemCommandField(this);
   this.update((Property) this.__\u003C\u003Ebackground, (object) ((Component) this.valueField).getBackground());
   ((Container) this).setLayout((LayoutManager) new BoxLayout((Container) this, 0));
   ((JTextComponent) this.valueField).setEditable(false);
   this.valueField.setColumns(10);
   ((Container) this).add((Component) jlabel);
   ((Container) this).add((Component) this.valueField);
   ((JComponent) this).revalidate();
   ((Component) this).repaint();
 }
 public DefaultColorBarEditor([In] ColorBar obj0)
   : base((NumberAxis) obj0.getAxis())
 {
   DefaultColorBarEditor defaultColorBarEditor = this;
   this.invertPalette = false;
   this.stepPalette = false;
   this.invertPalette = obj0.getColorPalette().isInverse();
   this.stepPalette = obj0.getColorPalette().isStepped();
   PaletteSample.__\u003Cclinit\u003E();
   this.currentPalette = new PaletteSample(obj0.getColorPalette());
   this.availablePaletteSamples = new PaletteSample[2];
   PaletteSample[] paletteSampleArray1 = this.availablePaletteSamples;
   int index1 = 0;
   PaletteSample.__\u003Cclinit\u003E();
   PaletteSample paletteSample1 = new PaletteSample((ColorPalette) new RainbowPalette());
   paletteSampleArray1[index1] = paletteSample1;
   PaletteSample[] paletteSampleArray2 = this.availablePaletteSamples;
   int index2 = 1;
   PaletteSample.__\u003Cclinit\u003E();
   PaletteSample paletteSample2 = new PaletteSample((ColorPalette) new GreyPalette());
   paletteSampleArray2[index2] = paletteSample2;
   JTabbedPane otherTabs = this.getOtherTabs();
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new LCBLayout(4));
   ((JComponent) jpanel1).setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
   ((Container) jpanel1).add((Component) new JPanel());
   JCheckBox.__\u003Cclinit\u003E();
   this.invertPaletteCheckBox = new JCheckBox(DefaultColorBarEditor.localizationResources.getString("Invert_Palette"), this.invertPalette);
   ((AbstractButton) this.invertPaletteCheckBox).setActionCommand("invertPalette");
   ((AbstractButton) this.invertPaletteCheckBox).addActionListener((ActionListener) this);
   ((Container) jpanel1).add((Component) this.invertPaletteCheckBox);
   ((Container) jpanel1).add((Component) new JPanel());
   ((Container) jpanel1).add((Component) new JPanel());
   JCheckBox.__\u003Cclinit\u003E();
   this.stepPaletteCheckBox = new JCheckBox(DefaultColorBarEditor.localizationResources.getString("Step_Palette"), this.stepPalette);
   ((AbstractButton) this.stepPaletteCheckBox).setActionCommand("stepPalette");
   ((AbstractButton) this.stepPaletteCheckBox).addActionListener((ActionListener) this);
   ((Container) jpanel1).add((Component) this.stepPaletteCheckBox);
   ((Container) jpanel1).add((Component) new JPanel());
   JPanel jpanel2 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel = new JLabel(DefaultColorBarEditor.localizationResources.getString("Palette"));
   ((Container) jpanel2).add((Component) jlabel);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton = new JButton(DefaultColorBarEditor.localizationResources.getString("Set_palette..."));
   ((AbstractButton) jbutton).setActionCommand("PaletteChoice");
   ((AbstractButton) jbutton).addActionListener((ActionListener) this);
   ((Container) jpanel1).add((Component) this.currentPalette);
   ((Container) jpanel1).add((Component) jbutton);
   otherTabs.add(DefaultColorBarEditor.localizationResources.getString("Palette"), (Component) jpanel1);
 }
예제 #15
0
 public override void init()
 {
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel = new JLabel(this.getFieldName());
   this.valueField = new JFormattedTextField();
   this.update((Property) this.__\u003C\u003Eforeground, (object) ((Component) this.valueField).getForeground());
   this.update((Property) this.__\u003C\u003Ebackground, (object) ((Component) this.valueField).getBackground());
   this.update((Property) this.__\u003C\u003EfontSize, (object) Integer.valueOf(((Component) this.valueField).getFont().getSize()));
   ((JTextComponent) this.valueField).setEditable(false);
   ((JTextField) this.valueField).setColumns(10);
   ((Container) this).add((Component) jlabel, (object) "Before");
   ((Container) this).add((Component) this.valueField, (object) "Center");
   ((JComponent) this).revalidate();
   ((Component) this).repaint();
 }
예제 #16
0
 public override void init()
 {
   ((Container) this).setLayout((LayoutManager) new BoxLayout((Container) this, 0));
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel = new JLabel(this.getFieldName());
   this.valueField = new JPanel();
   ((JComponent) this.valueField).setPreferredSize(new Dimension(10, 10));
   ((Container) this).add((Component) this.valueField);
   ((Container) this).add((Component) jlabel);
   ((JComponent) this).revalidate();
   ((Component) this).repaint();
 }
예제 #17
0
 public DefaultTitleEditor([In] Title obj0)
 {
   base.\u002Ector();
   DefaultTitleEditor defaultTitleEditor = this;
   TextTitle textTitle1;
   if (obj0 != null)
   {
     textTitle1 = (TextTitle) obj0;
   }
   else
   {
     TextTitle.__\u003Cclinit\u003E();
     textTitle1 = new TextTitle(DefaultTitleEditor.localizationResources.getString("Title"));
   }
   TextTitle textTitle2 = textTitle1;
   this.showTitle = obj0 != null;
   this.titleFont = textTitle2.getFont();
   JTextField.__\u003Cclinit\u003E();
   this.titleField = new JTextField(textTitle2.getText());
   PaintSample.__\u003Cclinit\u003E();
   this.titlePaint = new PaintSample(textTitle2.getPaint());
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel1).setBorder((Border) BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), DefaultTitleEditor.localizationResources.getString("General")));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel2 = new JPanel((LayoutManager) new LCBLayout(4));
   ((JComponent) jpanel2).setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
   JPanel jpanel3 = jpanel2;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel1 = new JLabel(DefaultTitleEditor.localizationResources.getString("Show_Title"));
   ((Container) jpanel3).add((Component) jlabel1);
   this.showTitleCheckBox = new JCheckBox();
   ((AbstractButton) this.showTitleCheckBox).setSelected(this.showTitle);
   ((AbstractButton) this.showTitleCheckBox).setActionCommand("ShowTitle");
   ((AbstractButton) this.showTitleCheckBox).addActionListener((ActionListener) this);
   ((Container) jpanel2).add((Component) new JPanel());
   ((Container) jpanel2).add((Component) this.showTitleCheckBox);
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel2 = new JLabel(DefaultTitleEditor.localizationResources.getString("Text"));
   ((Container) jpanel2).add((Component) jlabel2);
   ((Container) jpanel2).add((Component) this.titleField);
   ((Container) jpanel2).add((Component) new JPanel());
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel3 = new JLabel(DefaultTitleEditor.localizationResources.getString("Font"));
   FontDisplayField.__\u003Cclinit\u003E();
   this.fontfield = (JTextField) new FontDisplayField(this.titleFont);
   JButton.__\u003Cclinit\u003E();
   this.selectFontButton = new JButton(DefaultTitleEditor.localizationResources.getString("Select..."));
   ((AbstractButton) this.selectFontButton).setActionCommand("SelectFont");
   ((AbstractButton) this.selectFontButton).addActionListener((ActionListener) this);
   ((Container) jpanel2).add((Component) jlabel3);
   ((Container) jpanel2).add((Component) this.fontfield);
   ((Container) jpanel2).add((Component) this.selectFontButton);
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel4 = new JLabel(DefaultTitleEditor.localizationResources.getString("Color"));
   JButton.__\u003Cclinit\u003E();
   this.selectPaintButton = new JButton(DefaultTitleEditor.localizationResources.getString("Select..."));
   ((AbstractButton) this.selectPaintButton).setActionCommand("SelectPaint");
   ((AbstractButton) this.selectPaintButton).addActionListener((ActionListener) this);
   ((Container) jpanel2).add((Component) jlabel4);
   ((Container) jpanel2).add((Component) this.titlePaint);
   ((Container) jpanel2).add((Component) this.selectPaintButton);
   this.enableOrDisableControls();
   ((Container) jpanel1).add((Component) jpanel2);
   ((Container) this).add((Component) jpanel1, (object) "North");
 }
예제 #18
0
 public FileTableCellEditor([In] FileProperty obj0, [In] Component obj1)
 {
   base.\u002Ector();
   FileProperty.FileTableCellEditor fileTableCellEditor = this;
   this.c = obj1;
   this.label = new JLabel();
 }
예제 #19
0
 public PIDEditor()
 {
   PIDEditor pidEditor1 = this;
   ((Container) this).setLayout((LayoutManager) new GridBagLayout());
   this.pLabel = new JLabel("P:");
   this.iLabel = new JLabel("I:");
   this.dLabel = new JLabel("D:");
   this.fLabel = new JLabel("F:");
   this.sLabel = new JLabel("Setpoint:");
   this.eLabel = new JLabel("Enabled:");
   this.pLabel.setHorizontalAlignment(4);
   this.iLabel.setHorizontalAlignment(4);
   this.dLabel.setHorizontalAlignment(4);
   this.fLabel.setHorizontalAlignment(4);
   this.sLabel.setHorizontalAlignment(4);
   this.eLabel.setHorizontalAlignment(4);
   this.pField = new AbstractTableWidget.NumberTableField((AbstractTableWidget) this, "p");
   this.iField = new AbstractTableWidget.NumberTableField((AbstractTableWidget) this, "i");
   this.dField = new AbstractTableWidget.NumberTableField((AbstractTableWidget) this, "d");
   this.fField = new AbstractTableWidget.NumberTableField((AbstractTableWidget) this, "f");
   this.sField = new AbstractTableWidget.NumberTableField((AbstractTableWidget) this, "setpoint");
   this.eBox = new AbstractTableWidget.BooleanTableCheckBox((AbstractTableWidget) this, "enabled");
   int num = 10;
   this.pField.setColumns(num);
   this.iField.setColumns(num);
   this.dField.setColumns(num);
   this.fField.setColumns(num);
   this.sField.setColumns(num);
   GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
   gridBagConstraints1.gridy = (__Null) 1;
   ((Container) this).add((Component) this.pLabel, (object) gridBagConstraints1);
   gridBagConstraints1.gridy = (__Null) 2;
   ((Container) this).add((Component) this.iLabel, (object) gridBagConstraints1);
   gridBagConstraints1.gridy = (__Null) 3;
   ((Container) this).add((Component) this.dLabel, (object) gridBagConstraints1);
   gridBagConstraints1.gridy = (__Null) 4;
   ((Container) this).add((Component) this.fLabel, (object) gridBagConstraints1);
   gridBagConstraints1.gridy = (__Null) 5;
   ((Container) this).add((Component) this.sLabel, (object) gridBagConstraints1);
   gridBagConstraints1.gridy = (__Null) 6;
   ((Container) this).add((Component) this.eLabel, (object) gridBagConstraints1);
   gridBagConstraints1.gridx = (__Null) 1;
   gridBagConstraints1.weightx = (__Null) 1.0;
   gridBagConstraints1.gridy = (__Null) 0;
   gridBagConstraints1.fill = (__Null) 2;
   PIDEditor pidEditor2 = this;
   NameTag nameTag1 = new NameTag("");
   NameTag nameTag2 = nameTag1;
   this.nameTag = nameTag1;
   GridBagConstraints gridBagConstraints2 = gridBagConstraints1;
   ((Container) this).add((Component) nameTag2, (object) gridBagConstraints2);
   this.nameTag.setHorizontalAlignment(2);
   gridBagConstraints1.gridy = (__Null) 1;
   ((Container) this).add((Component) this.pField, (object) gridBagConstraints1);
   gridBagConstraints1.gridy = (__Null) 2;
   ((Container) this).add((Component) this.iField, (object) gridBagConstraints1);
   gridBagConstraints1.gridy = (__Null) 3;
   ((Container) this).add((Component) this.dField, (object) gridBagConstraints1);
   gridBagConstraints1.gridy = (__Null) 4;
   ((Container) this).add((Component) this.fField, (object) gridBagConstraints1);
   gridBagConstraints1.gridy = (__Null) 5;
   ((Container) this).add((Component) this.sField, (object) gridBagConstraints1);
   gridBagConstraints1.gridy = (__Null) 6;
   ((Container) this).add((Component) this.eBox, (object) gridBagConstraints1);
   Dimension.__\u003Cclinit\u003E();
   ((JComponent) this).setMaximumSize(new Dimension(int.MaxValue, (int) ((JComponent) this).getPreferredSize().height));
   ((JComponent) this).revalidate();
   ((Component) this).repaint();
 }
예제 #20
0
 private JPanel getCalendarPanel()
 {
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new GridLayout(7, 7));
   string[] shortWeekdays = new DateFormatSymbols().getShortWeekdays();
   for (int index = 0; index < this.WEEK_DAYS.Length; ++index)
   {
     JPanel jpanel2 = jpanel1;
     JLabel.__\u003Cclinit\u003E();
     JLabel jlabel = new JLabel(shortWeekdays[this.WEEK_DAYS[index]], 0);
     ((Container) jpanel2).add((Component) jlabel);
   }
   this.buttons = new JButton[42];
   for (int index = 0; index < 42; ++index)
   {
     JButton jbutton = new JButton("");
     ((AbstractButton) jbutton).setMargin(new Insets(1, 1, 1, 1));
     ((Component) jbutton).setName(Integer.toString(index));
     ((JComponent) jbutton).setFont(this.dateFont);
     ((AbstractButton) jbutton).setFocusPainted(false);
     ((AbstractButton) jbutton).setActionCommand("dateButtonClicked");
     ((AbstractButton) jbutton).addActionListener((ActionListener) this);
     this.buttons[index] = jbutton;
     ((Container) jpanel1).add((Component) jbutton);
   }
   return jpanel1;
 }
예제 #21
0
 public override void init()
 {
   Scheduler scheduler = this;
   CardLayout cardLayout1 = new CardLayout();
   CardLayout cardLayout2 = cardLayout1;
   this.cardLayout = cardLayout1;
   ((Container) this).setLayout((LayoutManager) cardLayout2);
   this.labels = (List) new ArrayList();
   this.buttons = (List) new ArrayList();
   this.commandPanel = new JPanel();
   ((Container) this.commandPanel).setLayout((LayoutManager) new GridLayout(0, 2));
   this.commandLabels = new JPanel();
   this.cancelButtons = new JPanel();
   ((Container) this.commandPanel).add((Component) this.commandLabels, (object) "West");
   ((Container) this.commandPanel).add((Component) this.cancelButtons, (object) "Center");
   this.commandLayout = new GridLayout(0, 1);
   this.cancelLayout = new GridLayout(0, 1);
   ((Container) this.commandLabels).setLayout((LayoutManager) this.commandLayout);
   ((Container) this.cancelButtons).setLayout((LayoutManager) this.cancelLayout);
   ((Container) this).add((Component) this.commandPanel, (object) "Commands");
   this.noCommands = new JLabel("No commands running.");
   this.noCommands.setHorizontalAlignment(0);
   ((Container) this).add((Component) this.noCommands, (object) "No Command");
   this.cardLayout.show((Container) this, "No Command");
   ((Component) this).repaint();
 }