ix.iface.ui
Interface FourField
- All Known Implementing Classes:
- DefaultColourField
- public interface FourField
An interface with four aspects: string, colour, symbol, image.
The four aspects can be displayed as one cell. They are of type
String - to be represented by text
- Color - to be represented by background colour
- Icon - to be represented as an icon image
- char - to be represented as a symbol
Not all of the fields have to be set. Only the text is required (if there
is none, make toString return the empty string). Renderers should be able
to display what is set and determine how many dimensions are needed.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toColour
public java.awt.Color toColour()
toIcon
public javax.swing.Icon toIcon()
toSymbol
public java.lang.Character toSymbol()
hasColour
public boolean hasColour()
hasIcon
public boolean hasIcon()
hasSymbol
public boolean hasSymbol()