Examples of AxisSpace


Examples of com.positive.charts.axis.AxisSpace

   *            the plot area.
   *
   * @return The required space.
   */
  protected AxisSpace calculateAxisSpace(final GC gc, final Rectangle plotArea) {
    AxisSpace space = new AxisSpace();
    space = this.calculateDomainAxisSpace(gc, plotArea, space);
    space = this.calculateRangeAxisSpace(gc, plotArea, space);
    return space;
  }
View Full Code Here

Examples of com.positive.charts.axis.AxisSpace

   */
  protected AxisSpace calculateDomainAxisSpace(final GC gc,
      final Rectangle plotArea, AxisSpace space) {

    if (space == null) {
      space = new AxisSpace();
    }

    // reserve some space for the domain axis...
    if (this.fixedDomainAxisSpace != null) {
      if (this.orientation == PlotOrientation.HORIZONTAL) {
View Full Code Here

Examples of com.positive.charts.axis.AxisSpace

   */
  protected AxisSpace calculateRangeAxisSpace(final GC gc,
      final Rectangle plotArea, AxisSpace space) {

    if (space == null) {
      space = new AxisSpace();
    }

    // reserve some space for the range axis...
    if (this.fixedRangeAxisSpace != null) {
      if (this.orientation == PlotOrientation.HORIZONTAL) {
View Full Code Here

Examples of com.positive.charts.axis.AxisSpace

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

Examples of com.positive.charts.axis.AxisSpace

   *            the plot area.
   *
   * @return The space required for the axes.
   */
  protected AxisSpace calculateAxisSpace(final GC g2, final Rectangle plotArea) {
    AxisSpace space = new AxisSpace();
    space = this.calculateRangeAxisSpace(g2, plotArea, space);
    space = this.calculateDomainAxisSpace(g2, plotArea, space);
    return space;
  }
View Full Code Here

Examples of com.positive.charts.axis.AxisSpace

  }

  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

Examples of com.positive.charts.axis.AxisSpace

   */
  protected AxisSpace calculateDomainAxisSpace(final GC g2,
      final Rectangle plotArea, AxisSpace space) {

    if (space == null) {
      space = new AxisSpace();
    }

    // reserve some space for the domain axis...
    if (this.fixedDomainAxisSpace != null) {
      if (this.orientation == PlotOrientation.HORIZONTAL) {
View Full Code Here

Examples of com.positive.charts.axis.AxisSpace

   */
  protected AxisSpace calculateRangeAxisSpace(final GC g2,
      final Rectangle plotArea, AxisSpace space) {

    if (space == null) {
      space = new AxisSpace();
    }

    // reserve some space for the range axis...
    if (this.fixedRangeAxisSpace != null) {
      if (this.orientation == PlotOrientation.HORIZONTAL) {
View Full Code Here

Examples of com.positive.charts.axis.AxisSpace

      // adjust the drawing area for the plot insets (if any)...
      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

Examples of org.jfree.chart.axis.AxisSpace

    protected AxisSpace calculateDomainAxisSpace(Graphics2D g2,
                                                 Rectangle2D plotArea,
                                                 AxisSpace space) {

        if (space == null) {
            space = new AxisSpace();
        }

        // reserve some space for the domain axis...
        if (this.fixedDomainAxisSpace != null) {
            if (this.orientation == PlotOrientation.HORIZONTAL) {
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.