Ejemplo 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);
 }
Ejemplo 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();
  }
Ejemplo 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);
  }
Ejemplo 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());
   }
 }
Ejemplo 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());
   }
 }
Ejemplo n.º 6
0
 protected void initChart() {
   super.initChart();
 }