Package com.positive.charts.axis

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


    if (anchor != null) {
      final ValueAxis domainAxis = this.getDomainAxis();
      if (domainAxis != null) {
        double x;
        if (orient == PlotOrientation.VERTICAL) {
          x = domainAxis.java2DToValue(anchor.x, dataArea, this
              .getDomainAxisEdge());
        } else {
          x = domainAxis.java2DToValue(anchor.y, dataArea, this
              .getDomainAxisEdge());
        }
View Full Code Here


        double x;
        if (orient == PlotOrientation.VERTICAL) {
          x = domainAxis.java2DToValue(anchor.x, dataArea, this
              .getDomainAxisEdge());
        } else {
          x = domainAxis.java2DToValue(anchor.y, dataArea, this
              .getDomainAxisEdge());
        }
        crosshairState.setAnchorX(x);
      }
      final ValueAxis rangeAxis = this.getRangeAxis();
View Full Code Here

      }
      final ValueAxis rangeAxis = this.getRangeAxis();
      if (rangeAxis != null) {
        double y;
        if (orient == PlotOrientation.VERTICAL) {
          y = rangeAxis.java2DToValue(anchor.y, dataArea, this
              .getRangeAxisEdge());
        } else {
          y = rangeAxis.java2DToValue(anchor.x, dataArea, this
              .getRangeAxisEdge());
        }
View Full Code Here

        double y;
        if (orient == PlotOrientation.VERTICAL) {
          y = rangeAxis.java2DToValue(anchor.y, dataArea, this
              .getRangeAxisEdge());
        } else {
          y = rangeAxis.java2DToValue(anchor.x, dataArea, this
              .getRangeAxisEdge());
        }
        crosshairState.setAnchorY(y);
      }
    }
View Full Code Here

    final Rectangle dataArea = info.getDataArea();
    if (dataArea.contains(x, y)) {
      // set the anchor value for the horizontal axis...
      final ValueAxis da = this.getDomainAxis();
      if (da != null) {
        final double hvalue = da.java2DToValue(x, info.getDataArea(),
            this.getDomainAxisEdge());
        this.setDomainCrosshairValue(hvalue);
      }

      // set the anchor value for the vertical axis...
View Full Code Here

      }

      // set the anchor value for the vertical axis...
      final ValueAxis ra = this.getRangeAxis();
      if (ra != null) {
        final double vvalue = ra.java2DToValue(y, info.getDataArea(),
            this.getRangeAxisEdge());
        this.setRangeCrosshairValue(vvalue);
      }
    }
  }
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.