|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.marker.DefaultMarkerModel
public class DefaultMarkerModel
Field Summary | |
---|---|
protected boolean |
_isAdjusting
|
protected EventListenerList |
_listenerList
|
protected List<Marker> |
_markers
|
Constructor Summary | |
---|---|
DefaultMarkerModel()
|
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. |
protected Marker |
createMarker(int start,
int end,
int type,
String tooltip)
Creates the Marker. |
protected void |
fireMarkerChanged(Marker marker,
int type,
boolean isAdjusting)
Fires the MarkerEvent. |
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. |
void |
propertyChange(PropertyChangeEvent evt)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<Marker> _markers
protected boolean _isAdjusting
protected EventListenerList _listenerList
Constructor Detail |
---|
public DefaultMarkerModel()
Method Detail |
---|
public List<Marker> getMarkers()
getMarkers
in interface MarkerModel
public List<Marker> getMarkersAt(int start, int end)
getMarkersAt
in interface MarkerModel
start
- the start offsetend
- the end offset
public boolean isAdjusting()
isAdjusting
in interface MarkerModel
public void setAdjusting(boolean adjusting)
setAdjusting
in interface MarkerModel
adjusting
- true or false.public Marker addMarker(int start, int end, int type, String tooltip)
Marker.TYPE_CUSTOM_STYLE
.
addMarker
in interface MarkerModel
start
- the start offsetend
- the end offsettype
- the type of the markertooltip
- the tooltip of the marker
protected Marker createMarker(int start, int end, int type, String tooltip)
start
- the start offsetend
- the end offsettype
- the typetooltip
- the tooltip of the marker
public void clearMarkers()
clearMarkers
in interface MarkerModel
public boolean removeMarker(Marker marker)
removeMarker
in interface MarkerModel
marker
- the marker
public void updateMarker(Marker marker)
updateMarker
in interface MarkerModel
marker
- the markerprotected void fireMarkerChanged(Marker marker, int type, boolean isAdjusting)
marker
- the markertype
- the event typeisAdjusting
- adjusting or notpublic void addMarkerListener(MarkerListener l)
addMarkerListener
in interface MarkerModel
l
- the LineMarkerListenerpublic void removeMarkerListener(MarkerListener l)
removeMarkerListener
in interface MarkerModel
l
- the LineMarkerListeneraddMarkerListener(com.jidesoft.marker.MarkerListener)
public MarkerListener[] getMarkerListeners()
MarkerListener
s added to this MarkerModel with addMarkerListener().
getMarkerListeners
in interface MarkerModel
MarkerListener
s added or an empty array if no listeners have been addedpublic void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |