Package com.positive.charts.axis

Examples of com.positive.charts.axis.ValueAxis.valueToJava2D()


    ValueAxis axis = this.getRangeAxis();
    if (this.getOrientation() == PlotOrientation.HORIZONTAL) {
      axis = this.getDomainAxis();
    }
    if (axis.getRange().contains(value)) {
      final int yy = (int) axis.valueToJava2D(value, dataArea,
          RectangleEdge.LEFT);
      gc.drawLine(RectangleUtil.getMinX(dataArea), yy, RectangleUtil
          .getMaxX(dataArea), yy);
    }
View Full Code Here


    ValueAxis axis = this.getDomainAxis();
    if (this.getOrientation() == PlotOrientation.HORIZONTAL) {
      axis = this.getRangeAxis();
    }
    if (axis.getRange().contains(value)) {
      final int xx = (int) axis.valueToJava2D(value, dataArea,
          RectangleEdge.BOTTOM);
      gc.drawLine(xx, RectangleUtil.getMinY(dataArea), xx, RectangleUtil
          .getMaxY(dataArea));
    }
View Full Code Here

      final XYDataset dataset, final PlotRenderingInfo info) {

    final XYBarRendererState state = new XYBarRendererState(info);
    final ValueAxis rangeAxis = plot.getRangeAxisForDataset(plot
        .indexOf(dataset));
    state.setG2Base(rangeAxis.valueToJava2D(this.base, dataArea, plot
        .getRangeAxisEdge()));
    return state;

  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.