|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MarkerModel
An interface to store the marker information.
Method Summary | |
---|---|
Marker |
addMarker(int start,
int end,
int type,
String tooltip)
Adds a marker. |
void |
addMarkerListener(MarkerListener l)
Add a listener to the list that's notified each time a change to the line marker occurs. |
void |
clearMarkers()
Removes all markers. |
MarkerListener[] |
getMarkerListeners()
Returns an array of all the MarkerListener s added to this MarkerModel with addMarkerListener(). |
List<Marker> |
getMarkers()
Gets the list of markers. |
List<Marker> |
getMarkersAt(int start,
int end)
Gets the list of markers in the specified range. |
boolean |
isAdjusting()
Checks if the marker model is adjusting. |
boolean |
removeMarker(Marker marker)
Removes a previous added marker. |
void |
removeMarkerListener(MarkerListener l)
Remove a listener from the list that's notified each time a change to the line marker occurs. |
void |
setAdjusting(boolean adjusting)
Sets the marker model to adjusting mode. |
void |
updateMarker(Marker marker)
Tells the marker model that this marker has been updated. |
Method Detail |
---|
List<Marker> getMarkers()
List<Marker> getMarkersAt(int start, int end)
start
- the start offsetend
- the end offset
Marker addMarker(int start, int end, int type, String tooltip)
start
- the start offsetend
- the end offsettype
- the type of the markertooltip
- the tooltip of the marker
boolean removeMarker(Marker marker)
marker
- the marker
void updateMarker(Marker marker)
marker
- the markervoid clearMarkers()
boolean isAdjusting()
void setAdjusting(boolean adjusting)
adjusting
- true or false.void addMarkerListener(MarkerListener l)
l
- the LineMarkerListenervoid removeMarkerListener(MarkerListener l)
l
- the LineMarkerListeneraddMarkerListener(com.jidesoft.marker.MarkerListener)
MarkerListener[] getMarkerListeners()
MarkerListener
s added to this MarkerModel with addMarkerListener().
MarkerListener
s added or an empty array if no listeners have been added
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |