Examples of java2DToValue()


Examples of org.jfree.chart.axis.ValueAxis.java2DToValue()

                if (getOrientation() == PlotOrientation.VERTICAL) {
                    y = rangeAxis.java2DToValue(anchor.getY(), dataArea,
                            getRangeAxisEdge());
                }
                else {
                    y = rangeAxis.java2DToValue(anchor.getX(), dataArea,
                            getRangeAxisEdge());
                }
                crosshairState.setAnchorY(y);
            }
        }
View Full Code Here

Examples of org.jfree.chart.axis.ValueAxis.java2DToValue()

        ValueAxis yAxis = getRangeAxisForDataset(datasetIndex);
        RectangleEdge yAxisEdge = getRangeAxisEdge();
        if (!this.rangeCrosshairLockedOnData && anchor != null) {
            double yy;
            if (getOrientation() == PlotOrientation.VERTICAL) {
                yy = yAxis.java2DToValue(anchor.getY(), dataArea, yAxisEdge);
            }
            else {
                yy = yAxis.java2DToValue(anchor.getX(), dataArea, yAxisEdge);
            }
            crosshairState.setCrosshairY(yy);
View Full Code Here

Examples of org.jfree.chart.axis.ValueAxis.java2DToValue()

            double yy;
            if (getOrientation() == PlotOrientation.VERTICAL) {
                yy = yAxis.java2DToValue(anchor.getY(), dataArea, yAxisEdge);
            }
            else {
                yy = yAxis.java2DToValue(anchor.getX(), dataArea, yAxisEdge);
            }
            crosshairState.setCrosshairY(yy);
        }
        setRangeCrosshairValue(crosshairState.getCrosshairY(), false);
        if (isRangeCrosshairVisible()) {
View Full Code Here

Examples of org.jfree.chart.axis.ValueAxis.java2DToValue()

                    // orientation
                    double sourceY = source.getY();
                    if (this.orientation == PlotOrientation.HORIZONTAL) {
                        sourceY = source.getX();
                    }
                    double anchorY = rangeAxis.java2DToValue(sourceY,
                            info.getDataArea(), getRangeAxisEdge());
                    rangeAxis.resizeRange2(factor, anchorY);
                }
                else {
                    rangeAxis.resizeRange(factor);
View Full Code Here

Examples of org.jfree.chart.axis.ValueAxis.java2DToValue()

        for (int axisIdx = 0; axisIdx < getAxisCount(); axisIdx++) {
            final ValueAxis axis = getAxis(axisIdx);
            if (axis != null) {
                if (useAnchor) {
                    double anchorX = axis.java2DToValue(sourceX,
                            info.getDataArea(), RectangleEdge.BOTTOM);
                    axis.resizeRange(factor, anchorX);
                }
                else {
                    axis.resizeRange(factor);
View Full Code Here

Examples of org.jfree.chart.axis.ValueAxis.java2DToValue()

      double dblDepthMax = GfrDouble.DBL_NDV;
      double dblDepthMin = GfrDouble.DBL_NDV;

      if (axisRange != null)
      {
         dblValueMax = axisRange.java2DToValue(dataArea.getMaxX(), dataArea,
               plt.getRangeAxisEdge());

         dblValueMin = axisRange.java2DToValue(dataArea.getMinX(), dataArea,
               plt.getRangeAxisEdge());
      }
View Full Code Here

Examples of org.jfree.chart.axis.ValueAxis.java2DToValue()

      if (axisRange != null)
      {
         dblValueMax = axisRange.java2DToValue(dataArea.getMaxX(), dataArea,
               plt.getRangeAxisEdge());

         dblValueMin = axisRange.java2DToValue(dataArea.getMinX(), dataArea,
               plt.getRangeAxisEdge());
      }

      if (axisDomain != null)
      {
View Full Code Here

Examples of org.jfree.chart.axis.ValueAxis.java2DToValue()

    protected double mouseXAxisPosition(Point p) {
        ChartRenderingInfo info = this.chartPanel.getChartRenderingInfo();
        Rectangle2D dataArea = info.getPlotInfo().getDataArea();
        ValueAxis axis = getDomainAxis();
        RectangleEdge edge = getXYPlot().getDomainAxisEdge();
        return axis.java2DToValue(p.getX(), dataArea, edge);
    }


     protected double mouseYAxisPosition(Point p) {
        ChartRenderingInfo info = this.chartPanel.getChartRenderingInfo();
View Full Code Here

Examples of org.jfree.chart.axis.ValueAxis.java2DToValue()

     protected double mouseYAxisPosition(Point p) {
        ChartRenderingInfo info = this.chartPanel.getChartRenderingInfo();
        Rectangle2D dataArea = info.getPlotInfo().getDataArea();
        ValueAxis axis = getRangeAxis();
        RectangleEdge edge = getXYPlot().getRangeAxisEdge();
        return axis.java2DToValue(p.getY(), dataArea, edge);
    }


    /**
     * Convenience hit-testing
View Full Code Here

Examples of org.jfree.chart.axis.ValueAxis.java2DToValue()

            RectangleEdge edge = this.renderer.getPlot().getDomainAxisEdge();

            // define the limits for the region to be shaded

            if ((startpoint != null) && (endpoint != null)) {
                double x = domainAxis.java2DToValue(startpoint.getX(), dataArea, edge);
                double endX = domainAxis.java2DToValue(endpoint.getX(), dataArea, edge);
                if (this.marker_set != 0) {
                    this.renderer.getPlot().clearDomainMarkers();
                }
                if (endX < x) {
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.