|
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.CommandImpl | +--edu.berkeley.guir.lib.satin.command.CopyCommand
Copy a Graphical Object to the clipboard.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Mar 14 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 | |
CopyCommand()
|
|
CopyCommand(GraphicalObject gob)
Create the copy command object, copying the specified GraphicalObject into the clipboard. |
|
CopyCommand(Iterator it)
Make the specified collection of Graphical Objects the list of Graphical Objects to copy into the clipboard. |
|
CopyCommand(Vector gobs)
Make the specified collection of Graphical Objects the list of Graphical Objects to copy into the clipboard. |
Method Summary | |
void |
addGraphicalObject(GraphicalObject gob)
Add a Graphical Object to the list of Graphical Objects to be copied. |
boolean |
canRedo()
Override this method in the subclass. |
boolean |
canUndo()
Override this method in the subclass. |
void |
clearGraphicalObjects()
Clear the list of Graphical Objects to be copied. |
void |
die()
Override this method in the subclass. |
String |
getPresentationName()
Override this method in the subclass. |
boolean |
isSignificant()
Override this method in the subclass. |
void |
redo()
Override this method in the subclass. |
void |
removeGraphicalObject(GraphicalObject gob)
Remove a Graphical Object from the list of Graphical Objects to be copied. |
void |
run()
This method is called by execute() if the command is enabled. |
void |
undo()
Override this method in the subclass. |
Methods inherited from class edu.berkeley.guir.lib.satin.command.CommandImpl |
addEdit, debug, disable, enable, execute, getExecutionTime, getRedoPresentationName, getUndoPresentationName, isDisabled, isEnabled, replaceEdit, setExecutionTime, setExecutionTime, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CopyCommand()
public CopyCommand(GraphicalObject gob)
gob
- is the Graphical Object to insert.public CopyCommand(Iterator it)
it
- is the Iterator of Graphical Objects to copy.public CopyCommand(Vector gobs)
gobs
- is the Vector of Graphical Objects to copy.Method Detail |
public void addGraphicalObject(GraphicalObject gob)
gob
- is the Graphical Object to copy.public void removeGraphicalObject(GraphicalObject gob)
gob
- is the Graphical Object to remove from the copy command.public void clearGraphicalObjects()
public String getPresentationName()
CommandImpl
getPresentationName
in class CommandImpl
public boolean canRedo()
CommandImpl
canRedo
in class CommandImpl
public boolean canUndo()
CommandImpl
canUndo
in class CommandImpl
public boolean isSignificant()
CommandImpl
isSignificant
in class CommandImpl
public void run()
CommandImpl
run
in class CommandImpl
public void redo()
CommandImpl
redo
in class CommandImpl
public void undo()
CommandImpl
undo
in class CommandImpl
public void die()
CommandImpl
die
in class CommandImpl
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |