org.eclipse.birt.chart.computation
Class LegendBuilder

java.lang.Object
  extended byorg.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.


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
LegendBuilder()
          The constructor.
 
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()
The constructor.

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.

Throws:
GenerationException
ChartException

getSize

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

Returns:


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