< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/chart/BubbleChart.java
Print this page
*** 36,45 ****
--- 36,47 ----
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.layout.StackPane;
import javafx.scene.shape.Ellipse;
import javafx.util.Duration;
+ import javafx.scene.AccessibleRole;
+ import javafx.application.Platform;
import com.sun.javafx.charts.Legend.LegendItem;
/**
* Chart type that plots bubbles for the data points in a series. The extra value property of Data is used to represent
*** 231,240 ****
--- 233,245 ----
private Node createBubble(Series<X, Y> series, int seriesIndex, final Data<X,Y> item, int itemIndex) {
Node bubble = item.getNode();
// check if bubble has already been created
if (bubble == null) {
bubble = new StackPane();
+ bubble.setAccessibleRole(AccessibleRole.TEXT);
+ bubble.setAccessibleRoleDescription("Bubble");
+ bubble.focusTraversableProperty().bind(Platform.accessibilityActiveProperty());
item.setNode(bubble);
}
// set bubble styles
bubble.getStyleClass().setAll("chart-bubble", "series" + seriesIndex, "data" + itemIndex,
series.defaultColorStyleClass);
< prev index next >