Class XYChart.Series<X,Y>

  • Enclosing class:
    XYChart<X,Y>


    public static final class XYChart.Series<X,Y>
    extends Object
    A named series of data items
    Since:
    JavaFX 2.0
    • Constructor Detail

      • Series

        public Series​()
        Construct a empty series
    • Method Detail

      • getChart

        public final XYChart<X,Y> getChart​()
        Gets the value of the property chart.
        Property description:
        Reference to the chart this series belongs to
      • getName

        public final String getName​()
        Gets the value of the property name.
        Property description:
        The user displayable name for this series
      • setName

        public final void setName​(String value)
        Sets the value of the property name.
        Property description:
        The user displayable name for this series
      • getNode

        public final Node getNode​()
        Gets the value of the property node.
        Property description:
        The node to display for this series. This is created by the chart if it uses nodes to represent the whole series. For example line chart uses this for the line but scatter chart does not use it. This node will be set as soon as the series is added to the chart. You can then get it to add mouse listeners etc.
      • setNode

        public final void setNode​(Node value)
        Sets the value of the property node.
        Property description:
        The node to display for this series. This is created by the chart if it uses nodes to represent the whole series. For example line chart uses this for the line but scatter chart does not use it. This node will be set as soon as the series is added to the chart. You can then get it to add mouse listeners etc.
      • nodeProperty

        public final ObjectProperty<Node> nodeProperty​()
        The node to display for this series. This is created by the chart if it uses nodes to represent the whole series. For example line chart uses this for the line but scatter chart does not use it. This node will be set as soon as the series is added to the chart. You can then get it to add mouse listeners etc.
        See Also:
        getNode(), setNode(Node)
      • getData

        public final ObservableList<XYChart.Data<X,Y>> getData​()
        Gets the value of the property data.
        Property description:
        ObservableList of data items that make up this series
      • setData

        public final void setData​(ObservableList<XYChart.Data<X,Y>> value)
        Sets the value of the property data.
        Property description:
        ObservableList of data items that make up this series
      • toString

        public String toString​()
        Returns a string representation of this Series object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this Series object.