|
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.DeleteCommand
Delete a Graphical Object.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Mar 15 1999, JH
Created class
- SATIN-v2.1-1.0.0, Aug 11 2000, JH
Touched for SATIN release
- SATIN-v2.1-2.0.0, Oct 2 2000, JL
Rearranged class hierarchy so that CutCommand is now a
descendant, not parent
- SATIN-v2.1-2.0.1, Oct 7 2000, JH
Damages graphical objects on delete, to ensure that repaint
is done correctly.
| 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 |
| Field Summary | |
protected SortedMap |
layersTable
|
protected Map |
parentsTable
|
| Constructor Summary | |
DeleteCommand()
|
|
DeleteCommand(GraphicalObject gob)
Create the delete command object, deleting the specified GraphicalObject. |
|
DeleteCommand(Iterator it)
Make the specified collection of GraphicalObjects the list of GraphicalObjects to delete. |
|
DeleteCommand(Vector gobs)
Make the specified collection of Graphical Objects the list of Graphical Objects to delete. |
|
| Method Summary | |
void |
addGraphicalObject(GraphicalObject gob)
Add a Graphical Object to the list of Graphical Objects to be deleted. |
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 deleted. |
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 deleted. |
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 |
| Field Detail |
protected Map parentsTable
protected SortedMap layersTable
| Constructor Detail |
public DeleteCommand()
public DeleteCommand(GraphicalObject gob)
gob - is the Graphical Object to delete.public DeleteCommand(Iterator it)
it - is an Iterator of Graphical Objects.public DeleteCommand(Vector gobs)
gobs - is a Vector of Graphical Objects.| Method Detail |
public void addGraphicalObject(GraphicalObject gob)
gob - is the Graphical Object to cut.public void removeGraphicalObject(GraphicalObject gob)
gob - is the Graphical Object to remove from the delete command.public void clearGraphicalObjects()
public String getPresentationName()
CommandImplgetPresentationName in class CommandImplpublic boolean canRedo()
CommandImplcanRedo in class CommandImplpublic boolean canUndo()
CommandImplcanUndo in class CommandImplpublic boolean isSignificant()
CommandImplisSignificant in class CommandImplpublic void run()
CommandImplrun in class CommandImplpublic void redo()
CommandImplredo in class CommandImplpublic void undo()
CommandImplundo in class CommandImplpublic void die()
CommandImpldie in class CommandImpl
|
Copyright Information | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||