Klasse TimelineModel<T extends TemporalUnit>
java.lang.Object
com.flexganttfx.model.timeline.TimelineModel<T>
- Typparameter:
T- the temporal unit supported by the model (e.g. ChronoUnit).
- Bekannte direkte Unterklassen:
ChronoUnitTimelineModel,SimpleUnitTimelineModel
The timeline model stores the most important properties related to navigating
within time (move forward and backward in time, zoom in and out).
- Now - the "current" time (e.g. system time).
- Start time - the first time point that will be visible to the user.
- Millis per pixel - how much time is represented by a single pixel (important for zooming).
- Horizon - the earliest and latest point in time to which the user can scroll.
- Lowest temporal unit - the lowest unit that the user will be able to see (e.g. MINUTES).
- Highest temporal unit - the highest unit that the user will be able to see (e.g. MONTHS).
-
Eigenschaftsübersicht
EigenschaftenTypEigenschaftBeschreibungfinal ObjectProperty<Instant> Returns the object property used for storing the end time of the horizon.final ObjectProperty<Instant> Returns the object property used for storing the start time of the horizon.final DoublePropertyA property used to store the maximum number of milliseconds that will be represented by a single pixel on the screen.final DoublePropertyReturns the property used to store the millis per pixel value.final DoublePropertyA property used to store the minimum number of milliseconds that will be represented by a single pixel on the screen.final ReadOnlyDoublePropertyStores the location of the "now" time.final ObjectProperty<Instant> Returns the property used to store "now", the current time, e.g. the current system time.final DoublePropertyfinal ReadOnlyObjectProperty<T> Stores the smallest temporal unit supported by the control.final ObjectProperty<Instant> Returns the property used to store the first visible time point. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal doubleReturns the pixel location of the given time.final InstantcalculateTimeForLocation(double location) Returns the time for the given location.final InstantReturns the value ofhorizonEndTimeProperty().final InstantReturns the value ofhorizonStartTimeProperty().final doubleReturns the value ofmaximumMillisPerPixelProperty().final doubleReturns the value ofmillisPerPixelProperty().final doubleReturns the value ofminimumMillisPerPixelProperty().final InstantgetNow()Returns the value ofnowProperty().final doubleReturns the value ofnowLocationProperty().final doubleRuft den Wert deroffset-Eigenschaft ab.final TReturns the value ofsmallestTemporalUnitProperty().final InstantReturns the value ofstartTimeProperty().final ObjectProperty<Instant> Returns the object property used for storing the end time of the horizon.final ObjectProperty<Instant> Returns the object property used for storing the start time of the horizon.final DoublePropertyA property used to store the maximum number of milliseconds that will be represented by a single pixel on the screen.final DoublePropertyReturns the property used to store the millis per pixel value.final DoublePropertyA property used to store the minimum number of milliseconds that will be represented by a single pixel on the screen.final ReadOnlyDoublePropertyStores the location of the "now" time.final ObjectProperty<Instant> Returns the property used to store "now", the current time, e.g. the current system time.final DoublePropertyfinal voidsetHorizonEndTime(Instant time) Sets the value ofhorizonEndTimeProperty().final voidsetHorizonStartTime(Instant time) Sets the value ofhorizonStartTimeProperty().final voidsetMaximumMillisPerPixel(double max) Sets the value ofmaximumMillisPerPixelProperty().final voidsetMillisPerPixel(double millis) Sets the value of themillisPerPixelProperty().final voidsetMinimumMillisPerPixel(double min) Sets the value ofminimumMillisPerPixelProperty().final voidSets the value ofnowProperty().final voidsetOffset(double offset) Legt den Wert deroffset-Eigenschaft fest.final voidsetStartTime(Instant time) Sets the value ofstartTimeProperty().final voidsetZoomRange(T smallestUnit, int smallestUnitCount, double smallestUnitWidth, T largestUnit, int largestUnitCount, double largestUnitWidth) Sets the range in which the user can zoom in and out of the timeline.final ReadOnlyObjectProperty<T> Stores the smallest temporal unit supported by the control.final ObjectProperty<Instant> Returns the property used to store the first visible time point.
-
Eigenschaftsdetails
-
offset
- Siehe auch:
-
horizonStartTime
Returns the object property used for storing the start time of the horizon.- Siehe auch:
-
horizonEndTime
Returns the object property used for storing the end time of the horizon.- Siehe auch:
-
millisPerPixel
Returns the property used to store the millis per pixel value. This value determines how much time is represented by a single pixel in the user interface. Changing the value of this property will cause the control to show more or less time within the visible timeline area, meaning zooming can be controlled by this property.- Siehe auch:
-
minimumMillisPerPixel
A property used to store the minimum number of milliseconds that will be represented by a single pixel on the screen. Zoom-In operations will be limited by this value.- Seit:
- 1.4
- Siehe auch:
-
maximumMillisPerPixel
A property used to store the maximum number of milliseconds that will be represented by a single pixel on the screen. Zoom-Out operations will be limited by this value.- Seit:
- 1.4
- Siehe auch:
-
startTime
Returns the property used to store the first visible time point.- Siehe auch:
-
now
Returns the property used to store "now", the current time, e.g. the current system time.- Siehe auch:
-
nowLocation
Stores the location of the "now" time. The location can be computed based on the millis per pixel and the start time value.- Siehe auch:
-
smallestTemporalUnit
Stores the smallest temporal unit supported by the control.- Siehe auch:
-
-
Konstruktordetails
-
TimelineModel
protected TimelineModel()Constructs a new timeline model.
-
-
Methodendetails
-
getOffset
public final double getOffset()Ruft den Wert deroffset-Eigenschaft ab.- Eigenschaftsbeschreibung:
- Gibt zurück:
- Wert der Eigenschaft
offset - Siehe auch:
-
offsetProperty
- Gibt zurück:
- die Eigenschaft
offset - Siehe auch:
-
setOffset
public final void setOffset(double offset) Legt den Wert deroffset-Eigenschaft fest.- Eigenschaftsbeschreibung:
- Parameter:
offset- Wert für die Eigenschaftoffset- Siehe auch:
-
horizonStartTimeProperty
Returns the object property used for storing the start time of the horizon.- Gibt zurück:
- the horizon start time
- Siehe auch:
-
getHorizonStartTime
Returns the value ofhorizonStartTimeProperty().- Gibt zurück:
- the horizon start time
-
setHorizonStartTime
Sets the value ofhorizonStartTimeProperty().- Parameter:
time- the horizon start time
-
horizonEndTimeProperty
Returns the object property used for storing the end time of the horizon.- Gibt zurück:
- the horizon end time
- Siehe auch:
-
getHorizonEndTime
Returns the value ofhorizonEndTimeProperty().- Gibt zurück:
- the horizon end time
-
setHorizonEndTime
Sets the value ofhorizonEndTimeProperty().- Parameter:
time- the horizon end time
-
millisPerPixelProperty
Returns the property used to store the millis per pixel value. This value determines how much time is represented by a single pixel in the user interface. Changing the value of this property will cause the control to show more or less time within the visible timeline area, meaning zooming can be controlled by this property.- Gibt zurück:
- the millis per pixel property
- Siehe auch:
-
setMillisPerPixel
public final void setMillisPerPixel(double millis) Sets the value of themillisPerPixelProperty().- Parameter:
millis- the millis represented by a pixel
-
getMillisPerPixel
public final double getMillisPerPixel()Returns the value ofmillisPerPixelProperty().- Gibt zurück:
- the millis represented by a pixel
-
minimumMillisPerPixelProperty
A property used to store the minimum number of milliseconds that will be represented by a single pixel on the screen. Zoom-In operations will be limited by this value.- Gibt zurück:
- the minimum MPP value
- Seit:
- 1.4
- Siehe auch:
-
setMinimumMillisPerPixel
public final void setMinimumMillisPerPixel(double min) Sets the value ofminimumMillisPerPixelProperty().- Parameter:
min- the minimum MPP value- Seit:
- 1.4
- Siehe auch:
-
getMinimumMillisPerPixel
public final double getMinimumMillisPerPixel()Returns the value ofminimumMillisPerPixelProperty().- Gibt zurück:
- the minimum MPP value
- Seit:
- 1.4
- Siehe auch:
-
maximumMillisPerPixelProperty
A property used to store the maximum number of milliseconds that will be represented by a single pixel on the screen. Zoom-Out operations will be limited by this value.- Gibt zurück:
- the maximum MPP value
- Seit:
- 1.4
- Siehe auch:
-
setMaximumMillisPerPixel
public final void setMaximumMillisPerPixel(double max) Sets the value ofmaximumMillisPerPixelProperty().- Parameter:
max- the maximum MPP value- Seit:
- 1.4
- Siehe auch:
-
getMaximumMillisPerPixel
public final double getMaximumMillisPerPixel()Returns the value ofmaximumMillisPerPixelProperty().- Gibt zurück:
- the maximum MPP value
- Seit:
- 1.4
- Siehe auch:
-
setZoomRange
public final void setZoomRange(T smallestUnit, int smallestUnitCount, double smallestUnitWidth, T largestUnit, int largestUnitCount, double largestUnitWidth) Sets the range in which the user can zoom in and out of the timeline.- Parameter:
smallestUnit- the smallest unit to which the user can zoom (e.g. "MINUTES")smallestUnitCount- the number of smallest units (e.g. "5" MINUTES)smallestUnitWidth- the width of the unit in pixels, must be larger than 10 (e.g. "30")largestUnit- the largest unit to which the user can zoom (e.g. "YEARS")largestUnitCount- the number of largest units (e.g. "1" YEAR)largestUnitWidth- the width of the unit in pixels, must be larger than 10 (e.g. "30")- Seit:
- 1.4
- Siehe auch:
-
startTimeProperty
Returns the property used to store the first visible time point.- Gibt zurück:
- the start time property
- Siehe auch:
-
setStartTime
Sets the value ofstartTimeProperty().- Parameter:
time- the start time
-
getStartTime
Returns the value ofstartTimeProperty().- Gibt zurück:
- the start time
-
nowProperty
Returns the property used to store "now", the current time, e.g. the current system time.- Gibt zurück:
- the "now" time
- Siehe auch:
-
setNow
Sets the value ofnowProperty().- Parameter:
now- the "now" time
-
getNow
-
nowLocationProperty
Stores the location of the "now" time. The location can be computed based on the millis per pixel and the start time value.- Gibt zurück:
- the pixel location of "now"
- Siehe auch:
-
getNowLocation
public final double getNowLocation()Returns the value ofnowLocationProperty().- Gibt zurück:
- the pixel location of "now"
-
smallestTemporalUnitProperty
Stores the smallest temporal unit supported by the control.- Gibt zurück:
- the smallest temporal unit supported (e.g. "MINUTES").
- Siehe auch:
-
getSmallestTemporalUnit
Returns the value ofsmallestTemporalUnitProperty().- Gibt zurück:
- the smallest temporal unit
-
calculateLocationForTime
Returns the pixel location of the given time.- Parameter:
time- the time for which to return the pixel location- Gibt zurück:
- the location of the given time
-
calculateTimeForLocation
Returns the time for the given location.- Parameter:
location- the location in pixels- Gibt zurück:
- the location time
-