public class TextStyleBuilder extends LabelStyleBuilder
swigCMemOwn| Constructor and Description |
|---|
TextStyleBuilder()
Constructs a TextStyleBuilder object with all parameters set to defaults.
|
TextStyleBuilder(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
TextStyle |
buildStyle()
Builds a new instance of the TextStyle object using previously set parameters.
|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(TextStyleBuilder obj) |
java.lang.String |
getFontName()
Returns the font name for the text label.
|
int |
getFontSize()
Returns the font size for the text label.
|
Color |
getStrokeColor()
Returns the stroke color for the text label.
|
float |
getStrokeWidth()
Returns the stroke width for the text label.
|
java.lang.String |
getTextField()
Returns the text field variable.
|
void |
setFontName(java.lang.String fontName)
Sets the font name for the text label.
|
void |
setFontSize(int size)
Sets the font size for the text label.
|
void |
setStrokeColor(Color strokeColor)
Sets the stroke color for the text label.
|
void |
setStrokeWidth(float strokeWidth)
Sets the stroke width for the text label.
|
void |
setTextField(java.lang.String field)
Sets the text field variable.
|
static TextStyleBuilder |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
getAnchorPointX, getAnchorPointY, getCPtr, getOrientationMode, getScalingMode, isFlippable, setAnchorPoint, setAnchorPointX, setAnchorPointY, setFlippable, setOrientationMode, setScalingModegetAttachAnchorPointX, getAttachAnchorPointY, getCPtr, getHorizontalOffset, getPlacementPriority, getVerticalOffset, isCausesOverlap, isHideIfOverlapped, isScaleWithDPI, setAttachAnchorPoint, setAttachAnchorPointX, setAttachAnchorPointY, setCausesOverlap, setHideIfOverlapped, setHorizontalOffset, setPlacementPriority, setScaleWithDPI, setVerticalOffsetpublic TextStyleBuilder(long cPtr,
boolean cMemoryOwn)
public TextStyleBuilder()
public static long getCPtr(TextStyleBuilder obj)
protected void finalize()
finalize in class LabelStyleBuilderpublic void delete()
delete in class LabelStyleBuilderpublic static TextStyleBuilder swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public java.lang.String getFontName()
public void setFontName(java.lang.String fontName)
fontName - The new platform dependent font name for the text label.public java.lang.String getTextField()
public void setTextField(java.lang.String field)
field - The text field to use for displaying text from metainfo.public int getFontSize()
public void setFontSize(int size)
size - The new font size for the text label in points.public Color getStrokeColor()
public void setStrokeColor(Color strokeColor)
strokeColor - The new stroke color for the text label.public float getStrokeWidth()
public void setStrokeWidth(float strokeWidth)
strokeWidth - The new stroke width for the text label in screen density independent pixels.public TextStyle buildStyle()
buildStyle in class LabelStyleBuilderpublic java.lang.String swigGetClassName()
swigGetClassName in class LabelStyleBuilderpublic java.lang.Object swigGetDirectorObject()
swigGetDirectorObject in class LabelStyleBuilder