|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.model.ScenarioStepIterator
public class ScenarioStepIterator
A StepIterator
for stepping thru a whole scenario,
including both protocol events and notes.
Constructor Summary | |
---|---|
ScenarioStepIterator(Layer layer,
DataView view,
NoteManager noteManager)
Creates the iterator for stepping thru the specified layer with the given events and notes. |
Method Summary | |
---|---|
float |
current()
Returns the current step. |
float |
first()
Steps to beginning of the sequence. |
float |
getNextForTime(float time)
Sets the iterator to the nearest time that is after the time given as parameter. |
float |
getPreviousForTime(float time)
Sets the iterator to the nearest time that is before the time given as parameter. |
boolean |
hasNext()
Returns true if the iterator can step forward. |
boolean |
hasPrevious()
Returns true if the iterator can step back. |
float |
last()
Steps to end of the sequence. |
float |
next()
Steps forward. |
float |
previous()
Steps back. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScenarioStepIterator(Layer layer, DataView view, NoteManager noteManager)
Method Detail |
---|
public boolean hasNext()
StepIterator
hasNext
in interface StepIterator
public boolean hasPrevious()
StepIterator
hasPrevious
in interface StepIterator
public float next()
StepIterator
next
in interface StepIterator
public float previous()
StepIterator
previous
in interface StepIterator
public float first()
StepIterator
first
in interface StepIterator
public float last()
StepIterator
last
in interface StepIterator
public float current()
StepIterator
current
in interface StepIterator
public float getNextForTime(float time)
StepIterator
getNextForTime
in interface StepIterator
public float getPreviousForTime(float time)
StepIterator
getPreviousForTime
in interface StepIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |