| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private BooleanProperty | animated
When true any data changes will be animated. |
| private final ChartLayoutAnimator | animator
Animator for animating stuff on the chart |
| private final Pane | chartContent
This is the Pane that Chart subclasses use to contain the chart content, It is sized to be inside the chart area leaving space for the title and legend. |
| private final ObjectProperty | legend
The node to display as the Legend. |
| private ObjectProperty | legendSide
The side of the chart where the legend should be displayed |
| private final BooleanProperty | legendVisible
When true the chart will display a legend if the chart implementation supports a legend. |
| private static final int | |
| private static final int | |
| private StringProperty | title
The chart title |
| private final Label | titleLabel
Title Label |
| private ObjectProperty | titleSide
The side of the chart where the title is displayed |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| protected void | |
| public final BooleanProperty | |
| protected double | computeMinHeight(double
the width that should be used if min height depends
on it width)Overrides javafx. Charts are sized outside in, user tells chart how much space it has and chart draws inside that. |
| protected double | computeMinWidth(double
the height that should be used if min width depends
on it height)Overrides javafx. Charts are sized outside in, user tells chart how much space it has and chart draws inside that. |
| protected double | computePrefHeight(double
the width that should be used if preferred height depends
on it width)Overrides javafx. Charts are sized outside in, user tells chart how much space it has and chart draws inside that. |
| protected double | computePrefWidth(double
the height that should be used if preferred width depends
on it height)Overrides javafx. Charts are sized outside in, user tells chart how much space it has and chart draws inside that. |
| public final boolean | Returns: true if data changes will be animated and false otherwise.Indicates whether data changes will be animated or not. |
| protected ObservableList | Returns: Observable list of plot childrenModifiable and observable list of all content in the chart. |
| public static List | Returns: theCssMetaDataHides javafx. Gets the |
| public List | getCssMetaData()
Overrides javafx. Implements javafx. This method should delegate to |
| protected final Node | |
| public final Side | |
| public final String | |
| public final Side | |
| public final boolean | |
| protected abstract void | layoutChartChildren(double
The top offset from the origin to account for any padding on the chart content top, double The left offset from the origin to account for any padding on the chart content left, double The width of the area to layout the chart within width, double The height of the area to layout the chart within height)Called to update and layout the chart children available from getChartChildren() |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout this chart and all its content. |
| protected final ObjectProperty | |
| public final ObjectProperty | |
| public final BooleanProperty | |
| protected void | requestChartLayout()
Call this when you know something has changed that needs the chart to be relayed out. |
| public final void | |
| protected final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| protected final boolean | Returns: true if animation is enabled and the node is visible and in a sceneThis is used to check if any given animation should run. |
| public final StringProperty | |
| public final ObjectProperty |
| animated | back to summary |
|---|---|
| private BooleanProperty animated When true any data changes will be animated. | |
| animator | back to summary |
|---|---|
| private final ChartLayoutAnimator animator Animator for animating stuff on the chart | |
| chartContent | back to summary |
|---|---|
| private final Pane chartContent This is the Pane that Chart subclasses use to contain the chart content, It is sized to be inside the chart area leaving space for the title and legend. | |
| legend | back to summary |
|---|---|
| private final ObjectProperty<Node> legend The node to display as the Legend. Subclasses can set a node here to be displayed on a side as the legend. If no legend is wanted then this can be set to null | |
| legendSide | back to summary |
|---|---|
| private ObjectProperty<Side> legendSide The side of the chart where the legend should be displayed
| |
| legendVisible | back to summary |
|---|---|
| private final BooleanProperty legendVisible When true the chart will display a legend if the chart implementation supports a legend. | |
| MIN_HEIGHT_TO_LEAVE_FOR_CHART_CONTENT | back to summary |
|---|---|
| private static final int MIN_HEIGHT_TO_LEAVE_FOR_CHART_CONTENT | |
| MIN_WIDTH_TO_LEAVE_FOR_CHART_CONTENT | back to summary |
|---|---|
| private static final int MIN_WIDTH_TO_LEAVE_FOR_CHART_CONTENT | |
| title | back to summary |
|---|---|
| private StringProperty title The chart title | |
| titleLabel | back to summary |
|---|---|
| private final Label titleLabel Title Label | |
| titleSide | back to summary |
|---|---|
| private ObjectProperty<Side> titleSide The side of the chart where the title is displayed
| |
| useChartContentMirroring | back to summary |
|---|---|
| pack-priv boolean useChartContentMirroring | |
| Chart | back to summary |
|---|---|
| public Chart() Creates a new default Chart instance. | |
| animate | back to summary |
|---|---|
| pack-priv void animate(KeyFrame... keyFrames) Play a animation involving the given keyframes. On every frame of the animation the chart will be relayed out
| |
| animate | back to summary |
|---|---|
| protected void animate(Animation animation) Play the given animation on every frame of the animation the chart will be relayed out until the animation finishes. So to add a animation to a chart, create a animation on data model, during layoutChartContent() map data model to nodes then call this method with the animation.
| |
| animatedProperty | back to summary |
|---|---|
| public final BooleanProperty animatedProperty() | |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width) Overrides javafx. Charts are sized outside in, user tells chart how much space it has and chart draws inside that. So minimum height is a constant 150.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height) Overrides javafx. Charts are sized outside in, user tells chart how much space it has and chart draws inside that. So minimum width is a constant 200.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Charts are sized outside in, user tells chart how much space it has and chart draws inside that. So preferred height is a constant 400.
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height) Overrides javafx. Charts are sized outside in, user tells chart how much space it has and chart draws inside that. So preferred width is a constant 500.
| |
| getAnimated | back to summary |
|---|---|
| public final boolean getAnimated() Indicates whether data changes will be animated or not.
| |
| getChartChildren | back to summary |
|---|---|
| protected ObservableList Modifiable and observable list of all content in the chart. This is where implementations of Chart should add any nodes they use to draw their chart. This excludes the legend and title which are looked after by this class.
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Gets the
| |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Implements javafx. Doc from javafx. This method should delegate to
| |
| getLegend | back to summary |
|---|---|
| protected final Node getLegend() | |
| getLegendSide | back to summary |
|---|---|
| public final Side getLegendSide() | |
| getTitle | back to summary |
|---|---|
| public final String getTitle() | |
| getTitleSide | back to summary |
|---|---|
| public final Side getTitleSide() | |
| isLegendVisible | back to summary |
|---|---|
| public final boolean isLegendVisible() | |
| layoutChartChildren | back to summary |
|---|---|
| protected abstract void layoutChartChildren(double top, double left, double width, double height) Called to update and layout the chart children available from getChartChildren()
| |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Invoked during the layout pass to layout this chart and all its content.
| |
| legendProperty | back to summary |
|---|---|
| protected final ObjectProperty | |
| legendSideProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| legendVisibleProperty | back to summary |
|---|---|
| public final BooleanProperty legendVisibleProperty() | |
| requestChartLayout | back to summary |
|---|---|
| protected void requestChartLayout() Call this when you know something has changed that needs the chart to be relayed out. | |
| setAnimated | back to summary |
|---|---|
| public final void setAnimated(boolean value) | |
| setLegend | back to summary |
|---|---|
| protected final void setLegend(Node value) | |
| setLegendSide | back to summary |
|---|---|
| public final void setLegendSide(Side value) | |
| setLegendVisible | back to summary |
|---|---|
| public final void setLegendVisible(boolean value) | |
| setTitle | back to summary |
|---|---|
| public final void setTitle(String value) | |
| setTitleSide | back to summary |
|---|---|
| public final void setTitleSide(Side value) | |
| shouldAnimate | back to summary |
|---|---|
| protected final boolean shouldAnimate() This is used to check if any given animation should run. It returns true if animation is enabled and the node is visible and in a scene.
| |
| titleProperty | back to summary |
|---|---|
| public final StringProperty titleProperty() | |
| titleSideProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final List | |
| private static final CssMetaData |
| Access | Constructor and Description |
|---|---|
| private |
| LEGEND_SIDE | back to summary |
|---|---|
| private static final CssMetaData<Chart, Side> LEGEND_SIDE | |
| LEGEND_VISIBLE | back to summary |
|---|---|
| private static final CssMetaData<Chart, Boolean> LEGEND_VISIBLE | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| TITLE_SIDE | back to summary |
|---|---|
| private static final CssMetaData<Chart, Side> TITLE_SIDE | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |