Package org.apache.pivot.charts
Interface ChartViewCategoryListener
-
- All Known Implementing Classes:
ChartViewCategoryListener.Listeners
,ChartViewSkin
public interface ChartViewCategoryListener
Chart view category listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ChartViewCategoryListener.Listeners
Chart view category listener list.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
categoriesRemoved(ChartView chartView, int index, Sequence<ChartView.Category> categories)
Fired when a category is removed from a chart view.void
categoryInserted(ChartView chartView, int index)
Fired when a category is inserted into a chart view.void
categoryKeyChanged(ChartView chartView, int index, java.lang.String previousKey)
Fired when a chart view's category key changes.void
categoryLabelChanged(ChartView chartView, int index, java.lang.String previousLabel)
Fired when a chart view's category label changes.
-
-
-
Method Detail
-
categoryInserted
void categoryInserted(ChartView chartView, int index)
Fired when a category is inserted into a chart view.- Parameters:
chartView
- The chart that is changing.index
- The index of the new category that was inserted.
-
categoriesRemoved
void categoriesRemoved(ChartView chartView, int index, Sequence<ChartView.Category> categories)
Fired when a category is removed from a chart view.- Parameters:
chartView
- The chart that is changing.index
- The index of the first category that was removed.categories
- The list of removed categories.
-
categoryKeyChanged
void categoryKeyChanged(ChartView chartView, int index, java.lang.String previousKey)
Fired when a chart view's category key changes.- Parameters:
chartView
- The chart that is changing.index
- The index of the category whose key changed.previousKey
- Previous value of the changed key.
-
categoryLabelChanged
void categoryLabelChanged(ChartView chartView, int index, java.lang.String previousLabel)
Fired when a chart view's category label changes.- Parameters:
chartView
- The chart that is changing.index
- The index of the category whose label changed.previousLabel
- Previous value of the changed label.
-
-