org.gjt.btools.gui.component
Class FancyData

java.lang.Object
  |
  +--org.gjt.btools.gui.component.FancyData

public class FancyData
extends java.lang.Object

Contains a piece of data along with a variety of associated attributes. Any of these attributes may be null, in which case they will be ignored. This class can be used in conjunction with various cell renderers and editors.


Field Summary
 java.lang.Object data
          The piece of data stored.
 java.awt.Color fgColor
          The foreground colour with which to draw the data.
 java.lang.String toolTip
          A tooltip associated with the data.
 
Constructor Summary
FancyData(java.lang.Object data, java.awt.Color fgColor)
          Creates a new object with the given attributes.
FancyData(java.lang.Object data, java.awt.Color fgColor, java.lang.String toolTip)
          Creates a new object with the given attributes.
FancyData(java.lang.Object data, java.lang.String toolTip)
          Creates a new object with the given attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public java.lang.Object data
The piece of data stored.


fgColor

public java.awt.Color fgColor
The foreground colour with which to draw the data.


toolTip

public java.lang.String toolTip
A tooltip associated with the data.

Constructor Detail

FancyData

public FancyData(java.lang.Object data,
                 java.awt.Color fgColor,
                 java.lang.String toolTip)
Creates a new object with the given attributes.

Parameters:
data - the piece data to store.
fgColor - the foreground colour with which to draw the data.
toolTip - a tooltip associated with the data.

FancyData

public FancyData(java.lang.Object data,
                 java.awt.Color fgColor)
Creates a new object with the given attributes.

Parameters:
data - the piece data to store.
fgColor - the foreground colour with which to draw the data.

FancyData

public FancyData(java.lang.Object data,
                 java.lang.String toolTip)
Creates a new object with the given attributes.

Parameters:
data - the piece data to store.
toolTip - a tooltip associated with the data.


Copyright © 1998-2001, Ben Burton
This software is released under the GNU Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).