|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.virgil.TimelineViewer
public class TimelineViewer
A GUI component that shows a timeline as a list of states
Constructor Summary | |
---|---|
TimelineViewer(Virgil virgil,
VirgilConfiguration config,
StateViewer stateViewer,
TimelineArrowPanel arrowPanel,
java.util.Hashtable<java.lang.String,TimelineColor> colors)
|
Method Summary | |
---|---|
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
javax.swing.JComponent |
getPanel()
|
TimelineTime |
getSelectedTimelineTime()
Returns the StateTime of the state currently selected, or null if no such state. |
TimelineID |
getTimelineID()
Returns the TimelineID that this TimelineViewer is set to, or null if none is set. |
static double |
interpolate(double a,
double b,
double alpha,
boolean scurve)
Interpolate between two doubles. |
StateTime |
nextState(StateTime time)
Returns the StateTime of the state following some state. |
StateTime |
previousState(StateTime time)
Returns the StateTime of the state previous to some state. |
void |
reconstruct()
|
void |
selectState(StateTime time)
Focus the timeline viewport on a particular state. |
void |
selectState(StateTime time,
boolean animate)
Focus the timeline viewport on a particular state. |
void |
selectTime(TimelineTime time)
Switchboard for calling selectState or selectTransition. |
void |
selectTime(TimelineTime time,
boolean animate)
Switchboard for calling selectState or selectTransition. |
void |
selectTransition(TransitionTime time)
Focus the timeline viewport on a particular transition diamond. |
void |
selectTransition(TransitionTime time,
boolean animate)
Focus the timeline viewport on a particular transition diamond. |
void |
setControlPanel(TimelineControlPanel controlPanel)
|
void |
setStory(StoryInterpreter story)
|
void |
setTimeline(TimelineID timelineID,
boolean overrideStateSelection)
|
void |
setVisibleStates(VisibleStates visibleStates)
Set the visible states for all timelines. |
void |
showError(Scheherexception s)
|
boolean |
showingState(StateTime time)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimelineViewer(Virgil virgil, VirgilConfiguration config, StateViewer stateViewer, TimelineArrowPanel arrowPanel, java.util.Hashtable<java.lang.String,TimelineColor> colors) throws Scheherexception
Scheherexception
Method Detail |
---|
public void setControlPanel(TimelineControlPanel controlPanel)
public void reconstruct() throws Scheherexception
Scheherexception
public void setVisibleStates(VisibleStates visibleStates) throws Scheherexception
Scheherexception
public void selectTime(TimelineTime time) throws Scheherexception
Scheherexception
public void selectTime(TimelineTime time, boolean animate) throws Scheherexception
Scheherexception
public void selectState(StateTime time) throws Scheherexception
Scheherexception
public void selectState(StateTime time, boolean animate) throws Scheherexception
Scheherexception
public void selectTransition(TransitionTime time) throws Scheherexception
Scheherexception
public void selectTransition(TransitionTime time, boolean animate) throws Scheherexception
Scheherexception
public void setStory(StoryInterpreter story) throws Scheherexception
Scheherexception
public void setTimeline(TimelineID timelineID, boolean overrideStateSelection) throws Scheherexception
Scheherexception
public javax.swing.JComponent getPanel()
public void showError(Scheherexception s)
public TimelineTime getSelectedTimelineTime()
public TimelineID getTimelineID()
public StateTime previousState(StateTime time) throws Scheherexception
Scheherexception
public StateTime nextState(StateTime time) throws Scheherexception
Scheherexception
public boolean showingState(StateTime time) throws Scheherexception
Scheherexception
public static double interpolate(double a, double b, double alpha, boolean scurve)
a
- The first numberb
- The second numberc
- The faction of progress desired, between 0 and 1scurve
- True for an s-curve, false for linear interpolation.public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |