- java.lang.Object
-
- javafx.scene.Node
-
- javafx.scene.Parent
-
- javafx.scene.layout.Region
-
- javafx.scene.chart.Chart
-
- すべての実装されたインタフェース:
Styleable
,EventTarget
public abstract class Chart extends Region
すべてのチャートのベース・クラス。 3つの部分(タイトル、凡例およびチャート・コンテンツ)があります。 チャート・コンテンツは、Chartの特定のサブクラスによって移入されます。- 導入されたバージョン:
- JavaFX 2.0
-
-
プロパティのサマリー
プロパティ Type プロパティ 説明 BooleanProperty
animated
trueの場合、データの変更がアニメーション化されます。protected ObjectProperty<Node>
legend
凡例として表示するノード。ObjectProperty<Side>
legendSide
チャートの、凡例を表示する側BooleanProperty
legendVisible
trueに設定すると、チャートの凡例はチャートの実装でサポートされている場合に表示されます。StringProperty
title
チャート・タイトルObjectProperty<Side>
titleSide
チャートの、タイトルを表示する側-
クラス 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
-
-
フィールドのサマリー
-
クラス javafx.scene.Nodeで宣言されたフィールド
BASELINE_OFFSET_SAME_AS_HEIGHT
-
クラス javafx.scene.layout.Regionで宣言されたフィールド
USE_COMPUTED_SIZE、USE_PREF_SIZE
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 Chart()
新しいデフォルトのChartインスタンスを作成します。
-
メソッドのサマリー
すべてのメソッド staticメソッド インスタンス・メソッド 抽象メソッド 具象メソッド 修飾子と型 メソッド 説明 protected void
animate(Animation animation)
特定のアニメーションをそのアニメーションの各フレームで再生します。アニメーションが終了するまでチャートがリレー出力されます。BooleanProperty
animatedProperty()
trueの場合、データの変更がアニメーション化されます。protected double
computeMinHeight(double width)
チャートのサイズ指定は外側から行います。つまり、チャートのスペースの大きさをユーザーが指定し、チャートはその中に描画します。protected double
computeMinWidth(double height)
チャートのサイズ指定は外側から行います。つまり、チャートのスペースの大きさをユーザーが指定し、チャートはその中に描画します。protected double
computePrefHeight(double width)
チャートのサイズ指定は外側から行います。つまり、チャートのスペースの大きさをユーザーが指定し、チャートはその中に描画します。protected double
computePrefWidth(double height)
チャートのサイズ指定は外側から行います。つまり、チャートのスペースの大きさをユーザーが指定し、チャートはその中に描画します。boolean
getAnimated()
データの変更がアニメーション化されるかどうかを示します。protected ObservableList<Node>
getChartChildren()
チャートのすべてのコンテンツの変更可能かつ監視可能なリスト。static List<CssMetaData<? extends Styleable,?>>
getClassCssMetaData()
List<CssMetaData<? extends Styleable,?>>
getCssMetaData()
NodeのCssMetaDataがリフレクションなしでアクセス可能になるように、このメソッドはNode.getClassCssMetaData()
に委任する必要があります。protected Node
getLegend()
プロパティlegendの値を取得します。Side
getLegendSide()
プロパティlegendSideの値を取得します。String
getTitle()
プロパティtitleの値を取得します。Side
getTitleSide()
プロパティtitleSideの値を取得します。boolean
isLegendVisible()
プロパティlegendVisibleの値を取得します。protected abstract void
layoutChartChildren(double top, double left, double width, double height)
getChartChildren()で使用可能なチャートの子を更新およびレイアウトするために呼び出されます。protected void
layoutChildren()
レイアウトの受渡し中に起動され、このチャートおよびそのすべてのコンテンツをレイアウトします。protected ObjectProperty<Node>
legendProperty()
凡例として表示するノード。ObjectProperty<Side>
legendSideProperty()
チャートの、凡例を表示する側BooleanProperty
legendVisibleProperty()
trueに設定すると、チャートの凡例はチャートの実装でサポートされている場合に表示されます。protected void
requestChartLayout()
チャートのレイアウトが必要となるなんらかの変更が行われたことを認識した場合に呼び出します。void
setAnimated(boolean value)
プロパティanimatedの値を設定します。protected void
setLegend(Node value)
プロパティlegendの値を設定します。void
setLegendSide(Side value)
プロパティlegendSideの値を設定します。void
setLegendVisible(boolean value)
プロパティlegendVisibleの値を設定します。void
setTitle(String value)
プロパティtitleの値を設定します。void
setTitleSide(Side value)
プロパティtitleSideの値を設定します。protected boolean
shouldAnimate()
指定されたアニメーションを実行する必要があるかどうかをチェックするために使用されます。StringProperty
titleProperty()
チャート・タイトルObjectProperty<Side>
titleSideProperty()
チャートの、タイトルを表示する側-
クラス 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, 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, lookup, 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, queryAccessibleAttribute, 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, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
-
クラス javafx.scene.layout.Regionで宣言されたメソッド
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, 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, getStyleClass
-
-
-
-
プロパティの詳細
-
title
public final StringProperty titleProperty
チャート・タイトル- 関連項目:
getTitle()
,setTitle(String)
-
titleSide
public final ObjectProperty<Side> titleSideProperty
チャートの、タイトルを表示する側- デフォルト値:
- Side.TOP
- 関連項目:
getTitleSide()
、setTitleSide(Side)
-
legend
protected final ObjectProperty<Node> legendProperty
凡例として表示するノード。 サブクラスでは、凡例として横に表示されるノードをここで設定できます。 凡例が必要でない場合は、nullに設定できます。- 関連項目:
getLegend()
、setLegend(Node)
-
legendVisible
public final BooleanProperty legendVisibleProperty
trueに設定すると、チャートの凡例はチャートの実装でサポートされている場合に表示されます。
-
legendSide
public final ObjectProperty<Side> legendSideProperty
チャートの、凡例を表示する側- デフォルト値:
- Side.BOTTOM
- 関連項目:
getLegendSide()
、setLegendSide(Side)
-
animated
public final BooleanProperty animatedProperty
trueの場合、データの変更がアニメーション化されます。
-
-
メソッドの詳細
-
getTitle
public final String getTitle()
プロパティtitleの値を取得します。- プロパティの説明:
- チャート・タイトル
-
setTitle
public final void setTitle(String value)
プロパティtitleの値を設定します。- プロパティの説明:
- チャート・タイトル
-
titleProperty
public final StringProperty titleProperty()
チャート・タイトル- 関連項目:
getTitle()
,setTitle(String)
-
getTitleSide
public final Side getTitleSide()
プロパティtitleSideの値を取得します。- プロパティの説明:
- チャートの、タイトルを表示する側
- デフォルト値:
- Side.TOP
-
setTitleSide
public final void setTitleSide(Side value)
プロパティtitleSideの値を設定します。- プロパティの説明:
- チャートの、タイトルを表示する側
- デフォルト値:
- Side.TOP
-
titleSideProperty
public final ObjectProperty<Side> titleSideProperty()
チャートの、タイトルを表示する側- デフォルト値:
- Side.TOP
- 関連項目:
getTitleSide()
、setTitleSide(Side)
-
getLegend
protected final Node getLegend()
プロパティlegendの値を取得します。- プロパティの説明:
- 凡例として表示するノード。 サブクラスでは、凡例として横に表示されるノードをここで設定できます。 凡例が必要でない場合は、nullに設定できます。
-
setLegend
protected final void setLegend(Node value)
プロパティlegendの値を設定します。- プロパティの説明:
- 凡例として表示するノード。 サブクラスでは、凡例として横に表示されるノードをここで設定できます。 凡例が必要でない場合は、nullに設定できます。
-
legendProperty
protected final ObjectProperty<Node> legendProperty()
凡例として表示するノード。 サブクラスでは、凡例として横に表示されるノードをここで設定できます。 凡例が必要でない場合は、nullに設定できます。- 関連項目:
getLegend()
、setLegend(Node)
-
isLegendVisible
public final boolean isLegendVisible()
プロパティlegendVisibleの値を取得します。- プロパティの説明:
- trueに設定すると、チャートの凡例はチャートの実装でサポートされている場合に表示されます。
-
setLegendVisible
public final void setLegendVisible(boolean value)
プロパティlegendVisibleの値を設定します。- プロパティの説明:
- trueに設定すると、チャートの凡例はチャートの実装でサポートされている場合に表示されます。
-
legendVisibleProperty
public final BooleanProperty legendVisibleProperty()
trueに設定すると、チャートの凡例はチャートの実装でサポートされている場合に表示されます。
-
getLegendSide
public final Side getLegendSide()
プロパティlegendSideの値を取得します。- プロパティの説明:
- チャートの、凡例を表示する側
- デフォルト値:
- Side.BOTTOM
-
setLegendSide
public final void setLegendSide(Side value)
プロパティlegendSideの値を設定します。- プロパティの説明:
- チャートの、凡例を表示する側
- デフォルト値:
- Side.BOTTOM
-
legendSideProperty
public final ObjectProperty<Side> legendSideProperty()
チャートの、凡例を表示する側- デフォルト値:
- Side.BOTTOM
- 関連項目:
getLegendSide()
、setLegendSide(Side)
-
getAnimated
public final boolean getAnimated()
データの変更がアニメーション化されるかどうかを示します。- 戻り値:
- データの変更がアニメーション化される場合はtrue、そうでない場合はfalse。
-
setAnimated
public final void setAnimated(boolean value)
プロパティanimatedの値を設定します。- プロパティの説明:
- trueの場合、データの変更がアニメーション化されます。
-
animatedProperty
public final BooleanProperty animatedProperty()
trueの場合、データの変更がアニメーション化されます。
-
getChartChildren
protected ObservableList<Node> getChartChildren()
チャートのすべてのコンテンツの変更可能かつ監視可能なリスト。 Chartの実装では、ここで、チャートを描画するために使用するノードを追加する必要があります。 このクラスによって処理される凡例とタイトルは除きます。- 戻り値:
- プロットの子の監視可能リスト
-
animate
protected void animate(Animation animation)
特定のアニメーションをそのアニメーションの各フレームで再生します。アニメーションが終了するまでチャートがリレー出力されます。 このため、チャートにアニメーションを追加するには、データ・モデルにアニメーションを作成し、layoutChartContent()によってデータ・モデルがノードにマップされるときに、アニメーションを指定してこのメソッドを呼び出します。- パラメータ:
animation
- 再生するアニメーション
-
requestChartLayout
protected void requestChartLayout()
チャートのレイアウトが必要となるなんらかの変更が行われたことを認識した場合に呼び出します。
-
shouldAnimate
protected final boolean shouldAnimate()
指定されたアニメーションを実行する必要があるかどうかをチェックするために使用されます。 アニメーションが有効で、ノードが表示可能かつシーン内にある場合はtrueを返します。- 戻り値:
- アニメーションが有効で、ノードが可視でシーン内にある場合はtrue
-
layoutChartChildren
protected abstract void layoutChartChildren(double top, double left, double width, double height)
getChartChildren()で使用可能なチャートの子を更新およびレイアウトするために呼び出されます。- パラメータ:
top
- チャート・コンテンツ上の余白に対応するための、原点からの上部のオフセットleft
- チャート・コンテンツ上の余白に対応するための、原点からの左側のオフセットwidth
- チャートを内部にレイアウトする領域の幅height
- チャートを内部にレイアウトする領域の高さ
-
layoutChildren
protected void layoutChildren()
レイアウトの受渡し中に起動され、このチャートおよびそのすべてのコンテンツをレイアウトします。- オーバーライド:
layoutChildren
、クラス:Parent
-
computeMinHeight
protected double computeMinHeight(double width)
チャートのサイズ指定は外側から行います。つまり、チャートのスペースの大きさをユーザーが指定し、チャートはその中に描画します。 最小高は定数150です。- オーバーライド:
computeMinHeight
、クラス:Region
- パラメータ:
width
- 最小高が幅に依存する場合に使用する必要がある幅- 戻り値:
- このリージョンの計算された最小高
-
computeMinWidth
protected double computeMinWidth(double height)
チャートのサイズ指定は外側から行います。つまり、チャートのスペースの大きさをユーザーが指定し、チャートはその中に描画します。 最小幅は定数200です。- オーバーライド:
computeMinWidth
、クラス:Region
- パラメータ:
height
- 最小幅が高さに依存する場合に使用する必要がある高さ- 戻り値:
- このリージョンの計算された最小幅
-
computePrefWidth
protected double computePrefWidth(double height)
チャートのサイズ指定は外側から行います。つまり、チャートのスペースの大きさをユーザーが指定し、チャートはその中に描画します。 優先幅は定数500です。- オーバーライド:
computePrefWidth
、クラス:Region
- パラメータ:
height
- 推奨される幅がそれに依存する場合に使用する必要がある高さ- 戻り値:
- このリージョンの計算された優先幅
-
computePrefHeight
protected double computePrefHeight(double width)
チャートのサイズ指定は外側から行います。つまり、チャートのスペースの大きさをユーザーが指定し、チャートはその中に描画します。 優先高は定数400です。- オーバーライド:
computePrefHeight
、クラス:Region
- パラメータ:
width
- 推奨される高さがそれに依存する場合に使用する必要がある幅- 戻り値:
- このリージョンの計算された優先高
-
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
-
-