|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.satin.command.Clipboard
A clipboard for the cut, copy, and paste commands. This is just a temporary measure, until we use the actual Java provided clipboard. It's a waste of time to get that working at this stage.
There are two ways to use this. There is a universal clipboard that can be retrieved via class method getClipboard(). Alternatively, individual clipboards can be created via the constructor.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Jun 22 1999, JH Created class - SATIN-v2.1-1.0.0, Aug 11 2000, JH Touched for SATIN release
Inner classes inherited from class edu.berkeley.guir.lib.satin.SatinConstants |
SatinConstants.ObjectPoolAffineTransform, SatinConstants.ObjectPoolPoint2D, SatinConstants.ObjectPoolPolygon2D, SatinConstants.ObjectPoolRectangle2D, SatinConstants.ObjectPoolStringBuffer, SatinConstants.UniqueAffineTransform, SatinConstants.UniquePoint2D, SatinConstants.UniquePolygon2D, SatinConstants.UniqueRectangle2D |
Constructor Summary | |
Clipboard()
|
Method Summary | |
void |
clearClipboard()
Clear the contents of the clipboard. |
void |
copyToClipboard(GraphicalObject gob)
Place a copy of the specified GraphicalObject on the clipboard. |
void |
copyToClipboard(Iterator it)
Copy a collection of Graphical Object to the clipboard. |
Iterator |
getContents()
Get an Iterator over copies of GraphicalObjects in the clipboard. |
void |
removeFromClipboard(GraphicalObject gob)
Remove an item from the clipboard. |
void |
setClipboardContents(Iterator it)
Set the clipboard contents to the specified collection of Graphical Objects, erasing whatever was there before. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Clipboard()
Method Detail |
public Iterator getContents()
public void copyToClipboard(GraphicalObject gob)
gob
- is the Graphical Object to copy to the clipboard.public void copyToClipboard(Iterator it)
it
- is the collection of Graphical Objects. Ignores elements
within that are not Graphical Objects.public void removeFromClipboard(GraphicalObject gob)
gob
- is the Graphical Object to remove from the clipboard.public void clearClipboard()
public void setClipboardContents(Iterator it)
it
- is the collection of Graphical Objects. Ignores elements
within that are not Graphical Objects.public String toString()
toString
in class Object
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |