Package org.jfree.chart.axis

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


      {
         // 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


         // 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

               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
            {
View Full Code Here

               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
            {
View Full Code Here

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

        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

                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

            }
            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

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

        ValueAxis xAxis = getDomainAxis(xAxisIndex);
        RectangleEdge xAxisEdge = getDomainAxisEdge(xAxisIndex);
        if (!this.domainCrosshairLockedOnData && anchor != null) {
            double xx;
            if (orient == PlotOrientation.VERTICAL) {
                xx = xAxis.java2DToValue(anchor.getX(), dataArea, xAxisEdge);
            }
            else {
                xx = xAxis.java2DToValue(anchor.getY(), dataArea, xAxisEdge);
            }
            crosshairState.setCrosshairX(xx);
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.