Klasse Resolution<T extends TemporalUnit>
java.lang.Object
com.flexganttfx.model.dateline.Resolution<T>
- Typparameter:
T- the type of the temporal unit
- Bekannte direkte Unterklassen:
ChronoUnitResolution,SimpleUnitResolution
A resolution represents the visual representation of a temporal unit. The unit will
be displayed in the given format, step rate, and in the given positions.
- Seit:
- 1.0
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungResolution(T temporalUnit, String format, int stepRate) Constructs a new resolution for the given temporal unit, in the given format, step rate, for all positions.Resolution(T temporalUnit, String format, int stepRate, Resolution.Position... supportedPositions) Constructs a new resolution for the given temporal unit, in the given format, step rate, and for the given supported positions. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract VirtualGrid<T> Creates a virtual grid for editing operations based on the settings of this resolution.abstract InstantDecrements the given time based on the temporal unit represented by this resolution.abstract StringFormats the given time / instant for the given time zone based on the settings of this resolution.final StringReturns the format in which the resolution will be displayed.final intReturns the step rate of this resolution, e.g. "5" for "5 Minutes".final TReturns the temporal unit represented by this resolution.abstract InstantIncrements the given time based on the temporal unit represented by this resolution.final booleanisSupportingPosition(Resolution.Position position) Determines if the given position is supported by this resolution.toString()abstract InstantTruncates the given time based on the temporal unit represented by this resolution.
-
Konstruktordetails
-
Resolution
public Resolution(T temporalUnit, String format, int stepRate, Resolution.Position... supportedPositions) Constructs a new resolution for the given temporal unit, in the given format, step rate, and for the given supported positions.- Parameter:
temporalUnit- the temporal unit (e.g. DAYS)format- the display format (e.g. HH:MM)stepRate- the step rate (e.g. 1, 5, 10, 15, 30)supportedPositions- the supported positions (top, middle, bottom) inside the dateline- Seit:
- 1.0
-
Resolution
Constructs a new resolution for the given temporal unit, in the given format, step rate, for all positions.- Parameter:
temporalUnit- the temporal unit (e.g. DAYS)format- the display format (e.g. HH:MM)stepRate- the step rate (e.g. 1, 5, 10, 15, 30)- Seit:
- 1.0
-
-
Methodendetails
-
isSupportingPosition
Determines if the given position is supported by this resolution.- Parameter:
position- the position- Gibt zurück:
- true if the position is supported
- Seit:
- 1.0
-
getTemporalUnit
Returns the temporal unit represented by this resolution.- Gibt zurück:
- the temporal unit
- Seit:
- 1.0
-
getFormat
Returns the format in which the resolution will be displayed.- Gibt zurück:
- the format string for the date time formatter
- Seit:
- 1.0
- Siehe auch:
-
getStepRate
public final int getStepRate()Returns the step rate of this resolution, e.g. "5" for "5 Minutes". Normally values are 1, 5, 10, 15, or 30.- Gibt zurück:
- the step rate
- Seit:
- 1.0
-
toString
-
format
-
truncate
Truncates the given time based on the temporal unit represented by this resolution. Example: a date located on a Wednesday will be adjusted to a date on the previous Monday (if Monday is the first day of the week in the given time zone).- Parameter:
instant- the time to truncatezoneId- the time zonefirstDayOfWeek- the weekday that is considered to be the first day of the week- Gibt zurück:
- the truncated time
- Seit:
- 1.0
-
increment
Increments the given time based on the temporal unit represented by this resolution. Example: if the temporal unit is DAY and the given time is located on Monday, then the incremented time will be Tuesday. If the temporal unit is WEEK then the incremented time will be the Monday of the next week. This function is very important for building the cells in the dateline control.- Parameter:
instant- the time to incrementzoneId- the time zone- Gibt zurück:
- the incremented time
- Seit:
- 1.0
-
decrement
Decrements the given time based on the temporal unit represented by this resolution. Example: if the temporal unit is DAY and the given time is located on Monday, then the decremented time will be Sunday. If the temporal unit is WEEK then the decremented time will be the Monday of the previous week. This function is very important for building the cells in the dateline control.- Parameter:
instant- the time to incrementzoneId- the time zone- Gibt zurück:
- the incremented time
-
createGrid
Creates a virtual grid for editing operations based on the settings of this resolution.- Gibt zurück:
- the virtual grid
- Seit:
- 1.1
-