java.lang.Object
com.iamsoft.util.ui.javafx.chart.AxisUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
configureAutoDateTickUnit
(javafx.scene.chart.NumberAxis pAxis) static void
configureDateAxis
(javafx.scene.chart.NumberAxis pAxis) Configures the specified axis for representing dates with default tick unit of one week and label format pattern"MMM d, yyyy"
(e.g.static void
configureDateAxis
(javafx.scene.chart.NumberAxis pAxis, Long pLowerBound, Long pUpperBound) Configures the specified axis for representing dates with default tick unit of one week and label format pattern"MMM d, yyyy"
(e.g.static void
configureDateTickLabelFormatter
(javafx.scene.chart.NumberAxis pAxis, javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<javafx.scene.chart.XYChart.Series<Number, Number>>> pDataProperty) Configure automatically trimming tick label format based on two factors - range of full chart and range of zoomed subsection.static Runnable
configureDateTickLabelFormatter
(javafx.scene.chart.NumberAxis pAxis, javafx.beans.value.ObservableValue<Number> pMinX, javafx.beans.value.ObservableValue<Number> pMaxX) Configure automatically trimming tick label formatting based on two factors - range of full chart and range of zoomed subsection.static javafx.scene.chart.NumberAxis
static javafx.scene.chart.NumberAxis
createDateAxis
(Long pLowerBound, Long pUpperBound) Creates aNumberAxis
for representing dates with default tick unit of one week and label format pattern"MMM d, yyyy"
(e.g.static javafx.util.StringConverter<Number>
static javafx.util.StringConverter<Number>
createDateTickLabelFormatter
(String pPattern) static javafx.util.StringConverter<Number>
createLocalDateTimeTickLabelFormatter
(String pPattern) static javafx.util.StringConverter<Number>
static javafx.beans.property.ReadOnlyObjectProperty<Number>
getMaxXProperty
(javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<javafx.scene.chart.XYChart.Series<Number, Number>>> pSeriesListProperty, long pDelayMillis) static javafx.beans.property.ReadOnlyObjectProperty<Number>
getMaxXProperty
(javafx.scene.chart.XYChart.Series<Number, Number> pSeries) static javafx.beans.property.ReadOnlyObjectProperty<Number>
getMaxYProperty
(javafx.scene.chart.XYChart.Series<Number, Number> pSeries) static javafx.beans.property.ReadOnlyObjectProperty<Number>
getMinXProperty
(javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<javafx.scene.chart.XYChart.Series<Number, Number>>> pSeriesListProperty, long pDelayMillis) static javafx.beans.property.ReadOnlyObjectProperty<Number>
getMinXProperty
(javafx.scene.chart.XYChart.Series<Number, Number> pSeries) static javafx.beans.property.ReadOnlyObjectProperty<Number>
getMinYProperty
(javafx.scene.chart.XYChart.Series<Number, Number> pSeries) static long
getTickUnitValue
(TimeUnit pTimeUnit, long pDuration) static Date
static LocalDateTime
toLocalDateTime
(Number pValue) static long
-
Method Details
-
createDateTickLabelFormatter
-
createDateTickLabelFormatter
-
configureDateTickLabelFormatter
public static void configureDateTickLabelFormatter(javafx.scene.chart.NumberAxis pAxis, javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<javafx.scene.chart.XYChart.Series<Number, Number>>> pDataProperty) Configure automatically trimming tick label format based on two factors - range of full chart and range of zoomed subsection. -
configureDateTickLabelFormatter
public static Runnable configureDateTickLabelFormatter(javafx.scene.chart.NumberAxis pAxis, javafx.beans.value.ObservableValue<Number> pMinX, javafx.beans.value.ObservableValue<Number> pMaxX) Configure automatically trimming tick label formatting based on two factors - range of full chart and range of zoomed subsection. Note that this method may impact performance if min/max properties are mutated too frequently.- Returns:
- An unsubscriber, which can be used to stop the automatically trimming tick label formatting.
-
toLong
-
toDate
-
toLocalDateTime
-
createLocalDateTimeTickLabelFormatter
-
createPercentageTickLabelFormatter
-
getTickUnitValue
-
configureAutoDateTickUnit
public static void configureAutoDateTickUnit(javafx.scene.chart.NumberAxis pAxis) -
createDateAxis
public static javafx.scene.chart.NumberAxis createDateAxis() -
createDateAxis
Creates aNumberAxis
for representing dates with default tick unit of one week and label format pattern"MMM d, yyyy"
(e.g. Feb 1, 2019). -
configureDateAxis
public static void configureDateAxis(javafx.scene.chart.NumberAxis pAxis) Configures the specified axis for representing dates with default tick unit of one week and label format pattern"MMM d, yyyy"
(e.g. Feb 1, 2019). -
configureDateAxis
public static void configureDateAxis(javafx.scene.chart.NumberAxis pAxis, Long pLowerBound, Long pUpperBound) Configures the specified axis for representing dates with default tick unit of one week and label format pattern"MMM d, yyyy"
(e.g. Feb 1, 2019). -
getMinXProperty
-
getMinXProperty
public static javafx.beans.property.ReadOnlyObjectProperty<Number> getMinXProperty(javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<javafx.scene.chart.XYChart.Series<Number, Number>>> pSeriesListProperty, long pDelayMillis) - Parameters:
pDelayMillis
- If greater than zero, property will not be updated more frequently than the specified delay.
-
getMaxXProperty
-
getMaxXProperty
public static javafx.beans.property.ReadOnlyObjectProperty<Number> getMaxXProperty(javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<javafx.scene.chart.XYChart.Series<Number, Number>>> pSeriesListProperty, long pDelayMillis) - Parameters:
pDelayMillis
- If greater than zero, property will not be updated more frequently than the specified delay.
-
getMinYProperty
-
getMaxYProperty
-
getMinX
-
getMinX
-
getMaxX
-
getMaxX
-
getMinY
-
getMinY
-
getMaxY
-
getMaxY
-