|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.viz.property.color.ColorManager2Icon
class ColorManager2Icon
Constructs a new icon with its specific Color and size.
Constructor Summary | |
---|---|
ColorManager2Icon(DataCell cell,
Color color)
Creates new squared color icon. |
|
ColorManager2Icon(DataCell cell,
String prefix,
Color color)
Creates new squared color icon. |
Method Summary | |
---|---|
DataCell |
getCell()
|
Color |
getColor()
|
int |
getIconHeight()
|
int |
getIconWidth()
|
String |
getText()
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
|
void |
setColor(Color color)
Set's a new color. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ColorManager2Icon(DataCell cell, Color color)
cell
- The label.color
- The initial color.ColorManager2Icon(DataCell cell, String prefix, Color color)
cell
- The label.prefix
- The label's prefix.color
- The inital color.Method Detail |
---|
public void setColor(Color color)
color
- The new Color.public Color getColor()
public DataCell getCell()
public String getText()
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |