|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.berkeley.guir.ptk.PTK
edu.berkeley.guir.ptk.output.Output
edu.berkeley.guir.ptk.output.IconOutput
Provides the default Animatable methods for event data that is displayed as an icon (move slowly, and flash off and on five times for interrupt).
The Transition class calls the Animatable methods in a default order. Before passing events to the methods in this class, the Transition object copies them. So, there is no reason to copy events here.
| Field Summary | |
javax.swing.JLabel |
icon
The icon associated with this output |
static int |
NUM_STEPS
|
| Fields inherited from class edu.berkeley.guir.ptk.output.Output |
animatable, d_queue, data_ids_I_want, history, ITEMS_LENGTH, metadata_I_want, num_ids, num_metadata, output_cycle_time, transition |
| Fields inherited from class edu.berkeley.guir.ptk.PTK |
debug, MAX_DEBUG, MED_DEBUG, MIN_DEBUG, NO_DEBUG |
| Constructor Summary | |
IconOutput(java.awt.Container c,
int x,
int y,
java.lang.String image)
Passes "true" into the super constructor, indicating this class is Animatable. |
|
| Method Summary | |
Event |
alternateStep(Event prev_event,
Event new_event,
int step)
Returns an event that represents the "alternate" or "opposite" of what is displayed by the other transition methods in order to create a "flashing" effect. |
Event |
changeblindTransStep(Event prev_event,
Event new_event,
int step_num)
Returns an inter-mediary step between the start and end methods: used in change blind transitions to move image slowly out to up and then slowly back in to its regular location. |
protected void |
displayEvent(Event e)
Displays a text message from an event on the TPanel. |
Event |
endTransition(Event prev_event,
Event new_event,
int step)
Returns the last event to be displayed in a transition: the new event. |
javax.swing.JLabel |
getIcon()
Gets the icon associated with this output |
Event |
interruptTransStep(Event prev_event,
Event new_event,
int step_num)
Returns an event that is somewhere between the start and end points of a interrupt transition, depending on the display_step and the number of steps involved in the transition. |
static void |
main(java.lang.String[] args)
|
Event |
makeawareTransStep(Event prev_event,
Event new_event,
int step_num)
Returns an event that is somewhere between the start and end points of a make aware transition, depending on the display_step and the number of steps involved in the transition. |
void |
setIcon(javax.swing.JLabel icon)
Sets the icon associated with this output |
Event |
startTransition(Event prev_event,
Event new_event,
int step)
Returns the first event to be displayed in a transition: the previous event (unless null, then the new event). |
| Methods inherited from class edu.berkeley.guir.ptk.output.Output |
addDataID, addMetadataIWant, checkAction, doIWant, getAllMetadata, getDataIDs, getFirstMetadata, getHistory, handleEvent, interDisplayEvent, isAnimatable, printMetadataIWant, run, setChangeblindTransitionSteps, setDataIDsIWant, setInterruptTransitionSteps, setMakeawareTransitionSteps, setTimeBetweenDisplayEvents, setTransition, setUnsetNotification |
| Methods inherited from class edu.berkeley.guir.ptk.PTK |
getMAX, getMED, getMIN, getNO, printDebug, printDebug, printError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NUM_STEPS
public javax.swing.JLabel icon
| Constructor Detail |
public IconOutput(java.awt.Container c,
int x,
int y,
java.lang.String image)
| Method Detail |
public static void main(java.lang.String[] args)
public Event startTransition(Event prev_event,
Event new_event,
int step)
startTransition in interface Animatablestep - a number that indicates what order the event returned from
this method will be displayed in the transition's set of events.prev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.
public Event endTransition(Event prev_event,
Event new_event,
int step)
endTransition in interface Animatablestep - a number that indicates what order the event returned from
this method will be displayed in the transition's set of events.prev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.
public Event changeblindTransStep(Event prev_event,
Event new_event,
int step_num)
changeblindTransStep in interface Animatableprev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.step_num - a number indicating the display order of the event
returned if the Transition is creating a set of events.
public Event makeawareTransStep(Event prev_event,
Event new_event,
int step_num)
Animatable
makeawareTransStep in interface Animatableprev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.step_num - a number indicating the display order of the event
returned if the Transition is creating a set of events.
public Event interruptTransStep(Event prev_event,
Event new_event,
int step_num)
Animatable
interruptTransStep in interface Animatableprev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.step_num - a number indicating the display order of the event
returned if the Transition is creating a set of events.
public Event alternateStep(Event prev_event,
Event new_event,
int step)
alternateStep in interface Animatablestep - a number that indicates what order the event returned from
this method will be displayed in the transition's set of events.prev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.
protected void displayEvent(Event e)
displayEvent in class Outpute - This event to be displayedpublic javax.swing.JLabel getIcon()
public void setIcon(javax.swing.JLabel icon)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||