public class CornerMark extends Object
corner mark elements are added for components in a container to display a corner mark on top of a component.
| 限定符和类型 | 类 | 说明 |
|---|---|---|
protected static class |
CornerMark.CornerMarkCleaner |
Represents the cleaner class for corner marks.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
ShapeElement |
getElement() |
Obtains the shape element of the corner mark.
|
int |
getHeight() |
Obtains the height of the corner mark.
|
String |
getText() |
Obtains the text in the corner mark.
|
Color |
getTextColor() |
Obtains the color of the text being displayed in the corner mark.
|
int |
getTextSize() |
Obtains the size of the text displayed in the corner mark.
|
int |
getWidth() |
Obtains the width of the corner mark.
|
protected void |
registerCleaner() |
Registers a cleaner for corner marks.
|
void |
setElement(ShapeElement element) |
Sets the shape element of the corner mark.
|
void |
setHeight(int height) |
Sets the height of the corner mark.
|
void |
setText(String text) |
Sets the text to be display in the corner mark.
|
void |
setTextColor(Color txtColor) |
Sets the color of the text displayed in the corner mark.
|
void |
setTextSize(int textSize) |
Sets the size of text to be display in the corner mark.
|
void |
setWidth(int width) |
Sets the width of the corner mark.
|
protected void registerCleaner()
public void setText(String text)
text - Indicates the text to set.public String getText()
public ShapeElement getElement()
public void setElement(ShapeElement element)
element - Indicates the given shape element.public void setWidth(int width)
width - Indicates the width to set.public int getWidth()
public void setHeight(int height)
height - Indicates the height to set.public int getHeight()
public void setTextSize(int textSize)
textSize - Indicates the text size to set.public int getTextSize()
public void setTextColor(Color txtColor)
txtColor - Indicates the text color to set.public Color getTextColor()