org.eclipse.birt.chart.computation
Class LegendBuilder

java.lang.Object
  extended by org.eclipse.birt.chart.computation.LegendBuilder
All Implemented Interfaces:
IConstants

public final class LegendBuilder
extends java.lang.Object
implements IConstants

A helper class for Legend computation.


Nested Class Summary
static class LegendBuilder.LabelItem
           
 
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, 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, 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
LegendBuilder()
           
 
Method Summary
 Size compute(IDisplayServer xs, Chart cm, SeriesDefinition[] seda, RunTimeContext rtc)
          Computes the size of the legend.
 Size getSize()
          Returns the size computed previously.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegendBuilder

public LegendBuilder()
Method Detail

compute

public final Size compute(IDisplayServer xs,
                          Chart cm,
                          SeriesDefinition[] seda,
                          RunTimeContext rtc)
                   throws ChartException
Computes the size of the legend. Note the computation relies on the title size, so the title block must be layouted first before this.

Parameters:
lg -
sea -
Throws:
ChartException

getSize

public final Size getSize()
Returns the size computed previously.

Returns:
size


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