Package org.jfree.chart.axis

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


        Iterator iterator = this.xCrosshairs.iterator();
        while (iterator.hasNext()) {
            Crosshair ch = (Crosshair) iterator.next();
            if (ch.isVisible()) {
                double x = ch.getValue();
                double xx = xAxis.valueToJava2D(x, dataArea, xAxisEdge);
                if (plot.getOrientation() == PlotOrientation.VERTICAL) {
                    drawVerticalCrosshair(g2, dataArea, xx, ch);
                }
                else {
                    drawHorizontalCrosshair(g2, dataArea, xx, ch);
View Full Code Here


        iterator = this.yCrosshairs.iterator();
        while (iterator.hasNext()) {
            Crosshair ch = (Crosshair) iterator.next();
            if (ch.isVisible()) {
                double y = ch.getValue();
                double yy = yAxis.valueToJava2D(y, dataArea, yAxisEdge);
                if (plot.getOrientation() == PlotOrientation.VERTICAL) {
                    drawHorizontalCrosshair(g2, dataArea, yy, ch);
                }
                else {
                    drawVerticalCrosshair(g2, dataArea, yy, ch);
View Full Code Here

      if (xAxis == null)
      {  // we can't draw quadrants without a valid x-axis
         return;
      }
      double x = xAxis.getRange().constrain(this.quadrantOrigin.getX());
      double xx = xAxis.valueToJava2D(x, area, getDomainAxisEdge());

      ValueAxis yAxis = getRangeAxis();
      if (yAxis == null)
      {  // we can't draw quadrants without a valid y-axis
         return;
View Full Code Here

      if (yAxis == null)
      {  // we can't draw quadrants without a valid y-axis
         return;
      }
      double y = yAxis.getRange().constrain(this.quadrantOrigin.getY());
      double yy = yAxis.valueToJava2D(y, area, getRangeAxisEdge());

      double xmin = xAxis.getLowerBound();
      double xxmin = xAxis.valueToJava2D(xmin, area, getDomainAxisEdge());

      double xmax = xAxis.getUpperBound();
View Full Code Here

      double xmax = xAxis.getUpperBound();
      double xxmax = xAxis.valueToJava2D(xmax, area, getDomainAxisEdge());

      double ymin = yAxis.getLowerBound();
      double yymin = yAxis.valueToJava2D(ymin, area, getRangeAxisEdge());

      double ymax = yAxis.getUpperBound();
      double yymax = yAxis.valueToJava2D(ymax, area, getRangeAxisEdge());

      Rectangle2D[] r = new Rectangle2D[]
View Full Code Here

      double ymin = yAxis.getLowerBound();
      double yymin = yAxis.valueToJava2D(ymin, area, getRangeAxisEdge());

      double ymax = yAxis.getUpperBound();
      double yymax = yAxis.valueToJava2D(ymax, area, getRangeAxisEdge());

      Rectangle2D[] r = new Rectangle2D[]
      {
         null, null, null, null
      };
View Full Code Here

      {
         axis = getDomainAxis();
      }
      if (axis.getRange().contains(value))
      {
         double yy = axis.valueToJava2D(value, dataArea, RectangleEdge.LEFT);
         Line2D line = new Line2D.Double(dataArea.getMinX(), yy,
                 dataArea.getMaxX(), yy);
         g2.setStroke(stroke);
         g2.setPaint(paint);
         g2.draw(line);
View Full Code Here

      {
         axis = getRangeAxis();
      }
      if (axis.getRange().contains(value))
      {
         double xx = axis.valueToJava2D(value, dataArea,
                 RectangleEdge.BOTTOM);
         Line2D line = new Line2D.Double(xx, dataArea.getMinY(), xx,
                 dataArea.getMaxY());
         g2.setStroke(stroke);
         g2.setPaint(paint);
View Full Code Here

        ValueAxis xAxis = getDomainAxis();
        if (xAxis == null) {  // we can't draw quadrants without a valid x-axis
            return;
        }
        double x = xAxis.getRange().constrain(this.quadrantOrigin.getX());
        double xx = xAxis.valueToJava2D(x, area, getDomainAxisEdge());

        ValueAxis yAxis = getRangeAxis();
        if (yAxis == null) {  // we can't draw quadrants without a valid y-axis
            return;
        }
View Full Code Here

        ValueAxis yAxis = getRangeAxis();
        if (yAxis == null) {  // we can't draw quadrants without a valid y-axis
            return;
        }
        double y = yAxis.getRange().constrain(this.quadrantOrigin.getY());
        double yy = yAxis.valueToJava2D(y, area, getRangeAxisEdge());

        double xmin = xAxis.getLowerBound();
        double xxmin = xAxis.valueToJava2D(xmin, area, getDomainAxisEdge());

        double xmax = xAxis.getUpperBound();
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.