infosapient.ui
Class InfoSapientTreeData

java.lang.Object
  |
  +--infosapient.ui.InfoSapientTreeData

public class InfoSapientTreeData
extends java.lang.Object

Yarked from Swing examples

Version:
$Revision: 1.1.1.1 $

Field Summary
(package private) static java.awt.Font BOLD
           
protected  java.awt.Color color
          Color used for text.
protected  java.awt.Font font
          font for display
(package private) static java.awt.Font PLAIN
           
protected  java.lang.String string
          Value to display.
(package private)  java.lang.Object userData
           
 
Constructor Summary
InfoSapientTreeData(java.awt.Font newFont, java.awt.Color newColor, java.lang.String newString)
          Constructs a new instance of BlackMesaTreeData with the arguments supplied.
InfoSapientTreeData(java.lang.Object o)
          Constructs a new instance of BlackMesaTreeData
 
Method Summary
 java.awt.Color getColor()
          Returns the color used to draw the text.
 java.awt.Font getFont()
          Returns the Font used to represent this object.
 void setColor(java.awt.Color newColor)
          Sets the color used to draw the text.
 void setFont(java.awt.Font newFont)
          Sets the font that is used to represent this object.
 void setString(java.lang.String newString)
          Sets the string to display for this object.
 java.lang.String string()
          Returnes the string to display for this object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

userData

java.lang.Object userData

PLAIN

static final java.awt.Font PLAIN

BOLD

static final java.awt.Font BOLD

font

protected java.awt.Font font
font for display

color

protected java.awt.Color color
Color used for text.

string

protected java.lang.String string
Value to display.
Constructor Detail

InfoSapientTreeData

public InfoSapientTreeData(java.awt.Font newFont,
                           java.awt.Color newColor,
                           java.lang.String newString)
Constructs a new instance of BlackMesaTreeData with the arguments supplied.
Parameters:
Font - - font for this node.
Color - -- color to be displayed for this node
String - -- description

InfoSapientTreeData

public InfoSapientTreeData(java.lang.Object o)
Constructs a new instance of BlackMesaTreeData
Method Detail

getColor

public java.awt.Color getColor()
Returns the color used to draw the text.

getFont

public java.awt.Font getFont()
Returns the Font used to represent this object.

setColor

public void setColor(java.awt.Color newColor)
Sets the color used to draw the text.

setFont

public void setFont(java.awt.Font newFont)
Sets the font that is used to represent this object.

setString

public void setString(java.lang.String newString)
Sets the string to display for this object.

string

public java.lang.String string()
Returnes the string to display for this object.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.

Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved