Interface IVisualSetListener
public interface IVisualSetListener
Interface of the
VisualSet change listeners. Provides a set of
methods corresponding to it. Used to subscribe to changes in the elements of
a VisualSet or to subscribe to events of changes in its structure.- Author:
- Aleksey Kirillov
-
Method Summary
Modifier and TypeMethodDescriptionvoidonAddElement(int injectionIndex, IAbstractChartVisualElement<?> element) Callback called when a newVisualSet.VisualElementis added to the specified position ofVisualSet.voidonAddElement(IAbstractChartVisualElement<?> element) Callback called when a newVisualSet.VisualElementis added to theVisualSet.voidonRemoveElement(IAbstractChartVisualElement<?> element) Callback called when aVisualSet.VisualElementis removed from theVisualSet.voidonRemoveElements(List<? extends IAbstractChartVisualElement<?>> elements) Callback called when aVisualSet.VisualElementis removed from theVisualSet.voidonSort(List<? extends IAbstractChartVisualElement<?>> elements) Callback called when aAbstractVisualSetContainer's contents is getting sorted.
-
Method Details
-
onAddElement
Callback called when a newVisualSet.VisualElementis added to theVisualSet.- Parameters:
element-VisualSet.VisualElementadded to theVisualSet
-
onAddElement
Callback called when a newVisualSet.VisualElementis added to the specified position ofVisualSet.- Parameters:
element-VisualSet.VisualElementadded to the specified position ofVisualSet
-
onRemoveElement
Callback called when aVisualSet.VisualElementis removed from theVisualSet.- Parameters:
element-VisualSet.VisualElementremoved from theVisualSet
-
onRemoveElements
Callback called when aVisualSet.VisualElementis removed from theVisualSet.- Parameters:
elements-VisualSet.VisualElements removed from theVisualSet
-
onSort
Callback called when aAbstractVisualSetContainer's contents is getting sorted.- Parameters:
elements- list ofVisualSet.VisualElementresulting from sorting
-