Type | Property and Description |
---|---|
BooleanProperty |
animated
When true any data changes will be animated.
|
protected <any> |
legend
The node to display as the Legend.
|
<any> |
legendSide
The side of the chart where the legend should be displayed
|
BooleanProperty |
legendVisible
When true the chart will display a legend if the chart implementation supports a legend.
|
StringProperty |
title
The chart title
|
<any> |
titleSide
The side of the chart where the title is displayed
|
Modifier and Type | Class and Description |
---|---|
private static class |
Chart.StyleableProperties |
Modifier and Type | Field and Description |
---|---|
private BooleanProperty |
animated
When true any data changes will be animated.
|
private ChartLayoutAnimator |
animator
Animator for animating stuff on the chart
|
private 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 <any> |
legend
The node to display as the Legend.
|
private <any> |
legendSide
The side of the chart where the legend should be displayed
|
private BooleanProperty |
legendVisible
When true the chart will display a legend if the chart implementation supports a legend.
|
private static int |
MIN_HEIGHT_TO_LEAVE_FOR_CHART_CONTENT |
private static int |
MIN_WIDTH_TO_LEAVE_FOR_CHART_CONTENT |
private StringProperty |
title
The chart title
|
private Label |
titleLabel
Title Label
|
private <any> |
titleSide
The side of the chart where the title is displayed
|
(package private) boolean |
useChartContentMirroring |
Constructor and Description |
---|
Chart()
Creates a new default Chart instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
(package private) void |
animate(KeyFrame... keyFrames)
Play a animation involving the given keyframes.
|
BooleanProperty |
animatedProperty()
When true any data changes will be animated.
|
protected double |
computeMinHeight(double width)
Charts are sized outside in, user tells chart how much space it has and chart draws inside that.
|
protected double |
computeMinWidth(double height)
Charts are sized outside in, user tells chart how much space it has and chart draws inside that.
|
protected double |
computePrefHeight(double width)
Charts are sized outside in, user tells chart how much space it has and chart draws inside that.
|
protected double |
computePrefWidth(double height)
Charts are sized outside in, user tells chart how much space it has and chart draws inside that.
|
boolean |
getAnimated()
Indicates whether data changes will be animated or not.
|
protected <any> |
getChartChildren()
Modifiable and observable list of all content in the chart.
|
static java.util.List<<any>> |
getClassCssMetaData() |
java.util.List<<any>> |
getCssMetaData() |
protected Node |
getLegend()
Gets the value of the property legend.
|
Side |
getLegendSide()
Gets the value of the property legendSide.
|
java.lang.String |
getTitle()
Gets the value of the property title.
|
Side |
getTitleSide()
Gets the value of the property titleSide.
|
boolean |
isLegendVisible()
Gets the value of the property legendVisible.
|
protected abstract void |
layoutChartChildren(double top,
double left,
double width,
double height)
Called to update and layout the chart children available from getChartChildren()
|
protected void |
layoutChildren()
Invoked during the layout pass to layout this chart and all its content.
|
protected <any> |
legendProperty()
The node to display as the Legend.
|
<any> |
legendSideProperty()
The side of the chart where the legend should be displayed
|
BooleanProperty |
legendVisibleProperty()
When true the chart will display a legend if the chart implementation supports a legend.
|
protected void |
requestChartLayout()
Call this when you know something has changed that needs the chart to be relayed out.
|
void |
setAnimated(boolean value)
Sets the value of the property animated.
|
protected void |
setLegend(Node value)
Sets the value of the property legend.
|
void |
setLegendSide(Side value)
Sets the value of the property legendSide.
|
void |
setLegendVisible(boolean value)
Sets the value of the property legendVisible.
|
void |
setTitle(java.lang.String value)
Sets the value of the property title.
|
void |
setTitleSide(Side value)
Sets the value of the property titleSide.
|
protected boolean |
shouldAnimate()
This is used to check if any given animation should run.
|
StringProperty |
titleProperty()
The chart title
|
<any> |
titleSideProperty()
The side of the chart where the title is displayed
|
public final StringProperty titleProperty
getTitle()
,
setTitle(String)
public final <any> titleSideProperty
getTitleSide()
,
setTitleSide(Side)
protected final <any> legendProperty
getLegend()
,
setLegend(Node)
public final BooleanProperty legendVisibleProperty
isLegendVisible()
,
setLegendVisible(boolean)
public final <any> legendSideProperty
getLegendSide()
,
setLegendSide(Side)
public final BooleanProperty animatedProperty
getAnimated()
,
setAnimated(boolean)
private static final int MIN_WIDTH_TO_LEAVE_FOR_CHART_CONTENT
private static final int MIN_HEIGHT_TO_LEAVE_FOR_CHART_CONTENT
private final Label titleLabel
private final Pane chartContent
boolean useChartContentMirroring
private final ChartLayoutAnimator animator
private StringProperty title
private <any> titleSide
private final <any> legend
private final BooleanProperty legendVisible
private <any> legendSide
private BooleanProperty animated
public final java.lang.String getTitle()
public final void setTitle(java.lang.String value)
public final StringProperty titleProperty()
getTitle()
,
setTitle(String)
public final Side getTitleSide()
public final void setTitleSide(Side value)
public final <any> titleSideProperty()
getTitleSide()
,
setTitleSide(Side)
protected final Node getLegend()
protected final void setLegend(Node value)
protected final <any> legendProperty()
getLegend()
,
setLegend(Node)
public final boolean isLegendVisible()
public final void setLegendVisible(boolean value)
public final BooleanProperty legendVisibleProperty()
isLegendVisible()
,
setLegendVisible(boolean)
public final Side getLegendSide()
public final void setLegendSide(Side value)
public final <any> legendSideProperty()
getLegendSide()
,
setLegendSide(Side)
public final boolean getAnimated()
public final void setAnimated(boolean value)
public final BooleanProperty animatedProperty()
getAnimated()
,
setAnimated(boolean)
protected <any> getChartChildren()
void animate(KeyFrame... keyFrames)
keyFrames
- Array of KeyFrames to playprotected void animate(Animation animation)
animation
- The animation to playprotected void requestChartLayout()
protected final boolean shouldAnimate()
protected abstract void layoutChartChildren(double top, double left, double width, double height)
top
- The top offset from the origin to account for any padding on the chart contentleft
- The left offset from the origin to account for any padding on the chart contentwidth
- The width of the area to layout the chart withinheight
- The height of the area to layout the chart withinprotected void layoutChildren()
protected double computeMinHeight(double width)
protected double computeMinWidth(double height)
protected double computePrefWidth(double height)
protected double computePrefHeight(double width)
public static java.util.List<<any>> getClassCssMetaData()
public java.util.List<<any>> getCssMetaData()