|
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.InsertCommand
A Command to insert a new Graphical Object.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Mar 12 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 | |
InsertCommand(GraphicalObjectGroup gobs)
|
|
InsertCommand(GraphicalObjectGroup gobs,
GraphicalObject gob)
Create the insert command object. |
|
InsertCommand(GraphicalObjectGroup gobs,
GraphicalObject gob,
int pos)
Create the insert command object. |
|
InsertCommand(GraphicalObjectGroup gobs,
Iterator it,
int pos)
|
|
| Method Summary | |
void |
addGraphicalObject(GraphicalObject gob)
|
boolean |
canRedo()
Override this method in the subclass. |
boolean |
canUndo()
Override this method in the subclass. |
void |
clearGraphicalObjects()
|
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)
|
void |
run()
This method is called by execute() if the command is enabled. |
void |
setAddPolicy(int val)
Set the policy for how objects will be added, either keeping their absolute position or their relative position. |
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 InsertCommand(GraphicalObjectGroup gobs)
public InsertCommand(GraphicalObjectGroup gobs,
GraphicalObject gob)
gobs - is the Graphical Object Group to insert into.gob - is the Graphical Object to insert.
public InsertCommand(GraphicalObjectGroup gobs,
GraphicalObject gob,
int pos)
gobs - is the Graphical Object Group to insert into.gob - is the Graphical Object to insert.pos - is either GraphicalObjectGroup.KEEP_REL_POS or
GraphicalObjectGroup.KEEP_ABS_POS.
public InsertCommand(GraphicalObjectGroup gobs,
Iterator it,
int pos)
| Method Detail |
public void setAddPolicy(int val)
val - is either GraphicalObjectGroup.KEEP_ABS_POS or
GraphicalObjectGroup.KEEP_REL_POS.public void addGraphicalObject(GraphicalObject gob)
public void removeGraphicalObject(GraphicalObject gob)
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 | |||||||||