|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmauda.ExerciseUpdateEvent
public class ExerciseUpdateEvent
A semantic event which indicates that a exercise-defined event
occured. This high-level event is generated at different places
in the whole project, and is normally passed through the queue
of JedasPanel, and then transmitted to every
ExerciseUpdateListener object, that registered to
receive such events using the Exercise's
addExerciseUpdateListener method.
This event is essential for sychronizing objects with the
scheduler (animation).
| Field Summary | |
|---|---|
static int |
BACK
ID that indicates that an undo was made |
static int |
CLEAR_FOLLOWING
ID that indicates that all data-structures should delete related to the actual position all following operations. |
static int |
CLEAR_PRECEDING
ID that indicates that all data-structures should delete their previous stored information related to e.g. already executed operations. |
static int |
DSOBJECT_HIDE
ID that indicates to hide the animation-object |
static int |
DSOBJECT_SHOW
ID that indicates to show a previously hidden animation- object. |
static int |
END_OF_EXECUTION
ID that indicates that all operations in the current queue are fully executed by the JedasPanel. |
static int |
FILENAME_CHANGED
ID that indicates that the filename of the current exercise was changed. |
static int |
FINISHED_LOADING
ID that indicates that the exercise was finished in loading. |
static int |
FORWARD
ID that indicates that a redo was made |
static int |
FORWARD_ANIMATED
ID that indicates that a animated redo was made. |
static int |
FULL_LOADED
ID that indicates that an exercise is fully loaded |
static int |
JUMP
ID that indicates that the user is jumped to another operation. |
static int |
OPERATION_EXECUTED
ID that indicates that a operation was executed. |
static int |
PLUGIN_CHANGED
ID that indicates that the plug in was changed. |
static int |
REDO
ID that indicates that a real redo occured |
static int |
RESET
ID that indicates that the exercise was cleared. |
static int |
RESUME_EXECUTION
ID that indicates that the Jedas-Animation resumes from suspend. |
static int |
SPECIAL
ID for special events. |
static int |
START_OF_EXECUTION
ID that indicates that the JedasPanel starts
the execution of passed operations/events to the queue. |
static int |
SUSPEND_EXECUTION
ID that indicates that the Jedas-Animation goes in suspend-Mode. |
static int |
UNDO
ID that indicates that a real undo occured |
| Constructor Summary | |
|---|---|
ExerciseUpdateEvent(SimpleExercise ex,
int id)
Creates an event |
|
| Method Summary | |
|---|---|
boolean |
dsChanged()
Returns TRUE if the current event changes the data-structure, what means that e.g. the display have to be updated. |
SimpleExercise |
getExercise()
Returns the exercise-object the event belongs to. |
int |
getID()
Returns the ID of the event |
java.lang.String |
getMessage()
Returns the message field of the event |
SimpleOperation |
getOperation()
Returns the operation. |
int |
getValue()
Returns the value-field. |
void |
setMessage(java.lang.String m)
Sets the message field of the event |
void |
setOperation(SimpleOperation so)
Sets the operation for the current event. |
void |
setValue(int value)
Sets the value field of an event. |
java.lang.String |
toString()
Returns a string-representation of the event-object |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SPECIAL
message
public static final int OPERATION_EXECUTED
public static final int FILENAME_CHANGED
public static final int CLEAR_PRECEDING
OperationRecorder this event will clear all
previous stored operations.
public static final int CLEAR_FOLLOWING
CLEAR_PRECEDING,
Constant Field Valuespublic static final int FINISHED_LOADING
public static final int DSOBJECT_HIDE
public static final int DSOBJECT_SHOW
public static final int BACK
public static final int FORWARD
public static final int FORWARD_ANIMATED
AnimatedUndoRedo was used.
AnimatedUndoRedo,
Constant Field Valuespublic static final int RESET
OperationRecorder to delete all stored
operations.
public static final int PLUGIN_CHANGED
public static final int JUMP
getValue()
getValue(),
Constant Field Valuespublic static final int END_OF_EXECUTION
JedasPanel.
public static final int START_OF_EXECUTION
JedasPanel starts
the execution of passed operations/events to the queue.
public static final int SUSPEND_EXECUTION
public static final int RESUME_EXECUTION
public static final int FULL_LOADED
public static final int UNDO
public static final int REDO
| Constructor Detail |
|---|
public ExerciseUpdateEvent(SimpleExercise ex,
int id)
ex - Exercise-Objectid - A ID for the event| Method Detail |
|---|
public int getID()
public void setMessage(java.lang.String m)
m - public java.lang.String getMessage()
public void setOperation(SimpleOperation so)
OPERATION_EXECUTED event to store
the executed operation.
so - public SimpleOperation getOperation()
setOperation(SimpleOperation)public void setValue(int value)
JUMP event, to store the delta value for the
distance of jumping, relativ to the actual position.
value - public int getValue()
public SimpleExercise getExercise()
public boolean dsChanged()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||