Package com.positive.charts.common

Examples of com.positive.charts.common.RectangleEdge


    final double translatedValue0 = rangeAxis.valueToJava2D(value0,
        dataArea, plot.getRangeAxisEdge());
    final double translatedValue1 = rangeAxis.valueToJava2D(value1,
        dataArea, plot.getRangeAxisEdge());

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


        space.ensureAtLeast(this.fixedDomainAxisSpace.getBottom(),
            RectangleEdge.BOTTOM);
      }
    } else {
      // reserve space for the primary domain axis...
      final RectangleEdge domainEdge = Plot.resolveDomainAxisLocation(
          this.getDomainAxisLocation(), this.orientation);
      if (this.drawSharedDomainAxis) {
        space = this.getDomainAxis().reserveSpace(g2, this, plotArea,
            domainEdge, space);
      }

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

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

  protected void drawDomainGridlines(final GC g2, final Rectangle dataArea) {

    // draw the domain grid lines, if any...
    if (this.isDomainGridlinesVisible()) {
      final CategoryAnchor anchor = this.getDomainGridlinePosition();
      final RectangleEdge domainAxisEdge = this.getDomainAxisEdge();
      final Stroke gridStroke = this.getDomainGridlineStroke();
      final Color gridPaint = this.getDomainGridlinePaint();
      if ((gridStroke != null) && (gridPaint != null)) {
        // iterate over the categories
        final CategoryDataset data = this.getDataset();
View Full Code Here

   *            the axis index.
   *
   * @return The edge (never <code>null</code>).
   */
  public RectangleEdge getDomainAxisEdge(final int index) {
    RectangleEdge result = null;
    final AxisLocation location = this.getDomainAxisLocation(index);
    if (location != null) {
      result = Plot.resolveDomainAxisLocation(location, this.orientation);
    } else {
      result = RectangleEdge.opposite(this.getDomainAxisEdge(0));
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 = RectangleEdge.opposite(this.getRangeAxisEdge(0));
    }
    return result;
View Full Code Here

      if (this.orientation == PlotOrientation.HORIZONTAL) {
        java2D = x;
      } else if (this.orientation == PlotOrientation.VERTICAL) {
        java2D = y;
      }
      final RectangleEdge edge = Plot.resolveRangeAxisLocation(this
          .getRangeAxisLocation(), this.orientation);
      final double value = this.getRangeAxis().java2DToValue(java2D,
          info.getDataArea(), edge);
      this.setAnchorValue(value);
      this.setRangeCrosshairValue(value);
View Full Code Here

    final double[] barL0L1 = this.calculateBarL0L1(value);
    if (barL0L1 == null) {
      return; // the bar is not visible
    }

    final RectangleEdge edge = plot.getRangeAxisEdge();
    final double transL0 = rangeAxis.valueToJava2D(barL0L1[0], dataArea,
        edge);
    final double transL1 = rangeAxis.valueToJava2D(barL0L1[1], dataArea,
        edge);
    final double barL0 = Math.min(transL0, transL1);
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.