Package com.positive.charts.axis

Examples of com.positive.charts.axis.AxisSpace.shrink()


    // adjust the drawing area for the plot insets (if any)...
    final RectangleInsets insets = this.getInsets();
    insets.trim(area);

    final AxisSpace space = this.calculateAxisSpace(gc, area);
    final Rectangle dataArea = space.shrink(area, null);
    this.axisOffset.trim(dataArea);

    if (info != null) {
      info.setDataArea(dataArea);
    }
View Full Code Here


  public Rectangle calculateDataArea(final GC g2, final Rectangle area) {
    final Rectangle newRectangle = new Rectangle(0, 0, 0, 0);
    RectangleUtil.setRect(newRectangle, area);
    final AxisSpace space = this.calculateAxisSpace(g2, newRectangle);
    final Rectangle dataArea = space.shrink(newRectangle, null);
    this.axisOffset.trim(dataArea);
    return dataArea;
  }

  /**
 
View Full Code Here

      final RectangleInsets insets = this.getInsets();
      insets.trim(area);

      // calculate the data area...
      final AxisSpace space = this.calculateAxisSpace(g2, area);
      final Rectangle dataArea = space.shrink(area, null);
      this.axisOffset.trim(dataArea);

      if (state != null) {
        state.setDataArea(dataArea);
      }
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.