protected static class DerivationViewer.TextIcon
extends java.lang.Object
implements javax.swing.Icon, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static int |
HEIGHT |
protected java.awt.Color |
m_background |
protected java.awt.Font |
m_font |
protected java.awt.Color |
m_foreground |
protected java.lang.String |
m_text |
protected static int |
WIDTH |
| Constructor and Description |
|---|
DerivationViewer.TextIcon(java.awt.Color background,
java.awt.Color foreground,
java.lang.String text,
java.awt.Font font) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
protected static final int WIDTH
protected static final int HEIGHT
protected final java.awt.Color m_background
protected final java.awt.Color m_foreground
protected final java.lang.String m_text
protected final java.awt.Font m_font
public DerivationViewer.TextIcon(java.awt.Color background,
java.awt.Color foreground,
java.lang.String text,
java.awt.Font font)
public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Icon