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 intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetText()static intgetValidRotation(int rotation) voidvoidvoidvoidsetRotation(int rotation) voidvoidvalidate()
-
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 aTextIconfor the specifiedcomponentwith 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:
propertyChangein interfacePropertyChangeListener
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-
paintIcon
-
validate
public void validate()
-