Package com.positive.charts.common

Examples of com.positive.charts.common.RectangleEdge


    final State s = (State) this.initialise(gc, dataArea, plot, dataset,
        info);

    s.seriesPath = new Path(gc.getDevice());

    final RectangleEdge xAxisLocation = plot.getDomainAxisEdge();
    final RectangleEdge yAxisLocation = plot.getRangeAxisEdge();

    for (final Iterator iter = items.iterator(); iter.hasNext();) {
      final XYDataItem item = (XYDataItem) iter.next();
      // get the data point...
      final double x1 = item.getX().doubleValue();
View Full Code Here


    }
    if (orientation == null) {
      throw new IllegalArgumentException("Null 'orientation' argument.");
    }

    RectangleEdge result = null;

    if (location == AxisLocation.TOP_OR_RIGHT) {
      if (orientation == PlotOrientation.HORIZONTAL) {
        result = RectangleEdge.RIGHT;
      } else if (orientation == PlotOrientation.VERTICAL) {
View Full Code Here

    }
    if (orientation == null) {
      throw new IllegalArgumentException("Null 'orientation' argument.");
    }

    RectangleEdge result = null;

    if (location == AxisLocation.TOP_OR_RIGHT) {
      if (orientation == PlotOrientation.HORIZONTAL) {
        result = RectangleEdge.TOP;
      } else if (orientation == PlotOrientation.VERTICAL) {
View Full Code Here

    } else {
      // reserve space for the domain axes...
      for (int i = 0; i < this.domainAxes.size(); i++) {
        final Axis axis = (Axis) this.domainAxes.get(i);
        if (axis != null) {
          final RectangleEdge edge = this.getDomainAxisEdge(i);
          space = axis.reserveSpace(gc, this, plotArea, edge, space);
        }
      }
    }
View Full Code Here

    } else {
      // reserve space for the range axes...
      for (int i = 0; i < this.rangeAxes.size(); i++) {
        final Axis axis = (Axis) this.rangeAxes.get(i);
        if (axis != null) {
          final RectangleEdge edge = this.getRangeAxisEdge(i);
          space = axis.reserveSpace(gc, this, plotArea, edge, space);
        }
      }
    }
    return space;
View Full Code Here

   *
   * @return The edge.
   */
  public RectangleEdge getDomainAxisEdge(final int index) {
    final AxisLocation location = this.getDomainAxisLocation(index);
    RectangleEdge result = Plot.resolveDomainAxisLocation(location,
        this.orientation);
    if (result == null) {
      result = this.getDomainAxisEdge().opposite();
    }
    return result;
View Full Code Here

   *
   * @return The edge.
   */
  public RectangleEdge getRangeAxisEdge(final int index) {
    final AxisLocation location = this.getRangeAxisLocation(index);
    RectangleEdge result = Plot.resolveRangeAxisLocation(location,
        this.orientation);
    if (result == null) {
      result = this.getRangeAxisEdge().opposite();
    }
    return result;
View Full Code Here

      }
    }

    double translatedBase;
    double translatedValue;
    final RectangleEdge location = plot.getRangeAxisEdge();
    if (value > 0.0) {
      translatedBase = rangeAxis.valueToJava2D(positiveBase, dataArea,
          location);
      translatedValue = rangeAxis.valueToJava2D(positiveBase + value,
          dataArea, location);
View Full Code Here

      }
    }

    double translatedBase;
    double translatedValue;
    final RectangleEdge location = plot.getRangeAxisEdge();
    if (value >= 0.0) {
      translatedBase = rangeAxis.valueToJava2D(positiveBase, dataArea,
          location);
      translatedValue = rangeAxis.valueToJava2D(positiveBase + value,
          dataArea, location);
View Full Code Here

      }
    }

    double translatedBase;
    double translatedValue;
    final RectangleEdge edgeR = plot.getRangeAxisEdge();
    if (value > 0.0) {
      translatedBase = rangeAxis.valueToJava2D(positiveBase, dataArea,
          edgeR);
      translatedValue = rangeAxis.valueToJava2D(positiveBase + value,
          dataArea, edgeR);
    } else {
      translatedBase = rangeAxis.valueToJava2D(negativeBase, dataArea,
          edgeR);
      translatedValue = rangeAxis.valueToJava2D(negativeBase + value,
          dataArea, edgeR);
    }

    final RectangleEdge edgeD = plot.getDomainAxisEdge();
    final double startX = intervalDataset.getStartXValue(series, item);
    if (Double.isNaN(startX)) {
      return;
    }
    double translatedStartX = domainAxis.valueToJava2D(startX, dataArea,
View Full Code Here

TOP

Related Classes of com.positive.charts.common.RectangleEdge

Copyright © 2018 www.massapicom. 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.