public class TextStyle extends LabelStyle
swigCMemOwn| Constructor and Description |
|---|
TextStyle(Color color,
float attachAnchorPointX,
float attachAnchorPointY,
boolean causesOverlap,
boolean hideIfOverlapped,
float horizontalOffset,
float verticalOffset,
int placementPriority,
boolean scaleWithDPI,
float anchorPointX,
float anchorPointY,
boolean flippable,
BillboardOrientation orientationMode,
BillboardScaling scalingMode,
java.lang.String fontName,
java.lang.String textField,
int fontSize,
Color strokeColor,
float strokeWidth)
Constructs a TextStyle object from various parameters.
|
TextStyle(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(TextStyle obj) |
Color |
getFontColor()
Returns the font's color.
|
java.lang.String |
getFontName()
Returns the font's name.
|
int |
getFontSize()
Returns the font's size.
|
Color |
getStrokeColor()
Returns the color of the stroke.
|
float |
getStrokeWidth()
Returns the width of the stroke.
|
java.lang.String |
getTextField()
Returns the text field variable to use.
|
static TextStyle |
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, isFlippablegetAttachAnchorPointX, getAttachAnchorPointY, getCPtr, getHorizontalOffset, getPlacementPriority, getVerticalOffset, isCausesOverlap, isHideIfOverlapped, isScaleWithDPIpublic TextStyle(long cPtr,
boolean cMemoryOwn)
public TextStyle(Color color, float attachAnchorPointX, float attachAnchorPointY, boolean causesOverlap, boolean hideIfOverlapped, float horizontalOffset, float verticalOffset, int placementPriority, boolean scaleWithDPI, float anchorPointX, float anchorPointY, boolean flippable, BillboardOrientation orientationMode, BillboardScaling scalingMode, java.lang.String fontName, java.lang.String textField, int fontSize, Color strokeColor, float strokeWidth)
color - The color for the text.attachAnchorPointX - The horizontal attaching anchor point.attachAnchorPointY - The vertical attaching anchor point.causesOverlap - The causes overlap flag for the billboard.hideIfOverlapped - The hide if overlapped flag for the billboard.horizontalOffset - The horizontal offset.verticalOffset - The vertical offset.placementPriority - The placement priority.scaleWithDPI - The scale with DPI flag for the label.anchorPointX - The horizontal anchor point.anchorPointY - The vertical anchor point.flippable - The fliappble flag.orientationMode - The orientation mode.scalingMode - The scaling mode.fontName - The font's name.textField - The text field variable to use.fontSize - The font's size.strokeColor - The width of the color.strokeWidth - The width of the stroke.public static long getCPtr(TextStyle obj)
protected void finalize()
finalize in class LabelStylepublic void delete()
delete in class LabelStylepublic static TextStyle swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public Color getFontColor()
public java.lang.String getFontName()
public java.lang.String getTextField()
public int getFontSize()
public Color getStrokeColor()
public float getStrokeWidth()
public java.lang.String swigGetClassName()
swigGetClassName in class LabelStylepublic java.lang.Object swigGetDirectorObject()
swigGetDirectorObject in class LabelStyle