public interface IColorIcon
extends javax.swing.Icon
Icon
which is filled with a constant color.Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
Returns the color of the icon.
|
java.lang.String |
getText()
Returns the text value to be returned by the
toString() method. |
void |
setText(java.lang.String text)
Sets the text value to be returned by the
toString() method. |
java.lang.String |
toString()
Overrides
Object.toString() to return the text specified by getText() so that if this icon is used in a table, copying table will result
in a meaningful text. |
java.awt.Color getColor()
java.lang.String getText()
toString()
method. Useful if this icon is rendered in a table, and users might copy data from the
table (because this text will be copied).toString()
methodvoid setText(java.lang.String text)
toString()
method. Useful if this icon is rendered in a table, and users might copy data from the
table (because this text will be copied).text
- text to be setjava.lang.String toString()
Object.toString()
to return the text specified by getText()
so that if this icon is used in a table, copying table will result
in a meaningful text.toString
in class java.lang.Object
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.