Scribble Problem Set Javadocs

scribble
Class ScribbleData

java.lang.Object
  extended byscribble.ScribbleData

public class ScribbleData
extends java.lang.Object

ScribbleData is a repository of lines for use with a SmartCanvas. It has methods to add and clear lines, as well as paint on a given Graphics context.

Copyright (c) 1998 Massachusetts Institute of Technology

Version:
$Id: ScribbleData.java,v 1.2 2004/04/20 15:49:25 gus Exp $
Author:
Lynn Andrea Stein, las@ai.mit.edu, Todd C. Parnell, tparnell@ai.mit.edu

Constructor Summary
ScribbleData()
          Initilizes an empty ScribbleData.
ScribbleData(java.awt.Component gui)
          Initilizes an empty ScribbleData.
 
Method Summary
 void addLine(Line newLine)
          Stores a new line into this.
 void clearLines()
          Clears all Lines from this.
protected  void paintLines(java.awt.Graphics g)
          Paints all lines on this onto g.
 void setGUI(java.awt.Component gui)
          Sets the Component we paint on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScribbleData

public ScribbleData()
Initilizes an empty ScribbleData.


ScribbleData

public ScribbleData(java.awt.Component gui)
Initilizes an empty ScribbleData.

Method Detail

setGUI

public void setGUI(java.awt.Component gui)
Sets the Component we paint on.


paintLines

protected void paintLines(java.awt.Graphics g)
Paints all lines on this onto g.


addLine

public void addLine(Line newLine)
Stores a new line into this.


clearLines

public void clearLines()
Clears all Lines from this.


Scribble Problem Set Javadocs