org.noos.xing.mydoggy.plaf.ui.cmp
Class TextIcon

java.lang.Object
  extended by 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

Field Summary
protected  Component component
           
protected  int fDescent
           
protected  int fHeight
           
protected  Color foreground
           
protected  int fWidth
           
static int ROTATE_DEFAULT
           
static int ROTATE_LEFT
           
static int ROTATE_NONE
           
static int ROTATE_RIGHT
           
protected  int rotation
           
protected  String text
           
protected  int underlinedIndex
           
 
Constructor Summary
TextIcon(Component component, String text)
           
TextIcon(Component component, String text, int rotateHint)
           
TextIcon(Component component, String text, int rotateHint, int underlinedIndex)
           
 
Method Summary
protected  void calcDimensions()
           
protected  void finalize()
           
 Component getComponent()
           
 Color getForeground()
           
 int getIconHeight()
           
 int getIconWidth()
           
 String getText()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void propertyChange(PropertyChangeEvent e)
           
protected  void recalcDimensions()
           
 void setForeground(Color foreground)
           
 void setText(String text)
           
 void setUnderlinedIndex(int underlinedIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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.