public class DefaultNumericAxis extends AbstractAxis
Compared to the NumberAxis, this one has a few additional features:
auto-ranging is offauto-range paddingauto-range roundingtickUnitSupplierProperty tick unit suppliers| Type | Property and Description |
|---|---|
BooleanProperty |
forceZeroInRange
When
true zero is always included in the visible range. |
DoubleProperty |
logarithmBase
Base of the logarithm used by the axis, must be grater than 1.
|
BooleanProperty |
logAxis
When
true axis is being a log-axis (default = false) |
axisLabelFormatterPropertyanimatedProperty, animationDurationProperty, autoGrowRangingProperty, autoRangePaddingProperty, autoRangeRoundingProperty, autoRangingProperty, autoUnitScalingProperty, axisLabelGapProperty, axisLabelTextAlignmentProperty, axisPaddingProperty, centerAxisPositionProperty, invertAxisProperty, maxProperty, minorTickCountProperty, minorTickLengthProperty, minorTickVisibleProperty, minProperty, nameProperty, overlapPolicyProperty, scaleProperty, sideProperty, tickLabelFillProperty, tickLabelFontProperty, tickLabelFormatterProperty, tickLabelGapProperty, tickLabelRotationProperty, tickLabelsVisibleProperty, tickLengthProperty, tickMarkVisibleProperty, tickUnitProperty, timeAxisProperty, unitProperty, unitScalingPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthPropertyimpl_traversalEngineProperty, needsLayoutPropertyaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, 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, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visiblePropertyautoGrowRangingProperty, autoRangingProperty, autoUnitScalingProperty, invertAxisProperty, maxProperty, minProperty, nameProperty, sideProperty, tickUnitProperty, timeAxisProperty, unitProperty, unitScalingProperty| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultNumericAxis.Cache |
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_LOG_MIN_VALUE |
protected boolean |
isLogAxis |
protected boolean |
isUpdating |
animator, BURST_LIMIT_CSS_MS, cachedOffset, currentLowerBound, labelOverlap, lock, maxLabelHeight, maxLabelWidth, RANGE_ANIMATION_DURATION_MS, tickMarkDoubleCache, tickMarkSizeCache, tickMarkStringCacheautoRange, axisLabel, DEFAULT_MINOR_TICK_COUNT, isInvertedAxis, isTimeAxis, majorTickMarks, majorTickStyle, maxProp, measureInvalid, minorTickMarks, minorTickStyle, minProp, oldAxisLength, rangeValid, scaleBinding, tickLabelRotation, tickLabelsVisibleInvalid, tickUnit, userRangeUSE_COMPUTED_SIZE, USE_PREF_SIZEBASELINE_OFFSET_SAME_AS_HEIGHT| Constructor and Description |
|---|
DefaultNumericAxis()
Creates an
auto-ranging Axis. |
DefaultNumericAxis(double lowerBound,
double upperBound,
double tickUnit)
Creates a
non-auto-ranging Axis with the given upper bound, lower bound and tick
unit. |
DefaultNumericAxis(String axisLabel)
Creates an
auto-ranging Axis. |
DefaultNumericAxis(String axisLabel,
double lowerBound,
double upperBound,
double tickUnit)
Create a
non-auto-ranging Axis with the given upper bound, lower bound and tick
unit. |
DefaultNumericAxis(String axisLabel,
String unit)
Creates an
auto-ranging Axis. |
| Modifier and Type | Method and Description |
|---|---|
protected AxisRange |
autoRange(double minValue,
double maxValue,
double length,
double labelSize)
We suppress requestLayout() calls here by doing nothing as we don't want changes to our children to cause layout.
|
protected List<Double> |
calculateMajorTickValues(double axisLength,
AxisRange axisRange)
Calculate a list of all the data values for each tick mark in range
|
protected List<Double> |
calculateMinorTickValues()
Calculate a list of the data values for every minor tick mark
|
protected static double |
clampBoundToZero(double paddedBound,
double bound)
If padding pushed the bound above or below zero - stick it to zero.
|
double |
computePreferredTickUnit(double axisLength)
Computes the preferred tick unit based on the upper/lower bounds and the length of the axis in screen
coordinates.
|
protected AxisRange |
computeRange(double min,
double max,
double axisLength,
double labelSize)
Computes range of this axis, similarly to
AbstractAxis.autoRange(double, double, double, double). |
protected double |
computeTickUnit(double rawTickUnit) |
BooleanProperty |
forceZeroInRangeProperty()
When
true zero is always included in the visible range. |
AxisTransform |
getAxisTransform()
Gets the transformation (linear, logarithmic, etc) applied to the values of this axis.
|
double |
getDisplayPosition(double value)
Get the display position along this axis for a given value.
|
protected static double |
getEffectiveRange(double min,
double max) |
double |
getLogarithmBase()
Returns the value of the
logarithmBaseProperty(). |
LogAxisType |
getLogAxisType() |
double |
getValueForDisplay(double displayPosition)
Get the data value for the given display position on this axis.
|
double |
getZeroPosition()
Get the display position of the zero line along this axis.
|
boolean |
isForceZeroInRange()
Returns the value of the
forceZeroInRangeProperty(). |
boolean |
isLogAxis()
Returns the value of the
logAxisProperty(). |
boolean |
isValueOnAxis(double value)
Checks if the given value is plottable on this axis
|
DoubleProperty |
logarithmBaseProperty()
Base of the logarithm used by the axis, must be grater than 1.
|
BooleanProperty |
logAxisProperty()
When
true axis is being a log-axis (default = false) |
void |
requestAxisLayout()
Request that the axis is laid out in the next layout pass.
|
void |
setForceZeroInRange(boolean value)
Sets the value of the
forceZeroInRangeProperty(). |
void |
setLogarithmBase(double value)
Sets value of the
logarithmBaseProperty(). |
void |
setLogAxis(boolean value)
Sets the value of the
logAxisProperty(). |
protected void |
setRange(AxisRange range,
boolean animate) |
protected void |
updateCachedVariables()
to be overwritten by derived class that want to cache variables for efficiency reasons
|
autoRange, axisLabelFormatterProperty, calculateNewScale, clearAxisCanvas, computePrefHeight, computePrefWidth, computeTickMarks, drawAxis, drawAxisLabel, drawAxisLabel, drawAxisLine, drawAxisPost, drawAxisPre, drawTickLabels, drawTickMarkLabel, drawTickMarks, fireInvalidated, forceRedraw, getAxisLabelFormatter, getAxisRange, getCanvas, getGraphicsContext, getMaxTickLabelHeight, getMaxTickLabelWidth, getNewTickMark, getTickMarkLabel, invalidateRange, invalidateRange, isLabelOverlapping, isRangeValid, layoutChildren, measureTickMarkLength, recomputeTickMarks, recomputeTickMarks, setAxisLabelFormatter, setMax, setMin, shouldAnimate, snap, tickMarksUpdated, updateCSSadd, add, animatedProperty, animationDurationProperty, autoGrowRangingProperty, autoNotification, autoRangePaddingProperty, autoRangeRoundingProperty, autoRangingProperty, autoUnitScalingProperty, axisLabelGapProperty, axisLabelTextAlignmentProperty, axisPaddingProperty, centerAxisPositionProperty, clear, contains, decadeRange, getaAxisLabelTextAlignment, getAnimationDuration, getAutoRange, getAutoRangePadding, getAxisLabel, getAxisLabelGap, getAxisPadding, getCenterAxisPosition, getClassCssMetaData, getCssMetaData, getLength, getMajorTickStyle, getMax, getMin, getMinorTickCount, getMinorTickLength, getMinorTickMarks, getMinorTickStyle, getName, getOverlapPolicy, getRange, getScale, getSide, getTickLabelFill, getTickLabelFont, getTickLabelFormatter, getTickLabelGap, getTickLabelRotation, getTickLength, getTickMarks, getTickUnit, getUnit, getUnitScaling, getUserRange, invertAxis, invertAxisProperty, invokeListener, isAnimated, isAutoGrowRanging, isAutoRangeRounding, isAutoRanging, isAutoUnitScaling, isDefined, isInvertedAxis, isMinorTickVisible, isTickLabelsVisible, isTickMarkVisible, isTimeAxis, maxProperty, minorTickCountProperty, minorTickLengthProperty, minorTickVisibleProperty, minProperty, nameProperty, overlapPolicyProperty, scaleProperty, set, set, set, setAnimated, setAnimationDuration, setAutoGrowRanging, setAutoRangePadding, setAutoRangeRounding, setAutoRanging, setAutoUnitScaling, setAxisCentrePosition, setAxisLabelAlignment, setAxisLabelGap, setAxisPadding, setMinorTickCount, setMinorTickLength, setMinorTickVisible, setName, setOverlapPolicy, setScale, setSide, setTickLabelFill, setTickLabelFont, setTickLabelFormatter, setTickLabelGap, setTickLabelRotation, setTickLabelsVisible, setTickLength, setTickMarkVisible, setTickUnit, setTimeAxis, setUnit, setUnitScaling, setUnitScaling, sideProperty, tickLabelFillProperty, tickLabelFontProperty, tickLabelFormatterProperty, tickLabelGapProperty, tickLabelRotationProperty, tickLabelsVisibleProperty, tickLengthProperty, tickMarkVisibleProperty, tickUnitProperty, timeAxisProperty, unitProperty, unitScalingProperty, updateAxisLabelAndUnit, updateEventListener, updateScaleAndUnitPrefixgetChildrenbackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, 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, snapSize, snapSpace, snapToPixelProperty, widthPropertygetBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processCSS, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, 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, 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, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_cssGetFocusTraversableInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, 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, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitautoGrowRangingProperty, autoRangingProperty, autoUnitScalingProperty, getAutoRange, getHeight, getLength, getMinorTickCount, getMinorTickMarks, getRange, getSide, getTickLabelFill, getTickLabelFont, getTickLabelFormatter, getTickLabelGap, getTickMarks, getTickUnit, getUnitScaling, getUserRange, getWidth, invertAxis, invertAxisProperty, invokeListener, isAutoGrowRanging, isAutoRanging, isAutoUnitScaling, isInvertedAxis, isTimeAxis, maxProperty, minProperty, nameProperty, setAnimated, setAutoGrowRanging, setAutoRanging, setAutoUnitScaling, setName, setSide, setTickUnit, setTimeAxis, setUnit, setUnitScaling, setUnitScaling, sideProperty, tickUnitProperty, timeAxisProperty, unitProperty, unitScalingPropertyadd, add, add, clear, contains, getMax, getMin, getName, getUnit, isDefined, set, set, set, setaddListener, autoNotification, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListenerpublic BooleanProperty forceZeroInRangeProperty
true zero is always included in the visible range. This only has effect if
auto-ranging is on.isForceZeroInRange(),
setForceZeroInRange(boolean)public DoubleProperty logarithmBaseProperty
Default value: 10
getLogarithmBase(),
setLogarithmBase(double)public BooleanProperty logAxisProperty
true axis is being a log-axis (default = false)isLogAxis(),
setLogAxis(boolean)public static final double DEFAULT_LOG_MIN_VALUE
protected boolean isUpdating
protected boolean isLogAxis
public DefaultNumericAxis()
auto-ranging Axis.public DefaultNumericAxis(double lowerBound,
double upperBound,
double tickUnit)
non-auto-ranging Axis with the given upper bound, lower bound and tick
unit.lowerBound - the lower bound of the axisupperBound - the upper bound of the axistickUnit - the tick unit, i.e. space between tick markspublic DefaultNumericAxis(String axisLabel)
auto-ranging Axis.axisLabel - the axis labelpublic DefaultNumericAxis(String axisLabel, double lowerBound, double upperBound, double tickUnit)
non-auto-ranging Axis with the given upper bound, lower bound and tick
unit.axisLabel - the axis labellowerBound - the lower bound of the axisupperBound - the upper bound of the axistickUnit - the tick unit, i.e. space between tick markspublic DefaultNumericAxis(String axisLabel, String unit)
auto-ranging Axis.protected AxisRange autoRange(double minValue, double maxValue, double length, double labelSize)
AbstractAxisautoRange in class AbstractAxisprotected List<Double> calculateMajorTickValues(double axisLength, AxisRange axisRange)
AbstractAxiscalculateMajorTickValues in class AbstractAxisaxisLength - The length of the axis in display unitsaxisRange - A range object returned from autoRange()protected List<Double> calculateMinorTickValues()
AbstractAxiscalculateMinorTickValues in class AbstractAxispublic double computePreferredTickUnit(double axisLength)
computePreferredTickUnit in class AbstractAxisaxisLength - the length in screen coordinatesprotected AxisRange computeRange(double min, double max, double axisLength, double labelSize)
AbstractAxisAbstractAxis.autoRange(double, double, double, double). The major
difference is that this method is called when auto-range is off.computeRange in class AbstractAxismin - The min data value that needs to be plotted on this axismax - The max data value that needs to be plotted on this axisaxisLength - The length of the axis in display coordinateslabelSize - The approximate average size a label takes along the axisAbstractAxis.autoRange(double, double, double, double)protected double computeTickUnit(double rawTickUnit)
public BooleanProperty forceZeroInRangeProperty()
true zero is always included in the visible range. This only has effect if
auto-ranging is on.isForceZeroInRange(),
setForceZeroInRange(boolean)public AxisTransform getAxisTransform()
public double getDisplayPosition(double value)
getDisplayPosition in interface AxisgetDisplayPosition in class AbstractAxisvalue - The data value to work out display position forpublic double getLogarithmBase()
logarithmBaseProperty().public LogAxisType getLogAxisType()
public double getValueForDisplay(double displayPosition)
displayPosition - A pixel position on this axispublic double getZeroPosition()
getZeroPosition in interface AxisgetZeroPosition in class AbstractAxispublic boolean isForceZeroInRange()
forceZeroInRangeProperty().public boolean isLogAxis()
logAxisProperty().public boolean isValueOnAxis(double value)
isValueOnAxis in interface AxisisValueOnAxis in class AbstractAxisvalue - The value to check if its on axispublic DoubleProperty logarithmBaseProperty()
Default value: 10
getLogarithmBase(),
setLogarithmBase(double)public BooleanProperty logAxisProperty()
true axis is being a log-axis (default = false)isLogAxis(),
setLogAxis(boolean)public void requestAxisLayout()
AbstractAxisrequestAxisLayout in interface AxisrequestAxisLayout in class AbstractAxispublic void setForceZeroInRange(boolean value)
forceZeroInRangeProperty().value - if true, zero is always included in the visible rangepublic void setLogarithmBase(double value)
logarithmBaseProperty().value - base of the logarithm, value > 1public void setLogAxis(boolean value)
logAxisProperty().value - if true, log axis is drawnprotected void setRange(AxisRange range, boolean animate)
setRange in class AbstractAxisprotected void updateCachedVariables()
AbstractAxisupdateCachedVariables in class AbstractAxisprotected static double clampBoundToZero(double paddedBound,
double bound)
paddedBound - padded version of boundbound - computed raw version of boundprotected static double getEffectiveRange(double min,
double max)
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.