|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.chart.client.draw.sprite.Sprite
com.sencha.gxt.chart.client.draw.sprite.TextSprite
public class TextSprite
A Sprite that represents text.
| Nested Class Summary | |
|---|---|
static class |
TextSprite.TextAnchor
Enum for TextSprite anchor. |
| Constructor Summary | |
|---|---|
TextSprite()
Creates a text sprite. |
|
TextSprite(String text)
Creates a text sprite with the given text. |
|
TextSprite(TextSprite sprite)
Creates a copy of the given text sprite. |
|
| Method Summary | |
|---|---|
void |
clearDirtyFlags()
Clears all of the dirty flags on the sprite. |
TextSprite |
copy()
Returns a copy of the sprite. |
String |
getFont()
Returns the font of the text. |
int |
getFontSize()
Returns the font size of the text. |
Style.FontStyle |
getFontStyle()
Returns the Style.FontStyle of the text. |
Style.FontWeight |
getFontWeight()
Returns the Style.FontWeight of the text. |
PathSprite |
getPathSprite()
Returns the Sprite as a path. |
String |
getText()
Returns the content of the text. |
TextSprite.TextAnchor |
getTextAnchor()
Returns the text anchor. |
double |
getX()
Returns the x-coordinate of the text. |
double |
getY()
Returns the y-coordinate of the text. |
boolean |
isDirty()
Returns true if the sprite changed since the last render. |
boolean |
isFontDirty()
Returns true if the font changed since the last render. |
boolean |
isFontSizeDirty()
Returns true if the font size changed since the last render. |
boolean |
isFontStyleDirty()
Returns true if the font style changed since the last render. |
boolean |
isFontWeightDirty()
Returns true if the font weight changed since the last render. |
boolean |
isTextAnchorDirty()
Returns true if the text anchor changed since the last render. |
boolean |
isTextDirty()
Returns true if the text changed since the last render. |
boolean |
isXDirty()
Returns true if the x changed since the last render. |
boolean |
isYDirty()
Returns true if the y changed since the last render. |
void |
setFont(String font)
Sets the font of the text. |
void |
setFontSize(int fontSize)
Sets the font size of the text. |
void |
setFontStyle(Style.FontStyle fontStyle)
Sets the Style.FontStyle of the text. |
void |
setFontWeight(Style.FontWeight fontWeight)
Sets the Style.FontWeight of the text. |
void |
setText(String text)
Sets the content of the text. |
void |
setTextAnchor(TextSprite.TextAnchor textAnchor)
Sets the TextSprite.TextAnchor of the text. |
void |
setX(double x)
Sets the x-coordinate of the text. |
void |
setY(double y)
Sets the y-coordinate of the text. |
void |
update(Sprite sprite)
Updates the attributes of the sprite using the given sprite. |
| Methods inherited from class com.sencha.gxt.chart.client.draw.sprite.Sprite |
|---|
getBBox, getClipRectangle, getComponent, getFill, getFillOpacity, getOpacity, getRotation, getScaling, getStroke, getStrokeOpacity, getStrokeWidth, getSurface, getTranslation, getzIndex, isClipRectangleDirty, isFillDirty, isFillOpacityDirty, isHidden, isHiddenDirty, isOpacityDirty, isStrokeDirty, isStrokeOpacityDirty, isStrokeWidthDirty, isTransformDirty, isZIndexDirty, redraw, remove, setClipRectangle, setComponent, setCursor, setFill, setFillOpacity, setHidden, setOpacity, setRotation, setRotation, setRotation, setScaling, setScaling, setScaling, setStroke, setStrokeOpacity, setStrokeWidth, setSurface, setTranslation, setTranslation, setZIndex, transformMatrix |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextSprite()
public TextSprite(String text)
text - the text represented in the spritepublic TextSprite(TextSprite sprite)
sprite - the sprite to be copied| Method Detail |
|---|
public void clearDirtyFlags()
Sprite
clearDirtyFlags in class Spritepublic TextSprite copy()
Sprite
copy in class Spritepublic String getFont()
public int getFontSize()
public Style.FontStyle getFontStyle()
Style.FontStyle of the text.
public Style.FontWeight getFontWeight()
Style.FontWeight of the text.
public PathSprite getPathSprite()
SpriteSprite as a path.
getPathSprite in class Spritepublic String getText()
public TextSprite.TextAnchor getTextAnchor()
public double getX()
public double getY()
public boolean isDirty()
Sprite
isDirty in class Spritepublic boolean isFontDirty()
public boolean isFontSizeDirty()
public boolean isFontStyleDirty()
public boolean isFontWeightDirty()
public boolean isTextAnchorDirty()
public boolean isTextDirty()
public boolean isXDirty()
public boolean isYDirty()
public void setFont(String font)
font - the font of the textpublic void setFontSize(int fontSize)
fontSize - the font size of the textpublic void setFontStyle(Style.FontStyle fontStyle)
Style.FontStyle of the text.
fontStyle - the font style of the textpublic void setFontWeight(Style.FontWeight fontWeight)
Style.FontWeight of the text.
fontWeight - the font weight of the textpublic void setText(String text)
text - the content of the textpublic void setTextAnchor(TextSprite.TextAnchor textAnchor)
TextSprite.TextAnchor of the text.
textAnchor - the anchor of the textpublic void setX(double x)
x - the x-coordinate of the textpublic void setY(double y)
y - the y-coordinate of the textpublic void update(Sprite sprite)
Sprite
update in class Spritesprite - the sprite attributes to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||