public class Text extends JavascriptObject implements Serializable
Modifier and Type | Field and Description |
---|---|
Fill |
fill |
String |
font |
Number |
offsetX |
Number |
offsetY |
Number |
rotation |
Number |
scale |
Stroke |
stroke |
String |
text |
String |
textAlign |
String |
textBaseLine |
counter, JS_GLOBAL, objectIds
Constructor and Description |
---|
Text(String text,
Fill fill) |
Text(String font,
Number offsetX,
Number offsetY,
Number scale,
Number rotation,
String text,
String textAlign,
String textBaseLine,
Fill fill,
Stroke stroke) |
Modifier and Type | Method and Description |
---|---|
Fill |
getFill() |
String |
getFont() |
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
Number |
getOffsetX() |
Number |
getOffsetY() |
Number |
getRotation() |
Number |
getScale() |
Stroke |
getStroke() |
String |
getText() |
String |
getTextAlign() |
String |
getTextBaseLine() |
String |
renderAttributesJs() |
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setFill(Fill fill) |
void |
setFont(String font) |
void |
setOffsetX(Number offsetX) |
void |
setOffsetY(Number offsetY) |
void |
setRotation(Number rotation) |
void |
setScale(Number scale) |
void |
setStroke(Stroke stroke) |
void |
setText(String text) |
void |
setTextAlign(String textAlign) |
void |
setTextBaseLine(String textBaseLine) |
escapeQuoteJs, getJsId, getJsIdWithSuffix
public String font
public Number offsetX
public Number offsetY
public Number scale
public Number rotation
public String text
public String textAlign
public String textBaseLine
public Fill fill
public Stroke stroke
public String getFont()
public void setFont(String font)
public Number getOffsetX()
public void setOffsetX(Number offsetX)
public Number getOffsetY()
public void setOffsetY(Number offsetY)
public Number getScale()
public void setScale(Number scale)
public Number getRotation()
public void setRotation(Number rotation)
public String getText()
public void setText(String text)
public String getTextAlign()
public void setTextAlign(String textAlign)
public String getTextBaseLine()
public void setTextBaseLine(String textBaseLine)
public Fill getFill()
public void setFill(Fill fill)
public Stroke getStroke()
public void setStroke(Stroke stroke)
public String getJsType()
JavascriptObject
getJsType
in interface IJavascriptObject
getJsType
in class JavascriptObject
public String renderAttributesJs()
public String renderJs()
JavascriptObject
renderJs
in interface IJavascriptObject
renderJs
in class JavascriptObject
Copyright © 2015. All rights reserved.