- java.lang.Object
-
- javafx.scene.Node
-
- javafx.scene.Parent
-
- javafx.scene.layout.Region
-
- javafx.scene.chart.Axis<T>
-
- すべての実装されたインタフェース:
Styleable
,EventTarget
- 直系の既知のサブクラス:
CategoryAxis
,ValueAxis
public abstract class Axis<T> extends Region
チャート領域に描画される軸を表すJavaFXのすべての軸のベース・クラス。 軸の自動範囲指定、および軸沿いの目盛とラベルのプロパティを保持します。具象サブクラスの例には、
NumberAxis
(軸にデータが数値でプロットされる)およびCategoryAxis
(値や目盛はその軸沿いに文字列カテゴリを表す)などがあります。- 導入されたバージョン:
- JavaFX 2.0
-
-
プロパティのサマリー
プロパティ Type プロパティ 説明 BooleanProperty
animated
trueの場合、軸およびその範囲に対する変更がアニメーション化されます。BooleanProperty
autoRanging
範囲がデータから自動的に軸で決定される場合、これはtrueですObjectProperty<String>
label
軸ラベルObjectProperty<Side>
side
この軸が描画されているプロットの側ObjectProperty<Paint>
tickLabelFill
すべての目盛ラベルの塗りObjectProperty<Font>
tickLabelFont
すべての目盛ラベルのフォントDoubleProperty
tickLabelGap
目盛ラベルと目盛線の間の間隔DoubleProperty
tickLabelRotation
通常の水平位置からの目盛ラベルの回転角度。BooleanProperty
tickLabelsVisible
目盛ラベルを表示する場合はtrueDoubleProperty
tickLength
目盛線の長さBooleanProperty
tickMarkVisible
目盛を表示する場合はtrue-
クラス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
-
クラス javafx.scene.Parentから継承されたプロパティ
needsLayout
-
クラス javafx.scene.layout.Regionから継承されたプロパティ
background、border、cacheShape、centerShape、height、insets、maxHeight、maxWidth、minHeight、minWidth、opaqueInsets、padding、prefHeight、prefWidth、scaleShape、shape、snapToPixel、width
-
-
ネストされたクラスのサマリー
ネストされたクラス 修飾子と型 クラス 説明 static class
Axis.TickMark<T>
TickMarkはラベル・テキストを表し、関連付けられたプロパティが軸に沿った各目盛となります。
-
フィールドのサマリー
-
クラスjavafx.scene.Nodeから継承されたフィールド
BASELINE_OFFSET_SAME_AS_HEIGHT
-
クラス javafx.scene.layout.Regionから継承されたフィールド
USE_COMPUTED_SIZE、USE_PREF_SIZE
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 Axis()
Axisクラスの新しいインスタンスを作成および初期化します。
-
メソッドのサマリー
すべてのメソッド staticメソッド インスタンス・メソッド 抽象メソッド 具象メソッド 修飾子と型 メソッド 説明 BooleanProperty
animatedProperty()
trueの場合、軸およびその範囲に対する変更がアニメーション化されます。protected abstract Object
autoRange(double length)
invalidateRange()メソッドに入力されたデータに基づいて、上部および下部の境界を計算します。BooleanProperty
autoRangingProperty()
範囲がデータから自動的に軸で決定される場合、これはtrueですprotected abstract List<T>
calculateTickValues(double length, Object range)
範囲内の各目盛に対するすべてのデータ値のリストを計算します。protected double
computePrefHeight(double width)
指定された幅に対するこの軸の優先高を計算します。protected double
computePrefWidth(double height)
指定された高さに対するこの軸の優先幅を計算します。boolean
getAnimated()
軸の範囲に対する変更がアニメーション化されるかどうかを示します。static List<CssMetaData<? extends Styleable,?>>
getClassCssMetaData()
List<CssMetaData<? extends Styleable,?>>
getCssMetaData()
NodeのCssMetaDataがリフレクションなしでアクセス可能になるように、このメソッドはNode.getClassCssMetaData()
に委任する必要があります。abstract double
getDisplayPosition(T value)
指定された値に対する、この軸沿いの表示位置を取得します。String
getLabel()
プロパティlabelの値を取得します。protected abstract Object
getRange()
現在の軸の範囲を取得するために呼び出されます。Side
getSide()
プロパティsideの値を取得します。Paint
getTickLabelFill()
プロパティtickLabelFillの値を取得します。Font
getTickLabelFont()
プロパティtickLabelFontの値を取得します。double
getTickLabelGap()
プロパティtickLabelGapの値を取得します。double
getTickLabelRotation()
プロパティtickLabelRotationの値を取得します。double
getTickLength()
プロパティtickLengthの値を取得します。protected abstract String
getTickMarkLabel(T value)
指定された値の目盛の文字列ラベル名を取得します。ObservableList<Axis.TickMark<T>>
getTickMarks()
ティックマークの変更不可能な監視可能リスト(各TickMarkはこの軸上のティックマークを直接表します)。abstract T
getValueForDisplay(double displayPosition)
この軸上の指定された表示位置のデータ値を取得します。abstract double
getZeroPosition()
この軸沿いのゼロ行の表示位置を取得します。protected void
invalidateRange()
現在の範囲に無効のマークを付け、これにより、この範囲に依存するすべてのものが次回のレイアウトで再計算されます。void
invalidateRange(List<T> data)
データが変更され、その範囲が有効でなくなった可能性がある場合に呼び出されます。boolean
isAutoRanging()
プロパティautoRangingの値を取得します。protected boolean
isRangeValid()
現在の範囲が有効であるかどうかを確認し、有効でない場合、範囲依存の計算は次回のレイアウト受渡しで再計算される必要があります。boolean
isTickLabelsVisible()
プロパティtickLabelsVisibleの値を取得します。boolean
isTickMarkVisible()
プロパティtickMarkVisibleの値を取得します。abstract boolean
isValueOnAxis(T value)
指定された値がこの軸上でプロット可能であるかどうかをチェックします。ObjectProperty<String>
labelProperty()
軸ラベルprotected void
layoutChildren()
レイアウトの受渡し中に、この軸およびそのすべてのコンテンツをレイアウトするために起動されます。protected Dimension2D
measureTickMarkLabelSize(String labelText, double rotation)
特定の目盛値のラベルのサイズを測定します。protected Dimension2D
measureTickMarkSize(T value, double rotation)
特定の目盛値のラベルのサイズを測定します。protected Dimension2D
measureTickMarkSize(T value, Object range)
特定の目盛値のラベルのサイズを測定します。void
requestAxisLayout()
次回のレイアウト受渡しで軸がレイアウトされるようにリクエストします。void
requestLayout()
子に対する変更によってレイアウトが発生しないように、ここではrequestLayout()呼出しを抑制して何も実行しないようにしています。void
setAnimated(boolean value)
プロパティanimatedの値を設定します。void
setAutoRanging(boolean value)
プロパティautoRangingの値を設定します。void
setLabel(String value)
プロパティlabelの値を設定します。protected abstract void
setRange(Object range, boolean animate)
現在の軸の範囲を指定された範囲に設定するために呼び出されます。void
setSide(Side value)
プロパティsideの値を設定します。void
setTickLabelFill(Paint value)
プロパティtickLabelFillの値を設定します。void
setTickLabelFont(Font value)
プロパティtickLabelFontの値を設定します。void
setTickLabelGap(double value)
プロパティtickLabelGapの値を設定します。void
setTickLabelRotation(double value)
プロパティtickLabelRotationの値を設定します。void
setTickLabelsVisible(boolean value)
プロパティtickLabelsVisibleの値を設定します。void
setTickLength(double value)
プロパティtickLengthの値を設定します。void
setTickMarkVisible(boolean value)
プロパティtickMarkVisibleの値を設定します。protected boolean
shouldAnimate()
指定されたアニメーションを実行する必要があるかどうかをチェックするために使用されます。ObjectProperty<Side>
sideProperty()
この軸が描画されているプロットの側ObjectProperty<Paint>
tickLabelFillProperty()
すべての目盛ラベルの塗りObjectProperty<Font>
tickLabelFontProperty()
すべての目盛ラベルのフォントDoubleProperty
tickLabelGapProperty()
目盛ラベルと目盛線の間の間隔DoubleProperty
tickLabelRotationProperty()
通常の水平位置からの目盛ラベルの回転角度。BooleanProperty
tickLabelsVisibleProperty()
目盛ラベルを表示する場合はtrueDoubleProperty
tickLengthProperty()
目盛線の長さprotected void
tickMarksUpdated()
レイアウト中に目盛が更新されると呼び出され、対応のために必要なすべてのことをサブクラスが実行できるようにします。BooleanProperty
tickMarkVisibleProperty()
目盛を表示する場合はtrueabstract double
toNumericValue(T value)
軸のすべての値は、なんらかの数値で表現できる必要があります。abstract T
toRealValue(double value)
軸のすべての値は、なんらかの数値で表現できる必要があります。-
クラス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
-
クラス java.lang.Objectから継承されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、wait、wait、wait
-
クラス javafx.scene.Parentから継承されたメソッド
getBaselineOffset、getChildren、getChildrenUnmodifiable、getManagedChildren、getStylesheets、isNeedsLayout、layout、lookup、needsLayoutProperty、queryAccessibleAttribute、requestParentLayout、setNeedsLayout、updateBounds
-
クラス 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
-
インタフェース javafx.css.Styleableから継承されたメソッド
getStyleableNode
-
-
-
-
プロパティの詳細
-
side
public final ObjectProperty<Side> sideProperty
この軸が描画されているプロットの側- 関連項目:
getSide()
、setSide(Side)
-
label
public final ObjectProperty<String> labelProperty
軸ラベル- 関連項目:
getLabel()
、setLabel(String)
-
tickMarkVisible
public final BooleanProperty tickMarkVisibleProperty
目盛を表示する場合はtrue
-
tickLabelsVisible
public final BooleanProperty tickLabelsVisibleProperty
目盛ラベルを表示する場合はtrue
-
tickLength
public final DoubleProperty tickLengthProperty
目盛線の長さ
-
autoRanging
public final BooleanProperty autoRangingProperty
範囲がデータから自動的に軸で決定される場合、これはtrueです
-
tickLabelFont
public final ObjectProperty<Font> tickLabelFontProperty
すべての目盛ラベルのフォント
-
tickLabelFill
public final ObjectProperty<Paint> tickLabelFillProperty
すべての目盛ラベルの塗り
-
tickLabelGap
public final DoubleProperty tickLabelGapProperty
目盛ラベルと目盛線の間の間隔
-
animated
public final BooleanProperty animatedProperty
trueの場合、軸およびその範囲に対する変更がアニメーション化されます。
-
tickLabelRotation
public final DoubleProperty tickLabelRotationProperty
通常の水平位置からの目盛ラベルの回転角度。
-
-
メソッドの詳細
-
getTickMarks
public ObservableList<Axis.TickMark<T>> getTickMarks()
ティックマークの変更不可能な監視可能リスト(各TickMarkはこの軸上のティックマークを直接表します)。 表示される目盛が変更されると常に更新されます。- 戻り値:
- この軸上の目盛の変更不可能な監視可能リスト
-
getSide
public final Side getSide()
プロパティsideの値を取得します。- プロパティの説明:
- この軸が描画されているプロットの側
-
setSide
public final void setSide(Side value)
プロパティsideの値を設定します。- プロパティの説明:
- この軸が描画されているプロットの側
-
sideProperty
public final ObjectProperty<Side> sideProperty()
この軸が描画されているプロットの側- 関連項目:
getSide()
、setSide(Side)
-
getLabel
public final String getLabel()
プロパティlabelの値を取得します。- プロパティの説明:
- 軸ラベル
-
setLabel
public final void setLabel(String value)
プロパティlabelの値を設定します。- プロパティの説明:
- 軸ラベル
-
labelProperty
public final ObjectProperty<String> labelProperty()
軸ラベル- 関連項目:
getLabel()
、setLabel(String)
-
isTickMarkVisible
public final boolean isTickMarkVisible()
プロパティtickMarkVisibleの値を取得します。- プロパティの説明:
- 目盛を表示する場合はtrue
-
setTickMarkVisible
public final void setTickMarkVisible(boolean value)
プロパティtickMarkVisibleの値を設定します。- プロパティの説明:
- 目盛を表示する場合はtrue
-
tickMarkVisibleProperty
public final BooleanProperty tickMarkVisibleProperty()
目盛を表示する場合はtrue
-
isTickLabelsVisible
public final boolean isTickLabelsVisible()
プロパティtickLabelsVisibleの値を取得します。- プロパティの説明:
- 目盛ラベルを表示する場合はtrue
-
setTickLabelsVisible
public final void setTickLabelsVisible(boolean value)
プロパティtickLabelsVisibleの値を設定します。- プロパティの説明:
- 目盛ラベルを表示する場合はtrue
-
tickLabelsVisibleProperty
public final BooleanProperty tickLabelsVisibleProperty()
目盛ラベルを表示する場合はtrue
-
getTickLength
public final double getTickLength()
プロパティtickLengthの値を取得します。- プロパティの説明:
- 目盛線の長さ
-
setTickLength
public final void setTickLength(double value)
プロパティtickLengthの値を設定します。- プロパティの説明:
- 目盛線の長さ
-
tickLengthProperty
public final DoubleProperty tickLengthProperty()
目盛線の長さ
-
isAutoRanging
public final boolean isAutoRanging()
プロパティautoRangingの値を取得します。- プロパティの説明:
- 範囲がデータから自動的に軸で決定される場合、これはtrueです
-
setAutoRanging
public final void setAutoRanging(boolean value)
プロパティautoRangingの値を設定します。- プロパティの説明:
- 範囲がデータから自動的に軸で決定される場合、これはtrueです
-
autoRangingProperty
public final BooleanProperty autoRangingProperty()
範囲がデータから自動的に軸で決定される場合、これはtrueです
-
getTickLabelFont
public final Font getTickLabelFont()
プロパティtickLabelFontの値を取得します。- プロパティの説明:
- すべての目盛ラベルのフォント
-
setTickLabelFont
public final void setTickLabelFont(Font value)
プロパティtickLabelFontの値を設定します。- プロパティの説明:
- すべての目盛ラベルのフォント
-
tickLabelFontProperty
public final ObjectProperty<Font> tickLabelFontProperty()
すべての目盛ラベルのフォント
-
getTickLabelFill
public final Paint getTickLabelFill()
プロパティtickLabelFillの値を取得します。- プロパティの説明:
- すべての目盛ラベルの塗り
-
setTickLabelFill
public final void setTickLabelFill(Paint value)
プロパティtickLabelFillの値を設定します。- プロパティの説明:
- すべての目盛ラベルの塗り
-
tickLabelFillProperty
public final ObjectProperty<Paint> tickLabelFillProperty()
すべての目盛ラベルの塗り
-
getTickLabelGap
public final double getTickLabelGap()
プロパティtickLabelGapの値を取得します。- プロパティの説明:
- 目盛ラベルと目盛線の間の間隔
-
setTickLabelGap
public final void setTickLabelGap(double value)
プロパティtickLabelGapの値を設定します。- プロパティの説明:
- 目盛ラベルと目盛線の間の間隔
-
tickLabelGapProperty
public final DoubleProperty tickLabelGapProperty()
目盛ラベルと目盛線の間の間隔
-
getAnimated
public final boolean getAnimated()
軸の範囲に対する変更がアニメーション化されるかどうかを示します。- 戻り値:
- 軸の範囲の変更がアニメーション化される場合はtrue、そうでない場合はfalse
-
setAnimated
public final void setAnimated(boolean value)
プロパティanimatedの値を設定します。- プロパティの説明:
- trueの場合、軸およびその範囲に対する変更がアニメーション化されます。
-
animatedProperty
public final BooleanProperty animatedProperty()
trueの場合、軸およびその範囲に対する変更がアニメーション化されます。
-
getTickLabelRotation
public final double getTickLabelRotation()
プロパティtickLabelRotationの値を取得します。- プロパティの説明:
- 通常の水平位置からの目盛ラベルの回転角度。
-
setTickLabelRotation
public final void setTickLabelRotation(double value)
プロパティtickLabelRotationの値を設定します。- プロパティの説明:
- 通常の水平位置からの目盛ラベルの回転角度。
-
tickLabelRotationProperty
public final DoubleProperty tickLabelRotationProperty()
通常の水平位置からの目盛ラベルの回転角度。
-
isRangeValid
protected final boolean isRangeValid()
現在の範囲が有効であるかどうかを確認し、有効でない場合、範囲依存の計算は次回のレイアウト受渡しで再計算される必要があります。- 戻り値:
- 現在の範囲の計算が有効な場合はtrue
-
invalidateRange
protected final void invalidateRange()
現在の範囲に無効のマークを付け、これにより、この範囲に依存するすべてのものが次回のレイアウトで再計算されます。
-
shouldAnimate
protected final boolean shouldAnimate()
指定されたアニメーションを実行する必要があるかどうかをチェックするために使用されます。 アニメーションが有効で、ノードが表示可能かつシーン内にある場合はtrueを返します。- 戻り値:
- アニメーションが発生する場合はtrue
-
requestLayout
public void requestLayout()
子に対する変更によってレイアウトが発生しないように、ここではrequestLayout()呼出しを抑制して何も実行しないようにしています。 レイアウトをリクエストする必要がある場合は、requestAxisLayout()を呼び出します。- オーバーライド:
requestLayout
、クラス:Parent
-
requestAxisLayout
public void requestAxisLayout()
次回のレイアウト受渡しで軸がレイアウトされるようにリクエストします。 これにより、requestLayout()を置き換えます。これは、子の境界の変更などによってレイアウトが発生しないように、requestLayout()が何も実行しないようにオーバーライドされているためです。 レイアウトの更新が実際に必要となる最小限の厳密な一連の変更はAxisによって認識されているため、最適化としてこのようになっています。 したがって、レイアウトは、子が変更されたときではなく、このようなときにリクエストします。
-
invalidateRange
public void invalidateRange(List<T> data)
データが変更され、その範囲が有効でなくなった可能性がある場合に呼び出されます。 これは、isAutoRanging()がtrueを返した場合にのみチャートによって呼び出されます。 自動範囲指定を行っている場合は、次回のレイアウト受渡しでレイアウトがリクエストされ、自動範囲指定が発生します。- パラメータ:
data
- この軸にプロットされる必要があるすべてのデータの現在のセット
-
autoRange
protected abstract Object autoRange(double length)
invalidateRange()メソッドに入力されたデータに基づいて、上部および下部の境界を計算します。 このことによって軸のプロパティが変更され、軸の状態に影響を及ぼすことがないようにする必要があります。 自動範囲指定のすべての結果は、範囲オブジェクトで返される必要があります。 この軸のこの範囲を採用することが決定されている場合は、setRange()に渡されます。- パラメータ:
length
- 画面座標での軸の長さ- 戻り値:
- 範囲の情報(実装に依存)
-
setRange
protected abstract void setRange(Object range, boolean animate)
現在の軸の範囲を指定された範囲に設定するために呼び出されます。 isAnimating()がtrueの場合は、このメソッドによって、範囲が新しい範囲に移動する状態がアニメーション化されます。- パラメータ:
range
- autoRange()から返された範囲オブジェクトanimate
- trueの場合、範囲内の変更をアニメーション化
-
getRange
protected abstract Object getRange()
現在の軸の範囲を取得するために呼び出されます。- 戻り値:
- setRange()およびcalculateTickValues()に渡すことができる範囲オブジェクト
-
getZeroPosition
public abstract double getZeroPosition()
この軸沿いのゼロ行の表示位置を取得します。- 戻り値:
- 表示位置、またはゼロが現在の範囲にない場合はDouble.NaN
-
getDisplayPosition
public abstract double getDisplayPosition(T value)
指定された値に対する、この軸沿いの表示位置を取得します。 値が現在の範囲にない場合、返される値は表示位置の外挿になります。 値がこの軸に対して有効でなく、軸でこのような値をいずれの範囲にも表示できない場合は、Double.NaNが返されます。- パラメータ:
value
- 表示位置を算出するためのデータ値- 戻り値:
- 表示位置、または値が有効でない場合はDouble.NaN
-
getValueForDisplay
public abstract T getValueForDisplay(double displayPosition)
この軸上の指定された表示位置のデータ値を取得します。 軸がCategoryAxisである場合、これは最も近い値になります。- パラメータ:
displayPosition
- この軸上のピクセル位置- 戻り値:
- 指定されたピクセル位置に最も近いデータ値、または軸上に存在しない場合はnull
-
isValueOnAxis
public abstract boolean isValueOnAxis(T value)
指定された値がこの軸上でプロット可能であるかどうかをチェックします。- パラメータ:
value
- 軸上にあるかどうかをチェックする値- 戻り値:
- 指定された値がこの軸上でプロット可能な場合はtrue
-
toNumericValue
public abstract double toNumericValue(T value)
軸のすべての値は、なんらかの数値で表現できる必要があります。 指定されたデータ値の数値を取得します。- パラメータ:
value
- 変換するデータ値- 戻り値:
- 指定されたデータ値の数値
-
toRealValue
public abstract T toRealValue(double value)
軸のすべての値は、なんらかの数値で表現できる必要があります。 指定された数値のデータ値を取得します。- パラメータ:
value
- 変換する数値- 戻り値:
- 指定された数値のデータ値
-
calculateTickValues
protected abstract List<T> calculateTickValues(double length, Object range)
範囲内の各目盛に対するすべてのデータ値のリストを計算します。- パラメータ:
length
- 表示単位の軸の長さrange
- autoRange()から返された範囲オブジェクト- 戻り値:
- 指定された長さの場合、軸沿いの適合する目盛のリスト
-
computePrefHeight
protected double computePrefHeight(double width)
指定された幅に対するこの軸の優先高を計算します。 軸の方向が水平の場合は、目盛の長さ、目盛ラベルの間隔、およびラベルの高さが考慮されます。- オーバーライド:
computePrefHeight
、クラス:Region
- パラメータ:
width
- 推奨される高さがそれに依存する場合に使用する必要がある幅- 戻り値:
- この軸の計算された優先幅
-
computePrefWidth
protected double computePrefWidth(double height)
指定された高さに対するこの軸の優先幅を計算します。 軸の方向が垂直の場合、目盛の長さ、目盛ラベルの間隔、およびラベルの高さが考慮されます。- オーバーライド:
computePrefWidth
、クラス:Region
- パラメータ:
height
- 推奨される幅がそれに依存する場合に使用する必要がある高さ- 戻り値:
- この軸の計算された優先幅
-
tickMarksUpdated
protected void tickMarksUpdated()
レイアウト中に目盛が更新されると呼び出され、対応のために必要なすべてのことをサブクラスが実行できるようにします。
-
layoutChildren
protected void layoutChildren()
レイアウトの受渡し中に、この軸およびそのすべてのコンテンツをレイアウトするために起動されます。- オーバーライド:
layoutChildren
、クラス:Parent
-
getTickMarkLabel
protected abstract String getTickMarkLabel(T value)
指定された値の目盛の文字列ラベル名を取得します。- パラメータ:
value
- 目盛ラベル文字列にフォーマットする値- 戻り値:
- 指定された値のフォーマット済文字列
-
measureTickMarkLabelSize
protected final Dimension2D measureTickMarkLabelSize(String labelText, double rotation)
特定の目盛値のラベルのサイズを測定します。 目盛に設定されたフォントを使用します。- パラメータ:
labelText
- 目盛ラベル・テキストrotation
- テキストの回転- 戻り値:
- 指定された値の目盛ラベルのサイズ
-
measureTickMarkSize
protected final Dimension2D measureTickMarkSize(T value, double rotation)
特定の目盛値のラベルのサイズを測定します。 目盛に設定されたフォントを使用します。- パラメータ:
value
- 目盛の値rotation
- テキストの回転- 戻り値:
- 指定された値の目盛ラベルのサイズ
-
measureTickMarkSize
protected Dimension2D measureTickMarkSize(T value, Object range)
特定の目盛値のラベルのサイズを測定します。 目盛に設定されたフォントを使用します。- パラメータ:
value
- 目盛の値range
- 計算中に使用する範囲- 戻り値:
- 指定された値の目盛ラベルのサイズ
-
getClassCssMetaData
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
- 戻り値:
- このクラスに関連付けられたCssMetaData。スーパークラスのCssMetaDataを含むことがあります。
- 導入されたバージョン:
- JavaFX 8.0
-
getCssMetaData
public List<CssMetaData<? extends Styleable,?>> getCssMetaData()
NodeのCssMetaDataがリフレクションなしでアクセス可能になるように、このメソッドはNode.getClassCssMetaData()
に委任する必要があります。- 定義:
getCssMetaData
、インタフェース:Styleable
- オーバーライド:
getCssMetaData
、クラス:Region
- 戻り値:
- このノードに関連付けられたCssMetaData。スーパークラスのCssMetaDataを含むことがあります。
- 導入されたバージョン:
- JavaFX 8.0
-
-