Package org.jfree.chart.axis

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


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

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

               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

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

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

      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);
         }
View Full Code Here

         {
            xx = xAxis.java2DToValue(anchor.getX(), dataArea, xAxisEdge);
         }
         else
         {
            xx = xAxis.java2DToValue(anchor.getY(), dataArea, xAxisEdge);
         }
         crosshairState.setCrosshairX(xx);
      }
      setDomainCrosshairValue(crosshairState.getCrosshairX(), false);
      if (isDomainCrosshairVisible())
View Full Code Here

      if (!this.rangeCrosshairLockedOnData && anchor != null)
      {
         double yy;
         if (orient == PlotOrientation.VERTICAL)
         {
            yy = yAxis.java2DToValue(anchor.getY(), dataArea, yAxisEdge);
         }
         else
         {
            yy = yAxis.java2DToValue(anchor.getX(), dataArea, yAxisEdge);
         }
View Full Code Here

         {
            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

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.