org.oboedit.gui.widget
Class TextIcon

java.lang.Object
  extended by org.oboedit.gui.widget.TextIcon
All Implemented Interfaces:
javax.swing.Icon

public class TextIcon
extends java.lang.Object
implements javax.swing.Icon


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
TextIcon(java.lang.String text)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
protected  void recalculateBounds()
           
 void setBackground(java.awt.Color background)
           
 void setFont(java.awt.Font font)
           
 void setForeground(java.awt.Color foreground)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

TextIcon

public TextIcon(java.lang.String text)
Method Detail

setForeground

public void setForeground(java.awt.Color foreground)

setBackground

public void setBackground(java.awt.Color background)

setFont

public void setFont(java.awt.Font font)

setText

public void setText(java.lang.String text)

recalculateBounds

protected void recalculateBounds()

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon