public final class TextIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
TextIcon(java.lang.String text,
java.awt.Color foreground,
java.awt.Color background,
int margin) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getIconHeight() |
int |
getIconWidth() |
int |
hashCode() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
void |
setBackground(java.awt.Color background) |
void |
setFont(java.awt.Font font) |
void |
setForeground(java.awt.Color foreground) |
void |
setInsets(java.awt.Insets insets) |
void |
setInsets(int top,
int left,
int bottom,
int right) |
void |
setRound(int round) |
void |
setText(java.lang.String text) |
public TextIcon(java.lang.String text, java.awt.Color foreground, java.awt.Color background, int margin)
public void setInsets(int top, int left, int bottom, int right)
public void setInsets(java.awt.Insets insets)
public void setRound(int round)
public void setBackground(java.awt.Color background)
public void setForeground(java.awt.Color foreground)
public void setText(java.lang.String text)
public void setFont(java.awt.Font font)
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object