public class TextStyle extends LabelStyle
swigCMemOwn
构造器和说明 |
---|
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)
基于多个参数创建TextStyle对象,不建议直接创建该对象,而是调用TextStyleBuilder创建
|
TextStyle(long cPtr,
boolean cMemoryOwn) |
限定符和类型 | 方法和说明 |
---|---|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(TextStyle obj) |
Color |
getFontColor()
获取字体颜色
|
java.lang.String |
getFontName()
获取字体名称
|
int |
getFontSize()
获取字体大小
|
Color |
getStrokeColor()
获取描边颜色
|
float |
getStrokeWidth()
获取描边宽度
|
java.lang.String |
getTextField()
获取显示文本对应的字段
|
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, isFlippable
getAttachAnchorPointX, getAttachAnchorPointY, getCPtr, getHorizontalOffset, getPlacementPriority, getVerticalOffset, isCausesOverlap, isHideIfOverlapped, isScaleWithDPI
public 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
- text的颜色attachAnchorPointX
- 基于锚点的水平偏移量attachAnchorPointY
- 基于锚点的竖直偏移量causesOverlap
- 是否能导致压盖hideIfOverlapped
- The hide if overlapped flag for the billboard.horizontalOffset
- The horizontal offset.verticalOffset
- 竖直偏移量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
- 缩放模式fontName
- 字体名称textField
- The text field variable to use.fontSize
- 字体大小strokeColor
- 描边颜色strokeWidth
- 描边宽度public static long getCPtr(TextStyle obj)
protected void finalize()
finalize
在类中 LabelStyle
public void delete()
delete
在类中 LabelStyle
public static TextStyle swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.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
在类中 LabelStyle
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
在类中 LabelStyle