FileDocCategorySizeDatePackage
SampleData.javaAPI DocExample2237Sat Sep 12 03:01:00 BST 1998None

SampleData

public class SampleData extends Object
version
1.1 07/29/97
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;