|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QUndoCommand
edu.jhu.cs.oose.elevel.AdvancedEditCard.commands.DrawCommand
edu.jhu.cs.oose.elevel.AdvancedEditCard.commands.DrawItemCommand
public class DrawItemCommand
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.QtJambiObject |
---|
com.trolltech.qt.QtJambiObject.QPrivateConstructor |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
com.trolltech.qt.QSignalEmitter.AbstractSignal, com.trolltech.qt.QSignalEmitter.PrivateSignal0, com.trolltech.qt.QSignalEmitter.PrivateSignal1<A>, com.trolltech.qt.QSignalEmitter.PrivateSignal2<A,B>, com.trolltech.qt.QSignalEmitter.PrivateSignal3<A,B,C>, com.trolltech.qt.QSignalEmitter.PrivateSignal4<A,B,C,D>, com.trolltech.qt.QSignalEmitter.PrivateSignal5<A,B,C,D,E>, com.trolltech.qt.QSignalEmitter.PrivateSignal6<A,B,C,D,E,F>, com.trolltech.qt.QSignalEmitter.PrivateSignal7<A,B,C,D,E,F,G>, com.trolltech.qt.QSignalEmitter.PrivateSignal8<A,B,C,D,E,F,G,H>, com.trolltech.qt.QSignalEmitter.PrivateSignal9<A,B,C,D,E,F,G,H,I>, com.trolltech.qt.QSignalEmitter.Signal0, com.trolltech.qt.QSignalEmitter.Signal1<A>, com.trolltech.qt.QSignalEmitter.Signal2<A,B>, com.trolltech.qt.QSignalEmitter.Signal3<A,B,C>, com.trolltech.qt.QSignalEmitter.Signal4<A,B,C,D>, com.trolltech.qt.QSignalEmitter.Signal5<A,B,C,D,E>, com.trolltech.qt.QSignalEmitter.Signal6<A,B,C,D,E,F>, com.trolltech.qt.QSignalEmitter.Signal7<A,B,C,D,E,F,G>, com.trolltech.qt.QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, com.trolltech.qt.QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary |
---|
Fields inherited from class edu.jhu.cs.oose.elevel.AdvancedEditCard.commands.DrawCommand |
---|
canvas, item |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
DrawItemCommand(com.trolltech.qt.gui.QGraphicsItemInterface add,
com.trolltech.qt.gui.QGraphicsScene scene)
Impelmentation of the DrawCommand |
Method Summary | |
---|---|
boolean |
isValid()
Determines if this is a valid command |
boolean |
mergeWith(com.trolltech.qt.gui.QUndoCommand other)
Determine if this can be merged with another command. |
void |
redo()
Redo the command. |
void |
undo()
Undo the previous command |
Methods inherited from class com.trolltech.qt.gui.QUndoCommand |
---|
child, childCount, fromNativePointer, id, setText, text |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
disableGarbageCollection, dispose, disposed, equals, finalize, nativeId, nativePointer, reassignNativeResources, reenableGarbageCollection, setJavaOwnership, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DrawItemCommand(com.trolltech.qt.gui.QGraphicsItemInterface add, com.trolltech.qt.gui.QGraphicsScene scene)
add
- Element to be addedscene
- The model to add the element toMethod Detail |
---|
public void undo()
undo
in class com.trolltech.qt.gui.QUndoCommand
public void redo()
redo
in class com.trolltech.qt.gui.QUndoCommand
public boolean mergeWith(com.trolltech.qt.gui.QUndoCommand other)
mergeWith
in class com.trolltech.qt.gui.QUndoCommand
public boolean isValid()
isValid
in class DrawCommand
true
if it is a valid command, false otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |