|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisual.Visualization
visual.dynamic.sampled.Screen
public class Screen
A component that renders a sequence of Content objects (i.e., static visual content)
Field Summary | |
---|---|
protected SimpleContent |
currentFrame
|
protected NullIterator<SimpleContent> |
currentFrameIterator
|
static int |
DEFAULT_FRAME_DELAY
|
protected Metronome |
metronome
|
Constructor Summary | |
---|---|
Screen()
Default Constructor |
|
Screen(int frameRate)
Explicit Value Constructor |
|
Screen(Metronome metronome)
Explicit Value Constructor |
Method Summary | |
---|---|
void |
addSuperimposition(Superimposition si)
Add a Superimposition Note: This method does not ensure that the order is correct |
void |
addTransition(Transition t)
Add a Transition Note: This method does not ensure that the order is correct |
protected VisualizationView |
createDefaultView()
Create the default view associated with this Visualization Note: This method should only be called by constructors. |
int |
getFrameNumber()
Get the number of the current frame |
Metronome |
getMetronome()
Get the Metronome being used by this Screen |
java.util.Iterator<Superimposition> |
getSuperimpositions()
Get the current superimpositions (if any) |
java.util.Iterator<Transition> |
getTransitions()
Get the current transitions (if any) |
void |
handleTick(int time)
Handle tick events (required by MetronomeListener) Specifically, make the current frame the "current" Content and call repaint() to start the rendering process. |
java.util.Iterator<SimpleContent> |
iterator()
Get an Iterator that contains the current SimpleContent object |
java.util.Iterator<SimpleContent> |
iterator(boolean all)
Get an Iterator that contains either all of the SimpleContent objects or the current SimpleContent Object |
void |
setRepeating(boolean repeating)
Set whether this presentation should repeat/loop |
void |
start()
Start the presentation |
void |
stop()
Stop the presentation |
Methods inherited from class visual.Visualization |
---|
add, addKeyListener, addMouseListener, addMouseMotionListener, addView, clear, getView, getViews, remove, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeView, repaint, setBackground, setView, toBack, toFront |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Metronome metronome
protected SimpleContent currentFrame
public static final int DEFAULT_FRAME_DELAY
protected NullIterator<SimpleContent> currentFrameIterator
Constructor Detail |
---|
public Screen()
public Screen(int frameRate)
frameRate
- The frame rate to usepublic Screen(Metronome metronome)
metronome
- The Metronome to useMethod Detail |
---|
public void addSuperimposition(Superimposition si)
si
- The Superimposition to addpublic void addTransition(Transition t)
t
- The Transition to addprotected VisualizationView createDefaultView()
createDefaultView
in class Visualization
public int getFrameNumber()
public java.util.Iterator<Superimposition> getSuperimpositions()
public java.util.Iterator<Transition> getTransitions()
public Metronome getMetronome()
public void handleTick(int time)
handleTick
in interface MetronomeListener
time
- The current time (in millis)public java.util.Iterator<SimpleContent> iterator()
iterator
in class Visualization
public java.util.Iterator<SimpleContent> iterator(boolean all)
all
- true to get all frames; false to get the current frame
public void setRepeating(boolean repeating)
repeating
- true to repeat/loop; false otherwisepublic void start()
public void stop()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |