org.noos.xing.mydoggy.plaf.ui.cmp
Class TextIcon
java.lang.Object
org.noos.xing.mydoggy.plaf.ui.cmp.TextIcon
- All Implemented Interfaces:
- PropertyChangeListener, EventListener, Icon
public class TextIcon
- extends Object
- implements Icon, PropertyChangeListener
- Author:
- Angelo De Caro
ROTATE_DEFAULT
public static final int ROTATE_DEFAULT
- See Also:
- Constant Field Values
ROTATE_NONE
public static final int ROTATE_NONE
- See Also:
- Constant Field Values
ROTATE_LEFT
public static final int ROTATE_LEFT
- See Also:
- Constant Field Values
ROTATE_RIGHT
public static final int ROTATE_RIGHT
- See Also:
- Constant Field Values
foreground
protected Color foreground
component
protected Component component
text
protected String text
rotation
protected int rotation
underlinedIndex
protected int underlinedIndex
fWidth
protected int fWidth
fHeight
protected int fHeight
fDescent
protected int fDescent
TextIcon
public TextIcon(Component component,
String text)
TextIcon
public TextIcon(Component component,
String text,
int rotateHint)
TextIcon
public TextIcon(Component component,
String text,
int rotateHint,
int underlinedIndex)
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
- Specified by:
paintIcon in interface Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface Icon
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange in interface PropertyChangeListener
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize in class Object
- Throws:
Throwable
setText
public void setText(String text)
getText
public String getText()
getComponent
public Component getComponent()
getForeground
public Color getForeground()
setForeground
public void setForeground(Color foreground)
setUnderlinedIndex
public void setUnderlinedIndex(int underlinedIndex)
recalcDimensions
protected void recalcDimensions()
calcDimensions
protected void calcDimensions()
Copyright © 2012. All Rights Reserved.