|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Instances of implementing classes can have an unlimited number of Markers added to themselves. The Markers can be moved or removed. Each Marker will be located at a specific position so this Markable instance should be able to deal with something like position.
| Method Summary | |
|---|---|
void |
addMarkableListener(MarkableListener listener)
Add a MarkableListener that will be notified of any changes made to this Markable instance |
void |
addMarker(int position,
java.lang.String name)
Add a Marker with the given name to this Markable at the given position |
int |
getMarkerCount()
Get the current number of Markers contained in this Markable |
Marker[] |
getMarkers()
Get all Markers currently assigned to this Markable |
void |
moveMarker(int oldPos,
int newPos)
Move a Marker from the specified position to a new position |
void |
moveMarker(java.lang.String name,
int newPos)
Move the Marker identified by the given name to the specified position |
void |
moveMarker(java.lang.String name,
int oldPos,
int newPos)
Move the Marker identified by the given name and currently located at the given position to the a new position |
void |
moveMarkerIndex(int index,
int newPos)
Move the Marker at the given index to the given new position |
void |
removeMarkableListener(MarkableListener listener)
Remove a MarkableListener |
void |
removeMarker(int position)
Remove a marker from the given position |
void |
removeMarker(int position,
java.lang.String name)
Remove a Marker identified by the given name and located at the given position |
void |
removeMarker(java.lang.String name)
Remove a marker identified by the given name |
void |
removeMarkerIndex(int index)
Remove the Marker at the given index |
| Method Detail |
|---|
void addMarkableListener(MarkableListener listener)
listener - The MarkableListener to add
void addMarker(int position,
java.lang.String name)
position - The position where the Marker should be createdname - The name of the Markerint getMarkerCount()
Marker[] getMarkers()
void moveMarker(int oldPos,
int newPos)
oldPos - The position at which the Marker is currently positionednewPos - The position to which the Marker should be moved
void moveMarker(java.lang.String name,
int newPos)
name - The name of the Marker to movenewPos - The position to which the Marker should be moved
void moveMarker(java.lang.String name,
int oldPos,
int newPos)
name - The name of the Marker to moveoldPos - The position at which the Marker is currently locatednewPos - The position to which the Marker should be moved
void moveMarkerIndex(int index,
int newPos)
index - The zero-based index of the Marker to movenewPos - The position to move the Marker tovoid removeMarkableListener(MarkableListener listener)
listener - The MarkableListener to removevoid removeMarker(int position)
position - The position from where the Marker should be removed
void removeMarker(int position,
java.lang.String name)
position - The position from where the Marker should be removedname - The name of the Marker to removevoid removeMarker(java.lang.String name)
name - The name of the Marker to removevoid removeMarkerIndex(int index)
index - The zero-based index of the Marker to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||