Interface MarkerMutationModel
-
- All Known Implementing Classes:
DefaultGradientEditorModel,DefaultMarkerModel
public interface MarkerMutationModelA callback interface used exclusively byas a mutation model.MarkerBarThe
JMarkerBarclass notifies an implementor of theMutationModelabout the fact, that the user is requesting a marker to be removed or added.- Author:
- Michael Baranov
- See Also:
MarkerBar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intaddMarkAtPosition(int position)Called when the user requests a mark to be inserted intoJMarkerBar.voidremoveMarkerAtIndex(int index)Called when the user requests a mark to be removed fromJMarkerBar.
-
-
-
Method Detail
-
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.
-
-