public class DefaultTimeFormatter extends AbstractFormatter
| Type | Property and Description |
|---|---|
ObjectProperty<ZoneOffset> |
timeZoneOffset
A time-zone offset from Greenwich/UTC, such as
+02:00. |
schmittTriggerThresholdProperty, tickUnitSupplierProperty| Modifier and Type | Field and Description |
|---|---|
protected DateTimeFormatter[] |
dateFormat |
protected int |
formatterIndex |
protected int |
oldIndex |
protected ObjectProperty<ZoneOffset> |
timeZone |
labelCache, localSchmidtTriggerThreshold, majorTickMarksCopy, rangeMax, rangeMin, schmittTriggerThreshold, unitScaling| Constructor and Description |
|---|
DefaultTimeFormatter()
Construct a DefaultFormatter for the given NumberAxis
|
DefaultTimeFormatter(Axis axis)
Construct a DefaultFormatter for the given NumberAxis
|
| Modifier and Type | Method and Description |
|---|---|
String |
formatHighResString(Number utcValueSeconds) |
Number |
fromString(String string)
Converts the string provided into an object defined by the specific converter.
|
String |
getCurrentLocalDateTimeStamp() |
ZoneOffset |
getTimeZoneOffset() |
protected void |
rangeUpdated() |
void |
setTimeZoneOffset(ZoneOffset newOffset) |
ObjectProperty<ZoneOffset> |
timeZoneOffsetProperty()
A time-zone offset from Greenwich/UTC, such as
+02:00. |
String |
toString(Number utcValueSeconds)
Converts the object provided into its string form.
|
getLogRange, getRange, getTickUnitSupplier, schmittTriggerThresholdProperty, setTickUnitSupplier, tickUnitSupplierProperty, updateFormatterpublic ObjectProperty<ZoneOffset> timeZoneOffsetProperty
+02:00.
A time-zone offset is the amount of time that a time-zone differs from Greenwich/UTC. This is usually a fixed number of hours and minutes.
getTimeZoneOffset(),
setTimeZoneOffset(ZoneOffset)protected final DateTimeFormatter[] dateFormat
protected int oldIndex
protected int formatterIndex
protected ObjectProperty<ZoneOffset> timeZone
public DefaultTimeFormatter()
public DefaultTimeFormatter(Axis axis)
axis - The axis to format tick marks forpublic Number fromString(String string)
AxisLabelFormatterfromString in interface AxisLabelFormatterfromString in class StringConverter<Number>string - the string to be converted back into a numberpublic String getCurrentLocalDateTimeStamp()
public ZoneOffset getTimeZoneOffset()
+02:00.protected void rangeUpdated()
rangeUpdated in class AbstractFormatterpublic void setTimeZoneOffset(ZoneOffset newOffset)
newOffset - the ZoneOffset to be taken into account (UTC if 'null'.public ObjectProperty<ZoneOffset> timeZoneOffsetProperty()
+02:00.
A time-zone offset is the amount of time that a time-zone differs from Greenwich/UTC. This is usually a fixed number of hours and minutes.
getTimeZoneOffset(),
setTimeZoneOffset(ZoneOffset)public String toString(Number utcValueSeconds)
AxisLabelFormattertoString in interface AxisLabelFormattertoString in class StringConverter<Number>utcValueSeconds - the number to be convertedCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.