Esempio n. 1
0
 protected void initChart() {
   super.initChart();
   chart1.getHeader().setVisible(true);
   chart1.setText("Axes Z Position");
   chart1.getWalls().getLeft().setVisible(false);
   chart1.getAspect().setChart3DPercent(100);
 }
Esempio n. 2
0
  protected void initComponents() {
    super.initComponents();
    Line series = new Line(chart1.getChart());
    series.add(new int[] {200, 0, 123, 300, 260, -100, 650, 400});
    addCustomLabels();

    editButton = new JButton("Edit...");
    visibleButton = new JCheckBox("Custom labels");
    visibleButton.setSelected(chart1.getAxes().getLeft().getCustomLabels().size() > 0);

    labelModel =
        new SpinnerNumberModel(0, 0, chart1.getAxes().getLeft().getCustomLabels().size() - 1, 1);
    labelSpinner = new JSpinner(labelModel);

    positionSpinner =
        new JSpinner(
            new SpinnerNumberModel(
                0,
                -10000,
                +10000,
                chart1
                    .getAxes()
                    .getLeft()
                    .getCustomLabels()
                    .getItem(labelModel.getNumber().intValue())
                    .getValue()));

    syncDemoControls();
  }
Esempio n. 3
0
  protected void initComponents() {
    super.initComponents();
    Line series = new Line(chart1.getChart());
    series.setVerticalAxis(VerticalAxis.BOTH);

    positionLabel = new JLabel("0%");
    positionSlider =
        new JSlider(JSlider.HORIZONTAL, 0, 100, (int) chart1.getAxes().getLeft().getZPosition());
    axisList = new JComboBox(new String[] {"Left", "Right"});
    axisList.setSelectedIndex(0);
  }
Esempio n. 4
0
 protected void initGUI() {
   super.initGUI();
   JLabel tmpLabel;
   JPanel tmpPane = getButtonPane();
   {
     tmpPane.add(axisList);
     tmpPane.add(Box.createHorizontalStrut(10));
     tmpLabel = new JLabel("Z position:");
     tmpLabel.setDisplayedMnemonic('Z');
     tmpLabel.setLabelFor(positionSlider);
     tmpPane.add(tmpLabel);
     tmpPane.add(positionSlider);
     tmpPane.add(positionLabel);
     tmpPane.add(Box.createHorizontalGlue());
   }
 }
Esempio n. 5
0
 protected void initGUI() {
   super.initGUI();
   JLabel tmpLabel;
   JPanel tmpPane = getButtonPane();
   {
     tmpPane.add(visibleButton);
     tmpPane.add(Box.createHorizontalStrut(10));
     tmpLabel = new JLabel("Label:");
     tmpLabel.setDisplayedMnemonic('L');
     tmpPane.add(tmpLabel);
     tmpPane.add(Box.createHorizontalStrut(10));
     tmpPane.add(labelSpinner);
     tmpPane.add(positionSpinner);
     tmpPane.add(Box.createHorizontalStrut(10));
     tmpPane.add(editButton);
     tmpPane.add(Box.createHorizontalGlue());
   }
 }
Esempio n. 6
0
 protected void initChart() {
   super.initChart();
 }