Class PlotWith2DAxes
java.lang.Object
org.eclipse.birt.chart.computation.PlotComputation
org.eclipse.birt.chart.computation.withaxes.PlotWithAxes
org.eclipse.birt.chart.computation.withaxes.PlotWith2DAxes
- All Implemented Interfaces:
IConstants
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, ARRAY, AUTO, AVERAGE, AXIS, BACKWARD, BASE, BASE_AXIS, BELOW, BIG_NUMBER_PRIMITIVE_ARRAY, BOOLEAN, BOTTOM, CENTER, COLLECTION, DATE_TIME, DESIGN_TIME, EMPTY_STRING, EQUAL, FORWARD, HORIZONTAL, INSIDE, LABELS, LEFT, LEGEND_ENTRY, LEGEND_GROUP_NAME, 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, NUMBER_PRIMITIVE_ARRAY, NUMERICAL, ONE_SPACE, ORTHOGONAL, ORTHOGONAL_AXIS, OTHER, OUTSIDE, PERCENT, POSITION_MASK, POSITION_MOVE_ABOVE, POSITION_MOVE_BELOW, POSITION_MOVE_LEFT, POSITION_MOVE_RIGHT, 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
ConstructorsConstructorDescriptionPlotWith2DAxes
(IDisplayServer _ids, ChartWithAxes _cwa, RunTimeContext _rtc) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMargin
(int percent) void
This method computes the entire chart within the given bounds.Returns the plot bounds with margin area.getSeriesRenderingHints
(SeriesDefinition sdOrthogonal, Series seOrthogonal) void
Initializes the chart plot bounds for the dynamic size case.Methods inherited from class org.eclipse.birt.chart.computation.withaxes.PlotWithAxes
checkDataType, getAxes, getAxisType, getDimension, getDisplayServer, getHorizontalSpacingInPixels, getLabellLimiter, getModel, getSeriesThickness, getTickSize, getTransposedAngle, getVerticalSpacingInPixels, putLabelLimiter, transposeLabelPosition
Methods inherited from class org.eclipse.birt.chart.computation.PlotComputation
getChartComputation, getPlotBounds, getPlotInsets, getPointToPixel, getRunTimeContext
-
Constructor Details
-
PlotWith2DAxes
public PlotWith2DAxes(IDisplayServer _ids, ChartWithAxes _cwa, RunTimeContext _rtc) throws IllegalArgumentException, ChartException The default constructor- Parameters:
_ids
- The display server using which the chart is computed_cwa
- An instance of the model (ChartWithAxes)- Throws:
IllegalArgumentException
ChartException
-
-
Method Details
-
compute
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 classPlotComputation
- Parameters:
bo
-- Throws:
ChartException
IllegalArgumentException
-
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 ISeriesRenderingHints getSeriesRenderingHints(SeriesDefinition sdOrthogonal, Series seOrthogonal) throws ChartException, IllegalArgumentException - Specified by:
getSeriesRenderingHints
in classPlotComputation
- Returns:
- ISeriesRenderingHints
- Throws:
ChartException
IllegalArgumentException
-
getStackedSeriesLookup
-
addMargin
public void addMargin(int percent) -
initDynamicPlotBounds
Initializes the chart plot bounds for the dynamic size case.- Parameters:
bo
- bounds with dynamic size, such as 0 or negative value- Throws:
ChartException
- Since:
- 2.3
-