Package de.gsi.chart.axes.spi
Class AbstractAxisParameter
- java.lang.Object
-
- javafx.scene.Node
-
- javafx.scene.Parent
-
- javafx.scene.layout.Region
-
- javafx.scene.layout.Pane
-
- de.gsi.chart.axes.spi.AbstractAxisParameter
-
- All Implemented Interfaces:
Axis,javafx.beans.Observable,javafx.css.Styleable,javafx.event.EventTarget
- Direct Known Subclasses:
AbstractAxis
public abstract class AbstractAxisParameter extends javafx.scene.layout.Pane implements Axis
Class containing the properties, getters and setters for the AbstractNumericAxis classintention is to move the boiler-plate code here for better readability of the AbstractNumericAxis class
- Author:
- rstein
-
-
Field Summary
Fields Modifier and Type Field Description protected AxisRangeautoRangeif available (last) auto-range that has been computedprotected AxisLabelaxisLabelprotected static intDEFAULT_MINOR_TICK_COUNTprotected booleanisInvertedAxisprotected booleanisTimeAxisprotected javafx.beans.property.DoublePropertylowerBoundThe value for the lower bound of this axis, ie min value.protected javafx.collections.ObservableList<TickMark>majorTickMarksprotected javafx.scene.shape.PathmajorTickStylePaths used for css-type styling.protected booleanmeasureInvalidprotected javafx.collections.ObservableList<TickMark>minorTickMarkValuesprotected javafx.scene.shape.PathminorTickStyleprotected doubleoldAxisLengthThis is the minimum/maximum current data value and it is used while auto ranging.protected booleanrangeValidprotected javafx.beans.property.DoublePropertyscaleBindingUsed to update scale property in AbstractAxisParameter (that is read-only) TODO: remove is possibleprotected javafx.beans.property.DoublePropertytickLabelRotationRotation in degrees of tick mark labels from their normal horizontal.protected booleantickLabelsVisibleInvalidprotected javafx.css.SimpleStyleableDoublePropertytickUnitprotected javafx.beans.property.DoublePropertyupperBoundThe value for the upper bound of this axis, ie max value.protected AxisRangeuserRangeuser-specified range (ie.
-
Constructor Summary
Constructors Constructor Description AbstractAxisParameter()Create a auto-ranging AbstractAxisParameter
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.BooleanPropertyanimatedProperty()javafx.beans.property.IntegerPropertyanimationDurationProperty()javafx.beans.property.BooleanPropertyautoGrowRangingProperty()This is true when the axis determines its range from the data automaticallyjavafx.beans.property.DoublePropertyautoRangePaddingProperty()Fraction of the range to be applied as padding on both sides of the axis range.javafx.beans.property.BooleanPropertyautoRangeRoundingProperty()WithautoRangingProperty()on, defines if the range should be extended to the major tick unit value.javafx.beans.property.BooleanPropertyautoRangingProperty()This is true when the axis determines its range from the data automaticallyjavafx.beans.property.BooleanPropertyautoUnitScalingProperty()javafx.beans.property.DoublePropertyaxisLabelGapProperty()javafx.beans.property.ObjectProperty<javafx.scene.text.TextAlignment>axisLabelTextAlignmentProperty()javafx.beans.property.DoublePropertyaxisPaddingProperty()javafx.beans.property.DoublePropertycenterAxisPositionProperty()protected doubledecadeRange()abstract voidfireInvalidated()javafx.scene.text.TextAlignmentgetaAxisLabelTextAlignment()booleangetAnimated()Indicates whether the changes to axis range will be animated or not.intgetAnimationDuration()AxisRangegetAutoRange()if available (last) auto-range that has been computeddoublegetAutoRangePadding()Returns the value of theautoRangePaddingProperty().booleangetAutoUnitScaling()javafx.scene.text.TextgetAxisLabel()doublegetAxisLabelGap()doublegetAxisPadding()doublegetCenterAxisPosition()static java.util.List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>>getClassCssMetaData()java.util.List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>>getCssMetaData()java.lang.StringgetLabel()doublegetLength()doublegetLowerBound()javafx.scene.shape.PathgetMajorTickStyle()intgetMinorTickCount()doublegetMinorTickLength()javafx.collections.ObservableList<TickMark>getMinorTickMarks()javafx.scene.shape.PathgetMinorTickStyle()AxisLabelOverlapPolicygetOverlapPolicy()AxisRangegetRange()on auto-ranging this returns getAutoRange(), otherwise the user-specified range getUserRange() (ie.doublegetScale()SidegetSide()javafx.scene.paint.PaintgetTickLabelFill()javafx.scene.text.FontgetTickLabelFont()javafx.util.StringConverter<java.lang.Number>getTickLabelFormatter()doublegetTickLabelGap()doublegetTickLabelRotation()doublegetTickLength()javafx.collections.ObservableList<TickMark>getTickMarks()doublegetTickUnit()Returns tick unit value expressed in data units.java.lang.StringgetUnit()doublegetUnitScaling()doublegetUpperBound()AxisRangegetUserRange()user-specified range (ie.protected voidinvalidateRange()Mark the current range invalid, this will cause anything that depends on the range to be recalculated on the next layout.voidinvertAxis(boolean value)This istruewhen the axis labels and data point order should be invertedjavafx.beans.property.BooleanPropertyinvertAxisProperty()This istruewhen the axis labels and data point order should be invertedbooleanisAutoGrowRanging()This is true when the axis determines its range from the data automatically and grows it if necessarybooleanisAutoRangeRounding()Returns the value of theautoRangeRoundingProperty().booleanisAutoRanging()This is true when the axis determines its range from the data automaticallybooleanisInvertedAxis()This istruewhen the axis labels and data point order should be invertedbooleanisMinorTickVisible()booleanisTickLabelsVisible()booleanisTickMarkVisible()booleanisTimeAxis()This is true when the axis corresponds to a time-axisjavafx.beans.property.StringPropertylabelProperty()javafx.beans.property.DoublePropertylowerBoundProperty()javafx.beans.property.IntegerPropertyminorTickCountProperty()javafx.beans.property.DoublePropertyminorTickLengthProperty()javafx.beans.property.BooleanPropertyminorTickVisibleProperty()javafx.beans.property.ObjectProperty<AxisLabelOverlapPolicy>overlapPolicyProperty()abstract voidrequestAxisLayout()Request that the axis is laid out in the next layout pass.javafx.beans.property.ReadOnlyDoublePropertyscaleProperty()voidsetAnimated(boolean value)voidsetAnimationDuration(int value)voidsetAutoGrowRanging(boolean state)This is true when the axis determines its range from the data automatically and grows it if necessaryvoidsetAutoRangePadding(double padding)Sets the value of theautoRangePaddingProperty()voidsetAutoRangeRounding(boolean round)Sets the value of theautoRangeRoundingProperty()voidsetAutoRanging(boolean value)This is true when the axis determines its range from the data automaticallyvoidsetAutoUnitScaling(boolean value)voidsetAxisCentrePosition(double value)voidsetAxisLabelAlignment(javafx.scene.text.TextAlignment value)voidsetAxisLabelGap(double value)voidsetAxisPadding(double value)voidsetLabel(java.lang.String value)voidsetLowerBound(double value)voidsetMinorTickCount(int value)voidsetMinorTickLength(double value)voidsetMinorTickVisible(boolean value)voidsetOverlapPolicy(AxisLabelOverlapPolicy value)protected voidsetScale(double scale)voidsetSide(Side value)voidsetTickLabelFill(javafx.scene.paint.Paint value)voidsetTickLabelFont(javafx.scene.text.Font value)voidsetTickLabelFormatter(javafx.util.StringConverter<java.lang.Number> value)voidsetTickLabelGap(double value)voidsetTickLabelRotation(double value)voidsetTickLabelsVisible(boolean value)voidsetTickLength(double value)voidsetTickMarkVisible(boolean value)voidsetTickUnit(double unit)Sets the value of thetickUnitProperty().voidsetTimeAxis(boolean value)This istruewhen the axis labels and data point should be plotted according to some time-axis definitionvoidsetUnit(java.lang.String value)voidsetUnitScaling(double value)voidsetUnitScaling(MetricPrefix prefix)voidsetUpperBound(double value)javafx.beans.property.ObjectProperty<Side>sideProperty()javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>tickLabelFillProperty()javafx.beans.property.ObjectProperty<javafx.scene.text.Font>tickLabelFontProperty()javafx.beans.property.ObjectProperty<javafx.util.StringConverter<java.lang.Number>>tickLabelFormatterProperty()javafx.beans.property.DoublePropertytickLabelGapProperty()javafx.beans.property.DoublePropertytickLabelRotationProperty()javafx.beans.property.BooleanPropertytickLabelsVisibleProperty()javafx.beans.property.DoublePropertytickLengthProperty()javafx.beans.property.BooleanPropertytickMarkVisibleProperty()javafx.beans.property.DoublePropertytickUnitProperty()The value between each major tick mark in data units.javafx.beans.property.BooleanPropertytimeAxisProperty()This istruewhen the axis labels and data point should be plotted according to some time-axis definitionjavafx.beans.property.ObjectProperty<java.lang.String>unitProperty()javafx.beans.property.DoublePropertyunitScalingProperty()protected voidupdateAxisLabelAndUnit()protected voidupdateScaleAndUnitPrefix()javafx.beans.property.DoublePropertyupperBoundProperty()-
Methods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
-
Methods inherited from class javafx.scene.Parent
getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
-
Methods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.gsi.chart.axes.Axis
drawAxis, forceRedraw, getAxisTransform, getDisplayPosition, getHeight, getLogAxisType, getTickMarkLabel, getValueForDisplay, getWidth, getZeroPosition, invalidateRange, isAutoNotification, isLogAxis, isValueOnAxis, setAutoNotifaction
-
-
-
-
Field Detail
-
DEFAULT_MINOR_TICK_COUNT
protected static final int DEFAULT_MINOR_TICK_COUNT
- See Also:
- Constant Field Values
-
majorTickStyle
protected final javafx.scene.shape.Path majorTickStyle
Paths used for css-type styling. Not used for actual drawing. Used as a storage contained for the settings applied to GraphicsContext which allow much faster (and less complex) drawing routines but do no not allow CSS-type styling.
-
minorTickStyle
protected final javafx.scene.shape.Path minorTickStyle
-
axisLabel
protected final AxisLabel axisLabel
-
oldAxisLength
protected double oldAxisLength
This is the minimum/maximum current data value and it is used while auto ranging. Package private solely for test purposes TODO: replace concept with 'actual range', 'user-defined range', 'auto-range' (+min, max range limit for auto).... actual is used to compute tick marks and defined by either user or auto (ie. auto axis is always being computed), ALSO add maybe a zoom range (ie. limited by user-set/auto-range range)
-
rangeValid
protected boolean rangeValid
-
measureInvalid
protected boolean measureInvalid
-
tickLabelsVisibleInvalid
protected boolean tickLabelsVisibleInvalid
-
majorTickMarks
protected final javafx.collections.ObservableList<TickMark> majorTickMarks
-
minorTickMarkValues
protected final javafx.collections.ObservableList<TickMark> minorTickMarkValues
-
autoRange
protected AxisRange autoRange
if available (last) auto-range that has been computed
-
userRange
protected AxisRange userRange
user-specified range (ie. limits based on [lower,upper]Bound)
-
tickLabelRotation
protected final javafx.beans.property.DoubleProperty tickLabelRotation
Rotation in degrees of tick mark labels from their normal horizontal.
-
upperBound
protected final javafx.beans.property.DoubleProperty upperBound
The value for the upper bound of this axis, ie max value. This is automatically set if auto ranging is on.
-
lowerBound
protected final javafx.beans.property.DoubleProperty lowerBound
The value for the lower bound of this axis, ie min value. This is automatically set if auto ranging is on.
-
scaleBinding
protected final javafx.beans.property.DoubleProperty scaleBinding
Used to update scale property in AbstractAxisParameter (that is read-only) TODO: remove is possible
-
isInvertedAxis
protected boolean isInvertedAxis
-
isTimeAxis
protected boolean isTimeAxis
-
tickUnit
protected final javafx.css.SimpleStyleableDoubleProperty tickUnit
-
-
Method Detail
-
getMajorTickStyle
public javafx.scene.shape.Path getMajorTickStyle()
- Returns:
- the majorTickStyle for custom user-code based styling
-
getMinorTickStyle
public javafx.scene.shape.Path getMinorTickStyle()
- Returns:
- the minorTickStyle for custom user-code based styling
-
getAxisLabel
public javafx.scene.text.Text getAxisLabel()
- Returns:
- the axisLabel
-
getTickMarks
public javafx.collections.ObservableList<TickMark> getTickMarks()
- Specified by:
getTickMarksin interfaceAxis- Returns:
- observable list containing of each major TickMark on this axis
-
getMinorTickMarks
public javafx.collections.ObservableList<TickMark> getMinorTickMarks()
- Specified by:
getMinorTickMarksin interfaceAxis- Returns:
- observable list containing of each minor TickMark on this axis
-
getAutoRange
public AxisRange getAutoRange()
Description copied from interface:Axisif available (last) auto-range that has been computed- Specified by:
getAutoRangein interfaceAxis- Returns:
- computed auto-range
-
getUserRange
public AxisRange getUserRange()
Description copied from interface:Axisuser-specified range (ie. limits based on [lower,upper]Bound)- Specified by:
getUserRangein interfaceAxis- Returns:
- user-specified range
-
getRange
public AxisRange getRange()
on auto-ranging this returns getAutoRange(), otherwise the user-specified range getUserRange() (ie. limits based on [lower,upper]Bound)
-
sideProperty
public javafx.beans.property.ObjectProperty<Side> sideProperty()
- Specified by:
sidePropertyin interfaceAxis
-
getOverlapPolicy
public AxisLabelOverlapPolicy getOverlapPolicy()
-
setOverlapPolicy
public void setOverlapPolicy(AxisLabelOverlapPolicy value)
-
overlapPolicyProperty
public javafx.beans.property.ObjectProperty<AxisLabelOverlapPolicy> overlapPolicyProperty()
-
getCenterAxisPosition
public double getCenterAxisPosition()
-
setAxisCentrePosition
public void setAxisCentrePosition(double value)
-
centerAxisPositionProperty
public javafx.beans.property.DoubleProperty centerAxisPositionProperty()
-
getaAxisLabelTextAlignment
public javafx.scene.text.TextAlignment getaAxisLabelTextAlignment()
-
setAxisLabelAlignment
public void setAxisLabelAlignment(javafx.scene.text.TextAlignment value)
-
axisLabelTextAlignmentProperty
public javafx.beans.property.ObjectProperty<javafx.scene.text.TextAlignment> axisLabelTextAlignmentProperty()
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String value)
-
labelProperty
public javafx.beans.property.StringProperty labelProperty()
- Specified by:
labelPropertyin interfaceAxis- Returns:
- the primary label property
-
isTickMarkVisible
public boolean isTickMarkVisible()
-
setTickMarkVisible
public void setTickMarkVisible(boolean value)
-
tickMarkVisibleProperty
public javafx.beans.property.BooleanProperty tickMarkVisibleProperty()
-
isTickLabelsVisible
public boolean isTickLabelsVisible()
-
setTickLabelsVisible
public void setTickLabelsVisible(boolean value)
-
tickLabelsVisibleProperty
public javafx.beans.property.BooleanProperty tickLabelsVisibleProperty()
-
getAxisPadding
public double getAxisPadding()
-
setAxisPadding
public void setAxisPadding(double value)
-
axisPaddingProperty
public javafx.beans.property.DoubleProperty axisPaddingProperty()
-
getTickLength
public double getTickLength()
-
setTickLength
public void setTickLength(double value)
-
tickLengthProperty
public javafx.beans.property.DoubleProperty tickLengthProperty()
-
isAutoRanging
public boolean isAutoRanging()
Description copied from interface:AxisThis is true when the axis determines its range from the data automatically- Specified by:
isAutoRangingin interfaceAxis- Returns:
- true if axis shall be updated to the optimal data range
-
setAutoRanging
public void setAutoRanging(boolean value)
Description copied from interface:AxisThis is true when the axis determines its range from the data automatically- Specified by:
setAutoRangingin interfaceAxis- Parameters:
value- true if axis shall be updated to the optimal data range
-
autoRangingProperty
public javafx.beans.property.BooleanProperty autoRangingProperty()
Description copied from interface:AxisThis is true when the axis determines its range from the data automatically- Specified by:
autoRangingPropertyin interfaceAxis- Returns:
- property
-
getTickLabelFont
public javafx.scene.text.Font getTickLabelFont()
- Specified by:
getTickLabelFontin interfaceAxis- Returns:
- the font for all tick labels
-
setTickLabelFont
public void setTickLabelFont(javafx.scene.text.Font value)
-
tickLabelFontProperty
public javafx.beans.property.ObjectProperty<javafx.scene.text.Font> tickLabelFontProperty()
-
getTickLabelFill
public javafx.scene.paint.Paint getTickLabelFill()
- Specified by:
getTickLabelFillin interfaceAxis- Returns:
- the fill for all tick labels
-
setTickLabelFill
public void setTickLabelFill(javafx.scene.paint.Paint value)
-
tickLabelFillProperty
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> tickLabelFillProperty()
-
getTickLabelGap
public double getTickLabelGap()
- Specified by:
getTickLabelGapin interfaceAxis- Returns:
- the gap between tick labels and the tick mark lines
-
setTickLabelGap
public void setTickLabelGap(double value)
-
tickLabelGapProperty
public javafx.beans.property.DoubleProperty tickLabelGapProperty()
-
getAxisLabelGap
public double getAxisLabelGap()
-
setAxisLabelGap
public void setAxisLabelGap(double value)
-
axisLabelGapProperty
public javafx.beans.property.DoubleProperty axisLabelGapProperty()
-
getAnimationDuration
public int getAnimationDuration()
-
setAnimationDuration
public void setAnimationDuration(int value)
-
animationDurationProperty
public javafx.beans.property.IntegerProperty animationDurationProperty()
-
getAnimated
public boolean getAnimated()
Indicates whether the changes to axis range will be animated or not.- Returns:
- true if axis range changes will be animated and false otherwise
-
setAnimated
public void setAnimated(boolean value)
- Specified by:
setAnimatedin interfaceAxis- Parameters:
value- true if axis range changes will be animated and false otherwise
-
animatedProperty
public javafx.beans.property.BooleanProperty animatedProperty()
-
getTickLabelRotation
public double getTickLabelRotation()
-
setTickLabelRotation
public void setTickLabelRotation(double value)
-
tickLabelRotationProperty
public javafx.beans.property.DoubleProperty tickLabelRotationProperty()
-
isMinorTickVisible
public boolean isMinorTickVisible()
-
setMinorTickVisible
public void setMinorTickVisible(boolean value)
-
minorTickVisibleProperty
public javafx.beans.property.BooleanProperty minorTickVisibleProperty()
-
getLength
public double getLength()
-
getScale
public double getScale()
-
setScale
protected void setScale(double scale)
-
scaleProperty
public javafx.beans.property.ReadOnlyDoubleProperty scaleProperty()
-
getUpperBound
public double getUpperBound()
- Specified by:
getUpperBoundin interfaceAxis
-
setUpperBound
public void setUpperBound(double value)
- Specified by:
setUpperBoundin interfaceAxis
-
upperBoundProperty
public javafx.beans.property.DoubleProperty upperBoundProperty()
- Specified by:
upperBoundPropertyin interfaceAxis
-
getLowerBound
public double getLowerBound()
- Specified by:
getLowerBoundin interfaceAxis
-
setLowerBound
public void setLowerBound(double value)
- Specified by:
setLowerBoundin interfaceAxis
-
lowerBoundProperty
public javafx.beans.property.DoubleProperty lowerBoundProperty()
- Specified by:
lowerBoundPropertyin interfaceAxis
-
getTickLabelFormatter
public javafx.util.StringConverter<java.lang.Number> getTickLabelFormatter()
- Specified by:
getTickLabelFormatterin interfaceAxis
-
setTickLabelFormatter
public void setTickLabelFormatter(javafx.util.StringConverter<java.lang.Number> value)
-
tickLabelFormatterProperty
public javafx.beans.property.ObjectProperty<javafx.util.StringConverter<java.lang.Number>> tickLabelFormatterProperty()
-
getMinorTickLength
public double getMinorTickLength()
-
setMinorTickLength
public void setMinorTickLength(double value)
-
minorTickLengthProperty
public javafx.beans.property.DoubleProperty minorTickLengthProperty()
-
getMinorTickCount
public int getMinorTickCount()
- Specified by:
getMinorTickCountin interfaceAxis
-
setMinorTickCount
public void setMinorTickCount(int value)
-
minorTickCountProperty
public javafx.beans.property.IntegerProperty minorTickCountProperty()
-
isAutoGrowRanging
public boolean isAutoGrowRanging()
This is true when the axis determines its range from the data automatically and grows it if necessary- Specified by:
isAutoGrowRangingin interfaceAxis- Returns:
- true if axis shall be updated to the optimal data range
-
setAutoGrowRanging
public void setAutoGrowRanging(boolean state)
This is true when the axis determines its range from the data automatically and grows it if necessary- Specified by:
setAutoGrowRangingin interfaceAxis- Parameters:
state- true if axis shall be updated to the optimal data range and grows it if necessary
-
autoGrowRangingProperty
public javafx.beans.property.BooleanProperty autoGrowRangingProperty()
This is true when the axis determines its range from the data automatically- Specified by:
autoGrowRangingPropertyin interfaceAxis- Returns:
- property
-
autoRangeRoundingProperty
public javafx.beans.property.BooleanProperty autoRangeRoundingProperty()
WithautoRangingProperty()on, defines if the range should be extended to the major tick unit value. For example with range [3, 74] and major tick unit [5], the range will be extended to [0, 75].Default value:
true- Returns:
- autoRangeRounding property
-
isAutoRangeRounding
public boolean isAutoRangeRounding()
Returns the value of theautoRangeRoundingProperty().- Returns:
- the auto range rounding flag
-
setAutoRangeRounding
public void setAutoRangeRounding(boolean round)
Sets the value of theautoRangeRoundingProperty()- Parameters:
round- iftrue, lower and upper bound will be adjusted to the tick unit value
-
isInvertedAxis
public boolean isInvertedAxis()
This istruewhen the axis labels and data point order should be inverted- Specified by:
isInvertedAxisin interfaceAxis- Returns:
trueif axis shall be inverted (i.e. drawn from 'max->min', rather than the normal 'min->max')
-
invertAxis
public void invertAxis(boolean value)
This istruewhen the axis labels and data point order should be inverted- Specified by:
invertAxisin interfaceAxis- Parameters:
value-trueif axis shall be inverted (i.e. drawn from 'max->min', rather than the normal 'min->max')
-
invertAxisProperty
public javafx.beans.property.BooleanProperty invertAxisProperty()
This istruewhen the axis labels and data point order should be inverted- Specified by:
invertAxisPropertyin interfaceAxis- Returns:
- property
-
isTimeAxis
public boolean isTimeAxis()
This is true when the axis corresponds to a time-axis- Specified by:
isTimeAxisin interfaceAxis- Returns:
- true if axis is a time scale
-
setTimeAxis
public void setTimeAxis(boolean value)
This istruewhen the axis labels and data point should be plotted according to some time-axis definition- Specified by:
setTimeAxisin interfaceAxis- Parameters:
value-trueif axis shall be drawn with time-axis labels
-
timeAxisProperty
public javafx.beans.property.BooleanProperty timeAxisProperty()
This istruewhen the axis labels and data point should be plotted according to some time-axis definition- Specified by:
timeAxisPropertyin interfaceAxis- Returns:
- time axis property reference
-
autoRangePaddingProperty
public javafx.beans.property.DoubleProperty autoRangePaddingProperty()
Fraction of the range to be applied as padding on both sides of the axis range. E.g. if set to 0.1 (10%) on axis with data range [10, 20], the new automatically calculated range will be [9, 21].- Returns:
- autoRangePadding property
-
getAutoRangePadding
public double getAutoRangePadding()
Returns the value of theautoRangePaddingProperty().- Returns:
- the auto range padding
-
setAutoRangePadding
public void setAutoRangePadding(double padding)
Sets the value of theautoRangePaddingProperty()- Parameters:
padding- padding factor
-
decadeRange
protected double decadeRange()
-
updateScaleAndUnitPrefix
protected void updateScaleAndUnitPrefix()
-
updateAxisLabelAndUnit
protected void updateAxisLabelAndUnit()
-
getUnit
public java.lang.String getUnit()
-
setUnit
public void setUnit(java.lang.String value)
-
unitProperty
public javafx.beans.property.ObjectProperty<java.lang.String> unitProperty()
- Specified by:
unitPropertyin interfaceAxis- Returns:
- the primary unit scaling property
-
getAutoUnitScaling
public boolean getAutoUnitScaling()
- Specified by:
getAutoUnitScalingin interfaceAxis- Returns:
- whether unit is automatically adjusted to multiples of 1e3 (kilo, mega, ...) or 1e-3 (milli, micro, ...)
-
setAutoUnitScaling
public void setAutoUnitScaling(boolean value)
- Specified by:
setAutoUnitScalingin interfaceAxis- Parameters:
value- scaling valuetrue-> scale to the nearest SI unit prefix
-
autoUnitScalingProperty
public javafx.beans.property.BooleanProperty autoUnitScalingProperty()
- Specified by:
autoUnitScalingPropertyin interfaceAxis- Returns:
true-> scale to the nearest SI unit prefix
-
getUnitScaling
public double getUnitScaling()
- Specified by:
getUnitScalingin interfaceAxis- Returns:
- axis primary unit scaling
-
setUnitScaling
public void setUnitScaling(double value)
- Specified by:
setUnitScalingin interfaceAxis- Parameters:
value- the new axis primary unit label
-
setUnitScaling
public void setUnitScaling(MetricPrefix prefix)
- Specified by:
setUnitScalingin interfaceAxis- Parameters:
prefix- the new axis primary unit label
-
unitScalingProperty
public javafx.beans.property.DoubleProperty unitScalingProperty()
- Specified by:
unitScalingPropertyin interfaceAxis- Returns:
- the primary unit label property
-
tickUnitProperty
public javafx.beans.property.DoubleProperty tickUnitProperty()
The value between each major tick mark in data units. This is automatically set if we are auto-ranging.- Specified by:
tickUnitPropertyin interfaceAxis- Returns:
- tickUnit property
-
getTickUnit
public double getTickUnit()
Returns tick unit value expressed in data units.- Specified by:
getTickUnitin interfaceAxis- Returns:
- major tick unit value
-
setTickUnit
public void setTickUnit(double unit)
Sets the value of thetickUnitProperty().- Specified by:
setTickUnitin interfaceAxis- Parameters:
unit- major tick unit
-
invalidateRange
protected void invalidateRange()
Mark the current range invalid, this will cause anything that depends on the range to be recalculated on the next layout.
-
requestAxisLayout
public abstract void requestAxisLayout()
Request that the axis is laid out in the next layout pass. This replaces requestLayout() as it has been overridden to do nothing so that changes to children's bounds etc do not cause a layout. This was done as a optimisation as the Axis knows the exact minimal set of changes that really need layout to be updated. So we only want to request layout then, not on any child change.- Specified by:
requestAxisLayoutin interfaceAxis
-
fireInvalidated
public abstract void fireInvalidated()
-
getClassCssMetaData
public static java.util.List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getClassCssMetaData()
- Returns:
- The CssMetaData associated with this class, which may include the CssMetaData of its super classes.
-
getCssMetaData
public java.util.List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getCssMetaData()
- Specified by:
getCssMetaDatain interfacejavafx.css.Styleable- Overrides:
getCssMetaDatain classjavafx.scene.layout.Region
-
-