- java.lang.Object
-
- javafx.scene.Node
-
- javafx.scene.Parent
-
- javafx.scene.layout.Region
-
- javafx.scene.chart.Axis<T>
-
- javafx.scene.chart.ValueAxis<T>
-
- All Implemented Interfaces:
-
Styleable
,EventTarget
- 已知直接子类:
-
NumberAxis
public abstract class ValueAxis<T extends Number> extends Axis<T>
数据定义为数字的轴。 它也可以在主要的之间绘制小的标记。- 从以下版本开始:
- JavaFX 2.0
-
-
Property Summary
Properties Type Property 描述 DoubleProperty
lowerBound
该轴下限值(最小值)。IntegerProperty
minorTickCount
每个主要刻度线之间显示的小刻度分割数。DoubleProperty
minorTickLength
小刻度线的长度。BooleanProperty
minorTickVisible
如果显示较小的刻度线,则为真ReadOnlyDoubleProperty
scale
从数据单位到视觉单位的比例因子ObjectProperty<StringConverter<T>>
tickLabelFormatter
StringConverter用于格式化刻度线标签。DoubleProperty
upperBound
该轴上限值(最大值)。-
Properties inherited from class javafx.scene.chart.Axis
animated, autoRanging, label, side, tickLabelFill, tickLabelFont, tickLabelGap, tickLabelRotation, tickLabelsVisible, tickLength, tickMarkVisible
-
Properties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
-
Properties inherited from class javafx.scene.Parent
needsLayout
-
Properties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javafx.scene.chart.Axis
Axis.TickMark<T>
-
-
Field Summary
Fields Modifier and Type Field 描述 protected DoubleProperty
currentLowerBound
该轴的lowerBound的当前值(最小值)。-
Fields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT
-
Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZE
-
-
方法摘要
所有方法 静态方法 接口方法 抽象方法 具体的方法 Modifier and Type 方法 描述 protected Object
autoRange(double length)
这将根据提供给invalidateRange()方法的数据计算上限和下限。protected Object
autoRange(double minValue, double maxValue, double length, double labelSize)
被要求设置上限和下限以及需要自动调整的任何其他内容。protected abstract List<T>
calculateMinorTickMarks()
计算每个小刻度线的数据值列表protected double
calculateNewScale(double length, double lowerBound, double upperBound)
计算此轴的新刻度。static List<CssMetaData<? extends Styleable,?>>
getClassCssMetaData()
List<CssMetaData<? extends Styleable,?>>
getCssMetaData()
该方法应该委托给Node.getClassCssMetaData()
,以便可以访问Node的CssMetaData而不需要反射。double
getDisplayPosition(T value)
获取给定值的沿该轴的显示位置。double
getLowerBound()
获取属性lowerBound的值。int
getMinorTickCount()
获取属性minorTickCount的值。double
getMinorTickLength()
获取属性minorTickLength的值。double
getScale()
获取属性比例的值。StringConverter<T>
getTickLabelFormatter()
获取属性tickLabelFormatter的值。double
getUpperBound()
获取属性upperBound的值。T
getValueForDisplay(double displayPosition)
获取此轴上给定显示位置的数据值。double
getZeroPosition()
获取零轴沿该轴的显示位置。void
invalidateRange(List<T> data)
当数据发生变化并且范围可能不再有效时调用。boolean
isMinorTickVisible()
获取属性minorTickVisible的值。boolean
isValueOnAxis(T value)
检查给定值是否在该轴上是可绘制的protected void
layoutChildren()
在布局传递期间调用以布局此轴及其所有内容。DoubleProperty
lowerBoundProperty()
该轴下限值(最小值)。IntegerProperty
minorTickCountProperty()
每个主要刻度线之间显示的小刻度分割数。DoubleProperty
minorTickLengthProperty()
小刻度线的长度。BooleanProperty
minorTickVisibleProperty()
如果显示较小的刻度线,则为真ReadOnlyDoubleProperty
scaleProperty()
从数据单位到视觉单位的比例因子void
setLowerBound(double value)
设置属性lowerBound的值。void
setMinorTickCount(int value)
设置属性minorTickCount的值。void
setMinorTickLength(double value)
设置属性minorTickLength的值。void
setMinorTickVisible(boolean value)
设置属性minorTickVisible的值。protected void
setScale(double scale)
设置属性比例的值。void
setTickLabelFormatter(StringConverter<T> value)
设置属性tickLabelFormatter的值。void
setUpperBound(double value)
设置属性upperBound的值。ObjectProperty<StringConverter<T>>
tickLabelFormatterProperty()
StringConverter用于格式化刻度线标签。protected void
tickMarksUpdated()
如果已经更新了标记,则在布局期间调用,允许子类在反应中执行所需的任何操作。double
toNumericValue(T value)
所有轴值必须由某些数值表示。T
toRealValue(double value)
所有轴值必须由某些数值表示。DoubleProperty
upperBoundProperty()
该轴上限值(最大值)。-
Methods inherited from class javafx.scene.chart.Axis
animatedProperty, autoRangingProperty, calculateTickValues, computePrefHeight, computePrefWidth, getAnimated, getLabel, getRange, getSide, getTickLabelFill, getTickLabelFont, getTickLabelGap, getTickLabelRotation, getTickLength, getTickMarkLabel, getTickMarks, invalidateRange, isAutoRanging, isRangeValid, isTickLabelsVisible, isTickMarkVisible, labelProperty, measureTickMarkLabelSize, measureTickMarkSize, measureTickMarkSize, requestAxisLayout, requestLayout, setAnimated, setAutoRanging, setLabel, setRange, setSide, setTickLabelFill, setTickLabelFont, setTickLabelGap, setTickLabelRotation, setTickLabelsVisible, setTickLength, setTickMarkVisible, shouldAnimate, sideProperty, tickLabelFillProperty, tickLabelFontProperty, tickLabelGapProperty, tickLabelRotationProperty, tickLabelsVisibleProperty, tickLengthProperty, tickMarkVisibleProperty
-
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 class javafx.scene.Parent
getBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestParentLayout, setNeedsLayout, updateBounds
-
Methods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, 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 interface javafx.css.Styleable
getStyleableNode
-
-
-
-
Property Detail
-
minorTickVisible
public final BooleanProperty minorTickVisibleProperty
如果显示较小的刻度线,则为真
-
scale
public final ReadOnlyDoubleProperty scaleProperty
从数据单位到视觉单位的比例因子- 另请参见:
-
getScale()
,setScale(double)
-
upperBound
public final DoubleProperty upperBoundProperty
该轴上限值(最大值)。 如果自动量程打开,则自动设置。- 另请参见:
-
getUpperBound()
,setUpperBound(double)
-
lowerBound
public final DoubleProperty lowerBoundProperty
该轴下限值(最小值)。 如果自动量程打开,则自动设置。- 另请参见:
-
getLowerBound()
,setLowerBound(double)
-
tickLabelFormatter
public final ObjectProperty<StringConverter<T extends Number>> tickLabelFormatterProperty
StringConverter用于格式化刻度线标签。 如果null,将使用默认值
-
minorTickLength
public final DoubleProperty minorTickLengthProperty
小刻度线的长度。 设置为0以不显示小刻度线。
-
minorTickCount
public final IntegerProperty minorTickCountProperty
每个主要刻度线之间显示的小刻度分割数。 实际的小刻度标记的数量将比此少一个。
-
-
字段详细信息
-
currentLowerBound
protected final DoubleProperty currentLowerBound
该轴的lowerBound的当前值(最小值)。 这可能与lowerBound相同或不同。 NumberAxis用于将lowerBound从旧值设为新值。
-
-
方法详细信息
-
isMinorTickVisible
public final boolean isMinorTickVisible()
获取属性minorTickVisible的值。- Property description:
- 如果显示较小的刻度线,则为真
-
setMinorTickVisible
public final void setMinorTickVisible(boolean value)
设置属性minorTickVisible的值。- Property description:
- 如果显示较小的刻度线,则为真
-
minorTickVisibleProperty
public final BooleanProperty minorTickVisibleProperty()
如果显示较小的刻度线,则为真
-
getScale
public final double getScale()
获取属性比例的值。- Property description:
- 从数据单位到视觉单位的比例因子
-
setScale
protected final void setScale(double scale)
设置属性比例的值。- Property description:
- 从数据单位到视觉单位的比例因子
-
scaleProperty
public final ReadOnlyDoubleProperty scaleProperty()
从数据单位到视觉单位的比例因子- 另请参见:
-
getScale()
,setScale(double)
-
getUpperBound
public final double getUpperBound()
获取属性upperBound的值。- Property description:
- 该轴上限值(最大值)。 如果自动量程打开,则自动设置。
-
setUpperBound
public final void setUpperBound(double value)
设置属性upperBound的值。- Property description:
- 该轴上限值(最大值)。 如果自动量程打开,则自动设置。
-
upperBoundProperty
public final DoubleProperty upperBoundProperty()
该轴上限值(最大值)。 如果自动量程打开,则自动设置。- 另请参见:
-
getUpperBound()
,setUpperBound(double)
-
getLowerBound
public final double getLowerBound()
获取属性lowerBound的值。- Property description:
- 该轴下限值(最小值)。 如果自动量程打开,则自动设置。
-
setLowerBound
public final void setLowerBound(double value)
设置属性lowerBound的值。- Property description:
- 该轴下限值(最小值)。 如果自动量程打开,则自动设置。
-
lowerBoundProperty
public final DoubleProperty lowerBoundProperty()
该轴下限值(最小值)。 如果自动量程打开,则自动设置。- 另请参见:
-
getLowerBound()
,setLowerBound(double)
-
getTickLabelFormatter
public final StringConverter<T> getTickLabelFormatter()
获取属性tickLabelFormatter的值。- Property description:
- StringConverter用于格式化刻度线标签。 如果null,将使用默认值
-
setTickLabelFormatter
public final void setTickLabelFormatter(StringConverter<T> value)
设置属性tickLabelFormatter的值。- Property description:
- StringConverter用于格式化刻度线标签。 如果null,将使用默认值
-
tickLabelFormatterProperty
public final ObjectProperty<StringConverter<T>> tickLabelFormatterProperty()
StringConverter用于格式化刻度线标签。 如果null,将使用默认值
-
getMinorTickLength
public final double getMinorTickLength()
获取属性minorTickLength的值。- Property description:
- 小刻度线的长度。 设置为0以不显示小刻度线。
-
setMinorTickLength
public final void setMinorTickLength(double value)
设置属性minorTickLength的值。- Property description:
- 小刻度线的长度。 设置为0以不显示小刻度线。
-
minorTickLengthProperty
public final DoubleProperty minorTickLengthProperty()
小刻度线的长度。 设置为0以不显示小刻度线。
-
getMinorTickCount
public final int getMinorTickCount()
获取属性minorTickCount的值。- Property description:
- 每个主要刻度线之间显示的小刻度分割数。 实际的小刻度标记的数量将比此少一个。
-
setMinorTickCount
public final void setMinorTickCount(int value)
设置属性minorTickCount的值。- Property description:
- 每个主要刻度线之间显示的小刻度分割数。 实际的小刻度标记的数量将比此少一个。
-
minorTickCountProperty
public final IntegerProperty minorTickCountProperty()
每个主要刻度线之间显示的小刻度分割数。 实际的小刻度标记的数量将比此少一个。
-
autoRange
protected final Object autoRange(double length)
这将根据提供给invalidateRange()方法的数据计算上限和下限。 这不能影响轴的状态。 应在范围对象中返回自动范围的任何结果。 如果已决定为此轴采用此范围,我们将传递给setRange()。
-
calculateNewScale
protected final double calculateNewScale(double length, double lowerBound, double upperBound)
计算此轴的新刻度。 这不应影响该轴的任何属性。- 参数
-
length
- 轴的显示长度 -
lowerBound
- 下限值 -
upperBound
- 上限值 - 结果
- 新尺度以适应从给定显示长度的下限到上限的范围
-
autoRange
protected Object autoRange(double minValue, double maxValue, double length, double labelSize)
被要求设置上限和下限以及需要自动调整的任何其他内容。 这不能影响轴的状态。 应在范围对象中返回自动范围的任何结果。 如果已决定为此轴采用此范围,我们将传递给setRange()。- 参数
-
minValue
- 需要在此轴上绘制的最小数据值 -
maxValue
- 需要在此轴上绘制的最大数据值 -
length
- 显示坐标轴的长度 -
labelSize
- 标签沿着轴的大致平均尺寸 - 结果
- 计算范围
-
calculateMinorTickMarks
protected abstract List<T> calculateMinorTickMarks()
计算每个小刻度线的数据值列表- 结果
- 数据值列表,用于绘制小刻度线
-
tickMarksUpdated
protected void tickMarksUpdated()
如果已经更新了标记,则在布局期间调用,允许子类在反应中执行所需的任何操作。- 重写:
-
tickMarksUpdated
在Axis<T extends Number>
-
layoutChildren
protected void layoutChildren()
在布局传递期间调用以布局此轴及其所有内容。- 重写:
-
layoutChildren
在Axis<T extends Number>
-
invalidateRange
public void invalidateRange(List<T> data)
当数据发生变化并且范围可能不再有效时调用。 如果isAutoRanging()返回true,则仅由图表调用。 如果我们是自动测距,它将导致布局被请求,并且自动测距在下一个布局传递中发生。- 重写:
-
invalidateRange
在Axis<T extends Number>
- 参数
-
data
- 需要在此轴上绘制的所有数据的当前集合
-
getDisplayPosition
public double getDisplayPosition(T value)
获取给定值的沿该轴的显示位置。 如果该值不在当前范围内,返回的值将是显示位置的外推。- Specified by:
-
getDisplayPosition
在Axis<T extends Number>
- 参数
-
value
- 要计算的数据值显示位置 - 结果
- 显示位置
-
getValueForDisplay
public T getValueForDisplay(double displayPosition)
获取此轴上给定显示位置的数据值。 如果轴是一个CategoryAxis,这将是最接近的值。- Specified by:
-
getValueForDisplay
在Axis<T extends Number>
- 参数
-
displayPosition
- 此轴上的像素位置 - 结果
- 给定像素位置的最近数据值,如果不在轴上则为null;
-
getZeroPosition
public double getZeroPosition()
获取零轴沿该轴的显示位置。- Specified by:
-
getZeroPosition
在Axis<T extends Number>
- 结果
- 显示位置或Double.NaN如果零不在当前范围内;
-
isValueOnAxis
public boolean isValueOnAxis(T value)
检查给定值是否在该轴上是可绘制的- Specified by:
-
isValueOnAxis
在Axis<T extends Number>
- 参数
-
value
- 检查其轴上的值 - 结果
- 如果给定值在此轴上是可绘制的,则为true
-
toNumericValue
public double toNumericValue(T value)
所有轴值必须由某些数值表示。 这将获取给定数据值的数值。- Specified by:
-
toNumericValue
在Axis<T extends Number>
- 参数
-
value
- 要转换的数据值 - 结果
- 给定数据值的数值
-
toRealValue
public T toRealValue(double value)
所有轴值必须由某些数值表示。 这将获取给定数值的数据值。- Specified by:
-
toRealValue
在Axis<T extends Number>
- 参数
-
value
- 要转换的数值 - 结果
- 给定数值的数据值
-
getClassCssMetaData
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
- 结果
- 与此类相关联的CssMetaData可能包括其类的CssMetaData。
- 从以下版本开始:
- JavaFX 8.0
-
getCssMetaData
public List<CssMetaData<? extends Styleable,?>> getCssMetaData()
该方法应该委托给Node.getClassCssMetaData()
,以便可以访问Node的CssMetaData而不需要反射。- Specified by:
-
getCssMetaData
在接口Styleable
- 重写:
-
getCssMetaData
在Axis<T extends Number>
- 结果
- 与该节点相关联的CssMetaData,其可以包括其超类的CssMetaData。
- 从以下版本开始:
- JavaFX 8.0
-
-