org.eclipse.birt.chart.computation.withaxes
Class PlotWith2DAxes

java.lang.Object
  extended byorg.eclipse.birt.chart.computation.Methods
      extended byorg.eclipse.birt.chart.computation.withaxes.PlotWithAxes
          extended byorg.eclipse.birt.chart.computation.withaxes.PlotWith2DAxes
All Implemented Interfaces:
IConstants

public final class PlotWith2DAxes
extends PlotWithAxes

This class is capable of computing the content of a chart (with axes) based on preferred sizes, text rotation, fit ability, scaling, etc and prepares it for rendering. WARNING: This is an internal class and subject to change


Field Summary
 
Fields inherited from interface org.eclipse.birt.chart.computation.IConstants
ABOVE, ANCILLARY_AXIS, ANCILLARY_BASE, AUTO, AVERAGE, AXIS, BACKWARD, BASE, BASE_AXIS, BELOW, BOTTOM, CENTER, COLLECTION, DATE_TIME, DESIGN_TIME, EMPTY_STRING, EQUAL, FORWARD, HORIZONTAL, INSIDE, LABELS, LEFT, LEGEND_ENTRY, LEGEND_MINSLICE_ENTRY, LEGEND_SEPERATOR, LESS, LINE_EXPAND_DOUBLE_SIZE, LINE_EXPAND_SIZE, LINEAR, LOG_10, LOGARITHMIC, MAJOR, MAX, MIN, MINOR, MORE, NON_PRIMITIVE_ARRAY, NULL_STRING, NUMERICAL, ONE_SPACE, ORTHOGONAL, ORTHOGONAL_AXIS, OTHER, OUTSIDE, PERCENT, PRIMITIVE_ARRAY, RIGHT, RUN_TIME, SOME_NULL, TEXT, THREE_D, TICK_ABOVE, TICK_ACROSS, TICK_BELOW, TICK_LEFT, TICK_NONE, TICK_RIGHT, TICK_SIDE1, TICK_SIDE2, TICK_SIZE, TOP, TWO_5_D, TWO_D, UNDEFINED, UNDEFINED_STRING, USER_INTERFACE, VALUE, VERTICAL
 
Constructor Summary
PlotWith2DAxes(IDisplayServer _ids, ChartWithAxes _cwa, RunTimeContext _rtc)
          The default constructor
 
Method Summary
 void addMargin(int percent)
           
 void compute(Bounds bo)
          This method computes the entire chart within the given bounds.
 Bounds getPlotBoundsWithMargin()
          Returns the plot bounds with margin area.
 ISeriesRenderingHints getSeriesRenderingHints(SeriesDefinition sdOrthogonal, Series seOrthogonal)
           
 StackedSeriesLookup getStackedSeriesLookup()
           
 
Methods inherited from class org.eclipse.birt.chart.computation.withaxes.PlotWithAxes
getAxes, getDimension, getDisplayServer, getHorizontalSpacingInPixels, getPlotBounds, getPlotInsets, getRunTimeContext, getSeriesThickness, getTransposedAngle, getVerticalSpacingInPixels, transposeLabelPosition
 
Methods inherited from class org.eclipse.birt.chart.computation.Methods
asDateTime, asDouble, asInteger, computeBox, computeBox, computeHeight, computePolygon, computeRotatedTopPoint, computeWidth, getLabelPosition, getLocation, getLocation, getLocation, getNormalizedLocation, getNormalizedLocation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotWith2DAxes

public PlotWith2DAxes(IDisplayServer _ids,
                      ChartWithAxes _cwa,
                      RunTimeContext _rtc)
               throws java.lang.IllegalArgumentException,
                      ChartException
The default constructor

Parameters:
_ids - The display server using which the chart is computed
_cwa - An instance of the model (ChartWithAxes)
Throws:
ValidationException
UndefinedValueException
UnexpectedInputException
java.lang.IllegalArgumentException
ChartException
Method Detail

compute

public final void compute(Bounds bo)
                   throws ChartException,
                          java.lang.IllegalArgumentException
This method computes the entire chart within the given bounds. If the dataset has changed but none of the axis attributes have changed, simply re-compute without 'rebuilding axes'.

Specified by:
compute in class PlotWithAxes
Parameters:
bo -
Throws:
ChartException
java.lang.IllegalArgumentException

getPlotBoundsWithMargin

public final Bounds getPlotBoundsWithMargin()
Returns the plot bounds with margin area. Only valid when margin percent is set, otherwise will return plot bounds.

Returns:
The plot bounds with margin area

getSeriesRenderingHints

public final ISeriesRenderingHints getSeriesRenderingHints(SeriesDefinition sdOrthogonal,
                                                           Series seOrthogonal)
                                                    throws ChartException,
                                                           java.lang.IllegalArgumentException
Specified by:
getSeriesRenderingHints in class PlotWithAxes
Parameters:
sdOrthogonal -
seOrthogonal -
Returns:
Throws:
ChartException
java.lang.IllegalArgumentException

getStackedSeriesLookup

public final StackedSeriesLookup getStackedSeriesLookup()
Returns:

addMargin

public void addMargin(int percent)


Copyright © 2005-2007 Actuate Corp. All rights reserved.