Package org.timepedia.chronoscope.client.render

Examples of org.timepedia.chronoscope.client.render.CompositeAxisPanel


  }

  private  void initLeft() {
    if (null == leftPanel) {
      // leftPanel = new CompositeAxisPanel(Layer.RANGE_AXIS_LEFT, CompositeAxisPanel.Position.LEFT, plot, view);
      leftPanel = new CompositeAxisPanel(Layer.RANGE_AXIS_LEFT, CompositeAxisPanel.Position.LEFT, plot, view);
    } else {
      leftPanel.reset(Layer.RANGE_AXIS_LEFT, CompositeAxisPanel.Position.LEFT, plot, view);
    }
    if (null != leftPanelBounds) {  leftPanel.setBounds(leftPanelBounds); }
    else { log("initLeft null leftPanelBounds"); }
View Full Code Here


    else { log("initLeft layer:"+leftPanel.getLayer().getLayerId() + " "+leftPanel.getLayer().getBounds()); }
    leftPanel.setParent(this);
  }
  private void initRight() {
    if (null == rightPanel) {
      rightPanel = new CompositeAxisPanel(Layer.RANGE_AXIS_RIGHT,  CompositeAxisPanel.Position.RIGHT, plot, view);
    } else {
      rightPanel.reset(Layer.RANGE_AXIS_RIGHT,  CompositeAxisPanel.Position.RIGHT, plot, view);
    }
    if (null != rightPanelBounds) {  rightPanel.setBounds(rightPanelBounds); }
    else { log("initRight null rightPanelBounds"); }
View Full Code Here

      // Determine if the rangeAxis should be added to the left or right range panel
      int numLeftAxes = leftPanel.getChildCount();
      int numRightAxes = rightPanel.getChildCount();
      boolean useLeftPanel = (numLeftAxes <= numRightAxes);
      CompositeAxisPanel compositePanel = useLeftPanel || !plot.isMultiaxis() ? leftPanel : rightPanel;

      if (rangeAxis == null) {
        rangeAxis = new RangeAxis(dataset.getRangeLabel(), rangeAxisId);
        rangeAxis.setPlot(plot);
        rangeAxis.setView(view);
        rangeAxis.setAxisIndex(i);
        id2rangeAxis.put(rangeAxisId, rangeAxis);
      }

      if (!localRangeAxisIds.contains(rangeAxisId)) {
        if (axisPanel == null || plot.isMultiaxis()) {
          axisPanel = new RangeAxisPanel();
          axisPanel.setValueAxis(rangeAxis);
          compositePanel.add(axisPanel);
        }
        rangeAxis.setAxisPanel(axisPanel);
        double tickLabelHeight = Math.min(axisPanel.getMaxLabelHeight(), 12);
        rangeAxis.setTickLabelHeight(tickLabelHeight);
        localRangeAxisIds.add(rangeAxisId);
View Full Code Here

    hookup();
  }

  private void initCompositePanel() {
    if (null == compositePanel) {
      compositePanel = new CompositeAxisPanel(Layer.TOP, CompositeAxisPanel.Position.TOP, plot, view);
    } else {
      compositePanel.reset(Layer.TOP, CompositeAxisPanel.Position.TOP, plot, view);
    }
    compositePanel.setBounds(bounds);
    compositePanel.setParent(this);
View Full Code Here

TOP

Related Classes of org.timepedia.chronoscope.client.render.CompositeAxisPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.