Interface MarkerMutationModel
- All Known Implementing Classes:
DefaultGradientEditorModel
,DefaultMarkerModel
public interface MarkerMutationModel
A callback interface used exclusively by
MarkerBar
as a
mutation model.
The JMarkerBar
class notifies an implementor of the
MutationModel
about the fact, that the user is requesting a
marker to be removed or added.
- Author:
- Michael Baranov
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
addMarkAtPosition
(int position) Called when the user requests a mark to be inserted intoJMarkerBar
.void
removeMarkerAtIndex
(int index) Called when the user requests a mark to be removed fromJMarkerBar
.
-
Method Details
-
removeMarkerAtIndex
void removeMarkerAtIndex(int index) Called when the user requests a mark to be removed fromJMarkerBar
.- Parameters:
index
- index of the mark to be removed.
-
addMarkAtPosition
int addMarkAtPosition(int position) Called when the user requests a mark to be inserted intoJMarkerBar
.- Parameters:
position
- position at which to insert the mark.- Returns:
- index of newly added mark.
-