Examples of java2DToValue()


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

            // 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) {
                    this.renderer.getPlot().clearDomainMarkers();
View Full Code Here

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

            Rectangle2D dataArea = info.getPlotInfo().getDataArea();
            ValueAxis domainAxis = this.renderer.getPlot().getDomainAxis();
            RectangleEdge edge = this.renderer.getPlot().getDomainAxisEdge();

            // define the point for the peaks
            double peakPoint = domainAxis.java2DToValue(point.getX(), dataArea, edge);

            this.intmark = new ValueMarker(peakPoint);
            this.intmark.setPaint(Color.GREEN);
            this.renderer.getPlot().addDomainMarker(this.intmark, Layer.BACKGROUND);
        }
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()

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

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

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

            }

            // set the anchor value for the vertical axis...
            ValueAxis yaxis = getRangeAxis();
            if (yaxis != null) {
                double vvalue = yaxis.java2DToValue(y, info.getDataArea(),
                        getRangeAxisEdge());
                setRangeCrosshairValue(vvalue);
            }
        }
    }
View Full Code Here

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

                    // orientation
                    double sourceX = source.getX();
                    if (this.orientation == PlotOrientation.HORIZONTAL) {
                        sourceX = source.getY();
                    }
                    double anchorX = domainAxis.java2DToValue(sourceX,
                            info.getDataArea(), getDomainAxisEdge());
                    domainAxis.resizeRange2(factor, anchorX);
                }
                else {
                    domainAxis.resizeRange(factor);
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()

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

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

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

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

            }
            ValueAxis rangeAxis = getRangeAxis();
            if (rangeAxis != null) {
                double y;
                if (orient == PlotOrientation.VERTICAL) {
                    y = rangeAxis.java2DToValue(anchor.getY(), dataArea,
                            getRangeAxisEdge());
                }
                else {
                    y = rangeAxis.java2DToValue(anchor.getX(), dataArea,
                            getRangeAxisEdge());
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.