Package com.positive.charts.axis

Examples of com.positive.charts.axis.Axis


            domainEdge, space);
      }

      // reserve space for any domain axes...
      for (int i = 0; i < this.domainAxes.size(); i++) {
        final Axis xAxis = (Axis) this.domainAxes.get(i);
        if (xAxis != null) {
          final RectangleEdge edge = this.getDomainAxisEdge(i);
          space = xAxis.reserveSpace(g2, this, plotArea, edge, space);
        }
      }
    }

    return space;
View Full Code Here


            RectangleEdge.RIGHT);
      }
    } else {
      // reserve space for the range axes (if any)...
      for (int i = 0; i < this.rangeAxes.size(); i++) {
        final Axis yAxis = (Axis) this.rangeAxes.get(i);
        if (yAxis != null) {
          final RectangleEdge edge = this.getRangeAxisEdge(i);
          space = yAxis.reserveSpace(g2, this, plotArea, edge, space);
        }
      }
    }
    return space;
View Full Code Here

    // draw the top axes
    double cursor = RectangleUtil.getMinY(dataArea)
        - this.axisOffset.calculateTopOutset(dataArea.height);
    Iterator iterator = axisCollection.getAxesAtTop().iterator();
    while (iterator.hasNext()) {
      final Axis axis = (Axis) iterator.next();
      if (axis != null) {
        final AxisState axisState = axis.draw(g2, cursor, plotArea,
            dataArea, RectangleEdge.TOP, plotState);
        cursor = axisState.getCursor();
        axisStateMap.put(axis, axisState);
      }
    }

    // draw the bottom axes
    cursor = RectangleUtil.getMaxY(dataArea)
        + this.axisOffset.calculateBottomOutset(dataArea.height);
    iterator = axisCollection.getAxesAtBottom().iterator();
    while (iterator.hasNext()) {
      final Axis axis = (Axis) iterator.next();
      if (axis != null) {
        final AxisState axisState = axis.draw(g2, cursor, plotArea,
            dataArea, RectangleEdge.BOTTOM, plotState);
        cursor = axisState.getCursor();
        axisStateMap.put(axis, axisState);
      }
    }

    // draw the left axes
    cursor = RectangleUtil.getMinX(dataArea)
        - this.axisOffset.calculateLeftOutset(dataArea.width);
    iterator = axisCollection.getAxesAtLeft().iterator();
    while (iterator.hasNext()) {
      final Axis axis = (Axis) iterator.next();
      if (axis != null) {
        final AxisState axisState = axis.draw(g2, cursor, plotArea,
            dataArea, RectangleEdge.LEFT, plotState);
        cursor = axisState.getCursor();
        axisStateMap.put(axis, axisState);
      }
    }

    // draw the right axes
    cursor = RectangleUtil.getMaxX(dataArea)
        + this.axisOffset.calculateRightOutset(dataArea.width);
    iterator = axisCollection.getAxesAtRight().iterator();
    while (iterator.hasNext()) {
      final Axis axis = (Axis) iterator.next();
      if (axis != null) {
        final AxisState axisState = axis.draw(g2, cursor, plotArea,
            dataArea, RectangleEdge.RIGHT, plotState);
        cursor = axisState.getCursor();
        axisStateMap.put(axis, axisState);
      }
    }
View Full Code Here

            RectangleEdge.BOTTOM);
      }
    } else {
      // reserve space for the domain axes...
      for (int i = 0; i < this.domainAxes.size(); i++) {
        final Axis axis = (Axis) this.domainAxes.get(i);
        if (axis != null) {
          final RectangleEdge edge = this.getDomainAxisEdge(i);
          space = axis.reserveSpace(gc, this, plotArea, edge, space);
        }
      }
    }

    return space;
View Full Code Here

            RectangleEdge.RIGHT);
      }
    } else {
      // reserve space for the range axes...
      for (int i = 0; i < this.rangeAxes.size(); i++) {
        final Axis axis = (Axis) this.rangeAxes.get(i);
        if (axis != null) {
          final RectangleEdge edge = this.getRangeAxisEdge(i);
          space = axis.reserveSpace(gc, this, plotArea, edge, space);
        }
      }
    }
    return space;
View Full Code Here

TOP

Related Classes of com.positive.charts.axis.Axis

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.