public class TimeAnimationDataModelImpl extends Observable implements TimeAnimationDataModel
| Constructor and Description |
|---|
TimeAnimationDataModelImpl() |
| Modifier and Type | Method and Description |
|---|---|
RelativeInstant |
getEndTime()
Gets the end date of the time window to visualize in each time instant.
|
RelativeInstant |
getEndTimeWindow()
Gets the end of the time window to visualize in each time instant.
|
RelativeInstant |
getInitTime()
Gets the initial date of the time window to visualize in each time instant.
|
RelativeInstant |
getInitTimeWindow()
Gets the begin of the time window to visualize in each time instant.
|
int |
getIterations()
Gets the number of iterations
|
int |
getLoop()
Gets the number of loops
|
RelativeInstant |
getSliderPosition()
Gets the slider position.
|
int |
getSpeed()
Gets the time step initial value in the text field
|
int[] |
getStepByPartOfData()
Gets an array of seven values.
|
int |
getTimeStep()
Gets the initial speed in milliseconds
|
int |
getTimeStepScale()
Returns a constant defined in TimeAnimation.
|
int |
getWindowTime()
Gets the window time.
|
int[] |
getWindowTimeByPartOfData()
Gets an array of seven values.
|
int |
getWindowTimeScale()
Returns a constant defined in TimeAnimation.
|
void |
setEndTime(RelativeInstant endTime) |
void |
setInitTime(RelativeInstant initTime) |
void |
setIterations(int iterations)
Sets the number of iterations
|
void |
setLoop(int loop)
Sets the number of loops
|
void |
setSliderPosition(RelativeInstant position)
Assigns the slider position.
|
void |
setSpeed(int speed)
Sets the speed of progress
|
void |
setTimeInterval(RelativeInstant start,
RelativeInstant end)
Sets the time interval.
|
void |
setTimeStep(int timeStep)
Sets the animation speed
|
void |
setTimeStepScale(int timeStepScale)
Assigns a constant defined in TimeAnimation.
|
void |
setTimeWindow(RelativeInstant start,
RelativeInstant end)
Sets the time window to visualize in each time instant.
|
void |
setWindowTime(int windowTime)
Assigns the window time.
|
void |
setWindowTimeScale(int windowTimeScale)
Assigns a constant defined in TimeAnimation.
|
void |
updateObservers()
Actualiza datos y llama al update de los observadores
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic void setTimeWindow(RelativeInstant start, RelativeInstant end)
TimeAnimationDataModelsetTimeWindow in interface TimeAnimationDataModelstart - Instant in which the animation startsend - Instant in which the animation endspublic RelativeInstant getEndTimeWindow()
TimeAnimationDataModelgetEndTimeWindow in interface TimeAnimationDataModelRelativeInstantpublic RelativeInstant getInitTimeWindow()
TimeAnimationDataModelgetInitTimeWindow in interface TimeAnimationDataModelRelativeInstantpublic void setTimeInterval(RelativeInstant start, RelativeInstant end)
TimeAnimationDataModelsetTimeInterval in interface TimeAnimationDataModelpublic RelativeInstant getEndTime()
TimeAnimationDataModelgetEndTime in interface TimeAnimationDataModelRelativeInstantpublic RelativeInstant getInitTime()
TimeAnimationDataModelgetInitTime in interface TimeAnimationDataModelRelativeInstantpublic int getIterations()
TimeAnimationDataModelgetIterations in interface TimeAnimationDataModelpublic int getSpeed()
TimeAnimationDataModelgetSpeed in interface TimeAnimationDataModelpublic void setTimeStep(int timeStep)
TimeAnimationDataModelsetTimeStep in interface TimeAnimationDataModelpublic int getTimeStep()
TimeAnimationDataModelgetTimeStep in interface TimeAnimationDataModelpublic void setWindowTime(int windowTime)
TimeAnimationDataModelsetWindowTime in interface TimeAnimationDataModelwindowTime - Window of time of each steppublic int getWindowTime()
TimeAnimationDataModelgetWindowTime in interface TimeAnimationDataModelpublic void setLoop(int loop)
TimeAnimationDataModelsetLoop in interface TimeAnimationDataModelpublic int getLoop()
TimeAnimationDataModelgetLoop in interface TimeAnimationDataModelpublic void setInitTime(RelativeInstant initTime)
public void setEndTime(RelativeInstant endTime)
public void setIterations(int iterations)
TimeAnimationDataModelsetIterations in interface TimeAnimationDataModelpublic void setSpeed(int speed)
TimeAnimationDataModelsetSpeed in interface TimeAnimationDataModelpublic int getWindowTimeScale()
TimeAnimationDataModelgetWindowTimeScale in interface TimeAnimationDataModelpublic void setWindowTimeScale(int windowTimeScale)
TimeAnimationDataModelsetWindowTimeScale in interface TimeAnimationDataModelpublic int getTimeStepScale()
TimeAnimationDataModelgetTimeStepScale in interface TimeAnimationDataModelpublic void setTimeStepScale(int timeStepScale)
TimeAnimationDataModelsetTimeStepScale in interface TimeAnimationDataModelpublic RelativeInstant getSliderPosition()
TimeAnimationDataModelgetSliderPosition in interface TimeAnimationDataModelRelativeInstantpublic void setSliderPosition(RelativeInstant position)
TimeAnimationDataModelsetSliderPosition in interface TimeAnimationDataModelpublic int[] getWindowTimeByPartOfData()
TimeAnimationDataModelgetWindowTimeByPartOfData in interface TimeAnimationDataModelpublic int[] getStepByPartOfData()
TimeAnimationDataModelgetStepByPartOfData in interface TimeAnimationDataModelpublic void updateObservers()