public class TextRenderEvent extends PrimitiveRenderEvent
Modifier and Type | Field and Description |
---|---|
static int |
ABOVE
A constant used with the 'TextPosition' attribute.
|
static int |
BELOW
A constant used with the 'TextPosition' attribute.
|
static int |
LEFT
A constant used with the 'TextPosition' attribute.
|
static int |
RENDER_SHADOW_AT_LOCATION
Renders a shadow offset with the encapsulating container rectangle's
corner or edge aligned with a given point
This action requires Label, Location, TextPosition to be set
|
static int |
RENDER_TEXT_AT_LOCATION
Renders text (with optional insets, border, fill, etc) with the
encapsulating container rectangle's corner or edge aligning with a given
point
This action requires Label, Location, TextPosition to be set
|
static int |
RENDER_TEXT_IN_BLOCK
Renders text (with optional insets, border, fill, etc) with the
encapsulating container rectangle's bounding box aligned with a parent
block's bounds
This action requires Label, BlockBounds, BlockAlignment to be set
|
static int |
RIGHT
A constant used with the 'TextPosition' attribute.
|
static int |
UNDEFINED
An undefined action that will result in an error
|
DRAW, FILL, iObjIndex
Constructor and Description |
---|
TextRenderEvent(java.lang.Object oSource)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
PrimitiveRenderEvent |
copy() |
void |
draw(IDeviceRenderer idr)
Causes this instruction to 'draw' itself on the device renderer
|
void |
fill(IDeviceRenderer idr)
Causes this instruction to 'fill' itself on the device renderer
|
int |
getAction() |
TextAlignment |
getBlockAlignment() |
Bounds |
getBlockBounds() |
Label |
getLabel() |
Location |
getLocation() |
int |
getTextPosition() |
void |
reset()
Resets the inner state of current event.
|
void |
setAction(int iAction)
Sets the action of current event.
|
void |
setBlockAlignment(TextAlignment taBlock)
Sets the block alignment of the text.
|
void |
setBlockBounds(Bounds boBlock)
Sets the block bounds of the text.
|
void |
setLabel(Label la)
Sets the label of the text.
|
void |
setLocation(Location lo)
Sets the location of the text.
|
void |
setRtlCaption()
Adds the "RLE" and "PDF" unicode control characters to label caption where "RLE" is added to the beginning and "PDF" to the end
to apply right to left reading order
|
void |
setTextPosition(int iTextPosition)
Sets the position of the text.
|
void |
updateFrom(LabelBlock lb,
double dScale,
RunTimeContext rtc)
Updates the event by given LabelBlock object.
|
compareRegular, compareTo, compareTransposed, getBackground, getBounds, getDepth, getLineAttributes, isEnabled, setDepth, setEnable
setSourceObject
public static final int UNDEFINED
public static final int RENDER_SHADOW_AT_LOCATION
public static final int RENDER_TEXT_AT_LOCATION
public static final int RENDER_TEXT_IN_BLOCK
public static final int LEFT
public static final int RIGHT
public static final int ABOVE
public static final int BELOW
public TextRenderEvent(java.lang.Object oSource)
public final void setBlockBounds(Bounds boBlock)
public final void setRtlCaption()
public final Bounds getBlockBounds()
public final void setLabel(Label la)
public final Label getLabel()
getLabel
in class PrimitiveRenderEvent
public final void setBlockAlignment(TextAlignment taBlock)
public final TextAlignment getBlockAlignment()
public final void setAction(int iAction)
public final int getAction()
public final void setLocation(Location lo)
public final Location getLocation()
public final void setTextPosition(int iTextPosition)
public final int getTextPosition()
public final void updateFrom(LabelBlock lb, double dScale, RunTimeContext rtc)
public PrimitiveRenderEvent copy()
copy
in class PrimitiveRenderEvent
public void fill(IDeviceRenderer idr) throws ChartException
PrimitiveRenderEvent
fill
in class PrimitiveRenderEvent
ChartException
public final void draw(IDeviceRenderer idr) throws ChartException
PrimitiveRenderEvent
draw
in class PrimitiveRenderEvent
ChartException
public void reset()
ChartEvent
reset
in class ChartEvent
Copyright © 2005-2008 Actuate Corp. All rights reserved.