public abstract class TimelineModel<T extends TemporalUnit> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
TimelineModel(T lowestTemporalUnit,
T highestTemporalUnit) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateLocationForTime(Instant time) |
double |
calculateLocationForTime(Instant time,
double mpp) |
Instant |
calculateTimeForLocation(double location) |
T |
getHighestTemporalUnit()
Gets the value of the property highestTemporalUnit.
|
Instant |
getHorizonEndTime()
Gets the value of the property horizonEndTime.
|
Instant |
getHorizonStartTime()
Gets the value of the property horizonStartTime.
|
T |
getLowestTemporalUnit()
Gets the value of the property lowestTemporalUnit.
|
double |
getMillisPerPixel()
Gets the value of the property millisPerPixel.
|
Instant |
getNow()
Gets the value of the property now.
|
double |
getNowLocation()
Gets the value of the property nowLocation.
|
Instant |
getStartTime()
Gets the value of the property startTime.
|
ObjectProperty<T> |
highestTemporalUnitProperty() |
ObjectProperty<Instant> |
horizonEndTimeProperty() |
ObjectProperty<Instant> |
horizonStartTimeProperty() |
ObjectProperty<T> |
lowestTemporalUnitProperty() |
DoubleProperty |
millisPerPixelProperty() |
ReadOnlyDoubleProperty |
nowLocationProperty() |
ObjectProperty<Instant> |
nowProperty() |
void |
setHighestTemporalUnit(T unit)
Sets the value of the property highestTemporalUnit.
|
void |
setHorizonEndTime(Instant startTime)
Sets the value of the property horizonEndTime.
|
void |
setHorizonStartTime(Instant startTime)
Sets the value of the property horizonStartTime.
|
void |
setLowestTemporalUnit(T unit)
Sets the value of the property lowestTemporalUnit.
|
void |
setMillisPerPixel(double millis)
Sets the value of the property millisPerPixel.
|
void |
setNow(Instant now)
Sets the value of the property now.
|
void |
setStartTime(Instant startTime)
Sets the value of the property startTime.
|
ObjectProperty<Instant> |
startTimeProperty() |
public final ObjectProperty<Instant> horizonStartTimeProperty
public final ObjectProperty<Instant> horizonEndTimeProperty
getHorizonEndTime(),
setHorizonEndTime(Instant)public final DoubleProperty millisPerPixelProperty
getMillisPerPixel(),
setMillisPerPixel(double)public final ObjectProperty<Instant> startTimeProperty
getStartTime(),
setStartTime(Instant)public final ObjectProperty<Instant> nowProperty
getNow(),
setNow(Instant)public final ReadOnlyDoubleProperty nowLocationProperty
getNowLocation()public final ObjectProperty<T extends TemporalUnit> lowestTemporalUnitProperty
getLowestTemporalUnit(),
setLowestTemporalUnit(T)public final ObjectProperty<T extends TemporalUnit> highestTemporalUnitProperty
public final ObjectProperty<Instant> horizonStartTimeProperty()
public final Instant getHorizonStartTime()
public final void setHorizonStartTime(Instant startTime)
public final ObjectProperty<Instant> horizonEndTimeProperty()
getHorizonEndTime(),
setHorizonEndTime(Instant)public final Instant getHorizonEndTime()
public final void setHorizonEndTime(Instant startTime)
public final void setMillisPerPixel(double millis)
public final double getMillisPerPixel()
public final DoubleProperty millisPerPixelProperty()
getMillisPerPixel(),
setMillisPerPixel(double)public final void setStartTime(Instant startTime)
public final Instant getStartTime()
public final ObjectProperty<Instant> startTimeProperty()
getStartTime(),
setStartTime(Instant)public final void setNow(Instant now)
public final Instant getNow()
public final ObjectProperty<Instant> nowProperty()
getNow(),
setNow(Instant)public final ReadOnlyDoubleProperty nowLocationProperty()
getNowLocation()public final double getNowLocation()
public final ObjectProperty<T> lowestTemporalUnitProperty()
getLowestTemporalUnit(),
setLowestTemporalUnit(T)public final T getLowestTemporalUnit()
public final void setLowestTemporalUnit(T unit)
public final ObjectProperty<T> highestTemporalUnitProperty()
public final T getHighestTemporalUnit()
public final void setHighestTemporalUnit(T unit)
public final double calculateLocationForTime(Instant time)
public final double calculateLocationForTime(Instant time, double mpp)
public final Instant calculateTimeForLocation(double location)
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.