FileDocCategorySizeDatePackage
SampleData.javaAPI DocSun JDK 1.4.2 Example3261Thu May 12 00:35:28 BST 2005None

SampleData

public class SampleData extends Object
version
1.7 01/23/03
author
Scott Violet

Fields Summary
protected Font
font
Font used for drawing.
protected Color
color
Color used for text.
protected String
string
Value to display.
Constructors Summary
public SampleData(Font newFont, Color newColor, String newString)
Constructs a new instance of SampleData with the passed in arguments.

	font = newFont;
	color = newColor;
	string = newString;
    
Methods Summary
public java.awt.ColorgetColor()
Returns the color used to draw the text.

	return color;
    
public java.awt.FontgetFont()
Returns the Font used to represent this object.

	return font;
    
public voidsetColor(java.awt.Color newColor)
Sets the color used to draw the text.

	color = newColor;
    
public voidsetFont(java.awt.Font newFont)
Sets the font that is used to represent this object.

	font = newFont;
    
public voidsetString(java.lang.String newString)
Sets the string to display for this object.

	string = newString;
    
public java.lang.Stringstring()
Returnes the string to display for this object.

	return string;
    
public java.lang.StringtoString()

	return string;