|
Scribble Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scribble.ScribbleData
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
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 |
public ScribbleData()
public ScribbleData(java.awt.Component gui)
Method Detail |
public void setGUI(java.awt.Component gui)
protected void paintLines(java.awt.Graphics g)
public void addLine(Line newLine)
public void clearLines()
|
Scribble Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |