|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.cke.command.CreekCommand
jcreek.cke.command.EntityMoveCommand
Title: JavaCreek Description: A Case Based Reasoning approach developed in Java Copyright: Copyright (c) 1999 Company: Phil Systems
Field Summary | |
protected int |
deltaX
Delta X move of the entity list. |
protected int |
deltaY
Delta Y move of the entity list. |
protected VertexList |
entities
List of entities to be moved by the delta values. |
Fields inherited from class jcreek.cke.command.CreekCommand |
canUndoRedo, document |
Constructor Summary | |
EntityMoveCommand(CreekDocument doc,
VertexList nl,
int dx,
int dy)
Constructor for this command. |
Method Summary | |
boolean |
addEdit(javax.swing.undo.UndoableEdit parm1)
Try to merge anEdit with this edit. |
void |
die()
May be sent to inform an edit that it should no longer be used. |
java.lang.String |
getPresentationName()
Return the human-readable name for this action. |
java.lang.String |
getRedoPresentationName()
Return the human-readable name for redoing this command. |
java.lang.String |
getUndoPresentationName()
Return the human-readable name for undoing this command. |
boolean |
isSignificant()
Return true if this command is not a side-effect of some other change. |
boolean |
perform()
Perform the action for the first time. |
void |
redo()
Moves the vertex back into the model. |
boolean |
replaceEdit(javax.swing.undo.UndoableEdit parm1)
See if we can be the given edit, thus replacing it in the undo queue. |
void |
undo()
Moves the moved entity back to where it was located. |
Methods inherited from class jcreek.cke.command.CreekCommand |
canRedo, canUndo, getDocument, replaced, setDocument |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected VertexList entities
protected int deltaX
protected int deltaY
Constructor Detail |
public EntityMoveCommand(CreekDocument doc, VertexList nl, int dx, int dy)
doc
- document we're performed onnl
- entity list to be moveddx
- delta x move for entity listdy
- delta y move for entity listMethod Detail |
public java.lang.String getUndoPresentationName()
public boolean perform()
perform
in class CreekCommand
public void die()
public boolean isSignificant()
public void redo()
public void undo()
public boolean addEdit(javax.swing.undo.UndoableEdit parm1)
public java.lang.String getRedoPresentationName()
public boolean replaceEdit(javax.swing.undo.UndoableEdit parm1)
public java.lang.String getPresentationName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |