public class DisplayText extends Object implements Serializable
| Constructor and Description |
|---|
DisplayText(String text,
Color color,
Font font,
Point point,
float alpha)
构造
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
float |
getAlpha()
获取透明度
|
Color |
getColor()
获取文本颜色
|
Font |
getFont()
获取字体
|
Point |
getPoint()
获取二维坐标点
|
String |
getPressText()
获取文本
|
int |
hashCode() |
static DisplayText |
of(String text,
Color color,
Font font,
Point point,
float alpha)
构建DisplayText
|
void |
setAlpha(float alpha)
设置透明度
|
void |
setColor(Color color)
设置文本颜色
|
void |
setFont(Font font)
设置字体
|
void |
setPoint(Point point)
设置二维坐标点
|
void |
setPressText(String pressText)
设置文本
|
String |
toString() |
public static DisplayText of(String text, Color color, Font font, Point point, float alpha)
text - 文本color - 文本颜色font - 文本显示字体point - 起始左边位置alpha - 透明度public String getPressText()
public void setPressText(String pressText)
pressText - 文本public Color getColor()
public void setColor(Color color)
color - 文本颜色public Font getFont()
public void setFont(Font font)
font - 字体public Point getPoint()
public void setPoint(Point point)
point - 二维坐标点public float getAlpha()
public void setAlpha(float alpha)
alpha - 透明度Copyright © 2025. All rights reserved.