org.eclipse.birt.chart.device
Class TextRendererAdapter

java.lang.Object
  extended by org.eclipse.birt.chart.device.TextRendererAdapter
All Implemented Interfaces:
IConstants, ITextRenderer

public class TextRendererAdapter
extends java.lang.Object
implements ITextRenderer


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_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
 
Method Summary
 void renderShadowAtLocation(IPrimitiveRenderer idr, int labelPosition, Location lo, Label la)
          This method renders the 'shadow' at an offset from the text 'rotated rectangle' subsequently rendered.
 void renderTextAtLocation(IPrimitiveRenderer ipr, int labelPosition, Location lo, Label la)
           
 void renderTextInBlock(IDeviceRenderer idr, Bounds boBlock, TextAlignment taBlock, Label la)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

renderShadowAtLocation

public void renderShadowAtLocation(IPrimitiveRenderer idr,
                                   int labelPosition,
                                   Location lo,
                                   Label la)
                            throws ChartException
Description copied from interface: ITextRenderer
This method renders the 'shadow' at an offset from the text 'rotated rectangle' subsequently rendered.

Specified by:
renderShadowAtLocation in interface ITextRenderer
labelPosition - The position of the label w.r.t. the location specified by 'lo'
lo - The location (specified as a 2d point) where the text is to be rendered
la - The chart model structure containing the encapsulated text (and attributes) to be rendered
Throws:
ChartException

renderTextAtLocation

public void renderTextAtLocation(IPrimitiveRenderer ipr,
                                 int labelPosition,
                                 Location lo,
                                 Label la)
                          throws ChartException
Specified by:
renderTextAtLocation in interface ITextRenderer
labelPosition - IConstants. LEFT, RIGHT, ABOVE or BELOW
lo - POINT WHERE THE CORNER OF THE ROTATED RECTANGLE (OR EDGE CENTERED) IS RENDERED
Throws:
ChartException

renderTextInBlock

public void renderTextInBlock(IDeviceRenderer idr,
                              Bounds boBlock,
                              TextAlignment taBlock,
                              Label la)
                       throws ChartException
Specified by:
renderTextInBlock in interface ITextRenderer
Throws:
ChartException


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