java.lang.Object
javafx.scene.chart.XYChart.Data<X,Y> 
A single data item with data for 2 axis charts
- Since:
- JavaFX 2.0
- 
Property SummaryPropertiesTypePropertyDescriptionfinal ObjectProperty<Object>The generic data value to be plotted in any way the chart needs.final ObjectProperty<Node>The node to display for this data item.final ObjectProperty<X>The generic data value to be plotted on the X axis.final ObjectProperty<Y>The generic data value to be plotted on the Y axis.
- 
Constructor SummaryConstructorsConstructorDescriptionData()Creates an empty XYChart.Data object.Creates an instance of XYChart.Data object and initializes the X,Y data values.Creates an instance of XYChart.Data object and initializes the X,Y data values and extraValue.
- 
Method SummaryModifier and TypeMethodDescriptionfinal ObjectProperty<Object>The generic data value to be plotted in any way the chart needs.final ObjectGets the value of the property extraValue.final NodegetNode()Gets the value of the property node.final XGets the generic data value to be plotted on the X axis.final YGets the generic data value to be plotted on the Y axis.final ObjectProperty<Node>The node to display for this data item.final voidsetExtraValue(Object value) Sets the value of the property extraValue.final voidSets the value of the property node.final voidSets the generic data value to be plotted on the X axis.final voidSets the generic data value to be plotted on the Y axis.toString()Returns a string representation of thisDataobject.final ObjectProperty<X>The generic data value to be plotted on the X axis.final ObjectProperty<Y>The generic data value to be plotted on the Y axis.
- 
Property Details- 
XValueThe generic data value to be plotted on the X axis.- See Also:
 
- 
YValueThe generic data value to be plotted on the Y axis.- See Also:
 
- 
extraValueThe generic data value to be plotted in any way the chart needs. For example used as the radius for BubbleChart.- See Also:
 
- 
nodeThe node to display for this data item. You can either create your own node and set it on the data item before you add the item to the chart. Otherwise the chart will create a node for you that has the default representation for the chart type. This node will be set as soon as the data is added to the chart. You can then get it to add mouse listeners etc. Charts will do their best to position and size the node appropriately, for example on a Line or Scatter chart this node will be positioned centered on the data values position. For a bar chart this is positioned and resized as the bar for this data item.- See Also:
 
 
- 
- 
Constructor Details- 
Datapublic Data()Creates an empty XYChart.Data object.
- 
DataCreates an instance of XYChart.Data object and initializes the X,Y data values.- Parameters:
- xValue- The X axis data value
- yValue- The Y axis data value
 
- 
DataCreates an instance of XYChart.Data object and initializes the X,Y data values and extraValue.- Parameters:
- xValue- The X axis data value.
- yValue- The Y axis data value.
- extraValue- Chart extra value.
 
 
- 
- 
Method Details- 
getXValueGets the generic data value to be plotted on the X axis.- Returns:
- the generic data value to be plotted on the X axis.
 
- 
setXValueSets the generic data value to be plotted on the X axis.- Parameters:
- value- the generic data value to be plotted on the X axis.
 
- 
XValuePropertyThe generic data value to be plotted on the X axis.- See Also:
 
- 
getYValueGets the generic data value to be plotted on the Y axis.- Returns:
- the generic data value to be plotted on the Y axis.
 
- 
setYValueSets the generic data value to be plotted on the Y axis.- Parameters:
- value- the generic data value to be plotted on the Y axis.
 
- 
YValuePropertyThe generic data value to be plotted on the Y axis.- See Also:
 
- 
getExtraValueGets the value of the property extraValue.- Property description:
- The generic data value to be plotted in any way the chart needs. For example used as the radius for BubbleChart.
 
- 
setExtraValueSets the value of the property extraValue.- Property description:
- The generic data value to be plotted in any way the chart needs. For example used as the radius for BubbleChart.
 
- 
extraValuePropertyThe generic data value to be plotted in any way the chart needs. For example used as the radius for BubbleChart.- See Also:
 
- 
getNodeGets the value of the property node.- Property description:
- The node to display for this data item. You can either create your own node and set it on the data item before you add the item to the chart. Otherwise the chart will create a node for you that has the default representation for the chart type. This node will be set as soon as the data is added to the chart. You can then get it to add mouse listeners etc. Charts will do their best to position and size the node appropriately, for example on a Line or Scatter chart this node will be positioned centered on the data values position. For a bar chart this is positioned and resized as the bar for this data item.
 
- 
setNodeSets the value of the property node.- Property description:
- The node to display for this data item. You can either create your own node and set it on the data item before you add the item to the chart. Otherwise the chart will create a node for you that has the default representation for the chart type. This node will be set as soon as the data is added to the chart. You can then get it to add mouse listeners etc. Charts will do their best to position and size the node appropriately, for example on a Line or Scatter chart this node will be positioned centered on the data values position. For a bar chart this is positioned and resized as the bar for this data item.
 
- 
nodePropertyThe node to display for this data item. You can either create your own node and set it on the data item before you add the item to the chart. Otherwise the chart will create a node for you that has the default representation for the chart type. This node will be set as soon as the data is added to the chart. You can then get it to add mouse listeners etc. Charts will do their best to position and size the node appropriately, for example on a Line or Scatter chart this node will be positioned centered on the data values position. For a bar chart this is positioned and resized as the bar for this data item.- See Also:
 
- 
toStringReturns a string representation of thisDataobject.
 
-