54 import javafx.collections.ListChangeListener.Change;
55 import javafx.collections.ObservableList;
56 import javafx.css.CssMetaData;
57 import javafx.css.Styleable;
58 import javafx.css.StyleableBooleanProperty;
59 import javafx.css.StyleableProperty;
60 import javafx.geometry.Orientation;
61 import javafx.geometry.Side;
62 import javafx.scene.Group;
63 import javafx.scene.Node;
64 import javafx.scene.layout.Region;
65 import javafx.scene.shape.ClosePath;
66 import javafx.scene.shape.Line;
67 import javafx.scene.shape.LineTo;
68 import javafx.scene.shape.MoveTo;
69 import javafx.scene.shape.Path;
70 import javafx.scene.shape.Rectangle;
71 import javafx.util.Duration;
72
73 import com.sun.javafx.collections.NonIterableChange;
74 import com.sun.javafx.css.converters.BooleanConverter;
75
76
77
78 /**
79 * Chart base class for all 2 axis charts. It is responsible for drawing the two
80 * axes and the plot content. It contains a list of all content in the plot and
81 * implementations of XYChart can add nodes to this list that need to be rendered.
82 *
83 * <p>It is possible to install Tooltips on data items / symbols.
84 * For example the following code snippet installs Tooltip on the 1st data item.
85 *
86 * <pre><code>
87 * XYChart.Data item = ( XYChart.Data)series.getData().get(0);
88 * Tooltip.install(item.getNode(), new Tooltip("Symbol-0"));
89 * </code></pre>
90 *
91 * @since JavaFX 2.0
92 */
93 public abstract class XYChart<X,Y> extends Chart {
94
|
54 import javafx.collections.ListChangeListener.Change;
55 import javafx.collections.ObservableList;
56 import javafx.css.CssMetaData;
57 import javafx.css.Styleable;
58 import javafx.css.StyleableBooleanProperty;
59 import javafx.css.StyleableProperty;
60 import javafx.geometry.Orientation;
61 import javafx.geometry.Side;
62 import javafx.scene.Group;
63 import javafx.scene.Node;
64 import javafx.scene.layout.Region;
65 import javafx.scene.shape.ClosePath;
66 import javafx.scene.shape.Line;
67 import javafx.scene.shape.LineTo;
68 import javafx.scene.shape.MoveTo;
69 import javafx.scene.shape.Path;
70 import javafx.scene.shape.Rectangle;
71 import javafx.util.Duration;
72
73 import com.sun.javafx.collections.NonIterableChange;
74 import javafx.css.converter.BooleanConverter;
75
76
77
78 /**
79 * Chart base class for all 2 axis charts. It is responsible for drawing the two
80 * axes and the plot content. It contains a list of all content in the plot and
81 * implementations of XYChart can add nodes to this list that need to be rendered.
82 *
83 * <p>It is possible to install Tooltips on data items / symbols.
84 * For example the following code snippet installs Tooltip on the 1st data item.
85 *
86 * <pre><code>
87 * XYChart.Data item = ( XYChart.Data)series.getData().get(0);
88 * Tooltip.install(item.getNode(), new Tooltip("Symbol-0"));
89 * </code></pre>
90 *
91 * @since JavaFX 2.0
92 */
93 public abstract class XYChart<X,Y> extends Chart {
94
|