Package org.flexdock.dockbar.util
Class TextIcon
java.lang.Object
org.flexdock.dockbar.util.TextIcon
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,Icon
- Author:
- Andreas Ernst, Christopher Butler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
getText()
static int
getValidRotation
(int rotation) void
void
void
void
setRotation
(int rotation) void
void
validate()
-
Field Details
-
ROTATE_NONE
public static final int ROTATE_NONE- See Also:
-
ROTATE_LEFT
public static final int ROTATE_LEFT- See Also:
-
ROTATE_RIGHT
public static final int ROTATE_RIGHT- See Also:
-
-
Constructor Details
-
TextIcon
Creates aTextIcon
for the specifiedcomponent
with the specifiedlabel
. It sets the orientation to the provided value if it's legal for the string
-
-
Method Details
-
getText
-
setText
-
setIcon
-
setRotation
public void setRotation(int rotation) -
getValidRotation
public static int getValidRotation(int rotation) -
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
paintIcon
-
validate
public void validate()
-