|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.eclipse.birt.chart.event.ChartEvent
org.eclipse.birt.chart.event.PrimitiveRenderEvent
org.eclipse.birt.chart.event.TextRenderEvent
public class TextRenderEvent
A rendering event type for rendering text object.
Field Summary | |
---|---|
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 |
Fields inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent |
---|
DRAW, FILL, iObjIndex |
Constructor Summary | |
---|---|
TextRenderEvent(java.lang.Object oSource)
The constructor. |
Method Summary | |
---|---|
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. |
java.lang.String |
updateFrom(LabelBlock lb,
double dScale,
RunTimeContext rtc)
Updates the event by given LabelBlock object. |
Methods inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent |
---|
compareRegular, compareTo, compareTransposed, getBackground, getBounds, getDepth, getLineAttributes, setDepth |
Methods inherited from class org.eclipse.birt.chart.event.ChartEvent |
---|
setSourceObject |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public TextRenderEvent(java.lang.Object oSource)
Method Detail |
---|
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 java.lang.String 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |