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, setChanged
public void setTimeWindow(RelativeInstant start, RelativeInstant end)
TimeAnimationDataModel
setTimeWindow
in interface TimeAnimationDataModel
start
- Instant in which the animation startsend
- Instant in which the animation endspublic RelativeInstant getEndTimeWindow()
TimeAnimationDataModel
getEndTimeWindow
in interface TimeAnimationDataModel
RelativeInstant
public RelativeInstant getInitTimeWindow()
TimeAnimationDataModel
getInitTimeWindow
in interface TimeAnimationDataModel
RelativeInstant
public void setTimeInterval(RelativeInstant start, RelativeInstant end)
TimeAnimationDataModel
setTimeInterval
in interface TimeAnimationDataModel
public RelativeInstant getEndTime()
TimeAnimationDataModel
getEndTime
in interface TimeAnimationDataModel
RelativeInstant
public RelativeInstant getInitTime()
TimeAnimationDataModel
getInitTime
in interface TimeAnimationDataModel
RelativeInstant
public int getIterations()
TimeAnimationDataModel
getIterations
in interface TimeAnimationDataModel
public int getSpeed()
TimeAnimationDataModel
getSpeed
in interface TimeAnimationDataModel
public void setTimeStep(int timeStep)
TimeAnimationDataModel
setTimeStep
in interface TimeAnimationDataModel
public int getTimeStep()
TimeAnimationDataModel
getTimeStep
in interface TimeAnimationDataModel
public void setWindowTime(int windowTime)
TimeAnimationDataModel
setWindowTime
in interface TimeAnimationDataModel
windowTime
- Window of time of each steppublic int getWindowTime()
TimeAnimationDataModel
getWindowTime
in interface TimeAnimationDataModel
public void setLoop(int loop)
TimeAnimationDataModel
setLoop
in interface TimeAnimationDataModel
public int getLoop()
TimeAnimationDataModel
getLoop
in interface TimeAnimationDataModel
public void setInitTime(RelativeInstant initTime)
public void setEndTime(RelativeInstant endTime)
public void setIterations(int iterations)
TimeAnimationDataModel
setIterations
in interface TimeAnimationDataModel
public void setSpeed(int speed)
TimeAnimationDataModel
setSpeed
in interface TimeAnimationDataModel
public int getWindowTimeScale()
TimeAnimationDataModel
getWindowTimeScale
in interface TimeAnimationDataModel
public void setWindowTimeScale(int windowTimeScale)
TimeAnimationDataModel
setWindowTimeScale
in interface TimeAnimationDataModel
public int getTimeStepScale()
TimeAnimationDataModel
getTimeStepScale
in interface TimeAnimationDataModel
public void setTimeStepScale(int timeStepScale)
TimeAnimationDataModel
setTimeStepScale
in interface TimeAnimationDataModel
public RelativeInstant getSliderPosition()
TimeAnimationDataModel
getSliderPosition
in interface TimeAnimationDataModel
RelativeInstant
public void setSliderPosition(RelativeInstant position)
TimeAnimationDataModel
setSliderPosition
in interface TimeAnimationDataModel
public int[] getWindowTimeByPartOfData()
TimeAnimationDataModel
getWindowTimeByPartOfData
in interface TimeAnimationDataModel
public int[] getStepByPartOfData()
TimeAnimationDataModel
getStepByPartOfData
in interface TimeAnimationDataModel
public void updateObservers()