public final class BasicEditorOverview extends Overview<java.lang.Integer,BasicEditorOverviewMark> implements Disposable
Overview.Orientation
PROPERTY_END, PROPERTY_START, PROPERTY_STATUS
Constructor and Description |
---|
BasicEditorOverview(BasicEditorPane editor)
Create an Overview for the given editor.
|
BasicEditorOverview(BasicEditorPane editor,
boolean isDefaultOverviewForEditor)
Create an Overview for the given editor.
|
Modifier and Type | Method and Description |
---|---|
void |
addMark(BasicEditorOverviewMark mark)
Add a mark to the overview.
|
void |
dispose()
Free resources used by this object.
|
void |
rebuild()
Prompt the overview to recalculate and redraw its marks.
|
void |
removeMark(BasicEditorOverviewMark overviewMark)
Remove a mark from the overview.
|
java.util.Collection<BasicEditorOverviewMark> |
removeMarks(java.lang.Object group)
Remove a group of marks from the overview.
|
addMark, addOverviewListener, addPropertyChangeListener, getEnd, getGUI, getMarks, getStart, getStatus, removeOverviewListener, removePropertyChangeListener, setEnd, setInfoTipProvider, setStart, setStatus, setThin
public BasicEditorOverview(BasicEditorPane editor)
editor
- public BasicEditorOverview(BasicEditorPane editor, boolean isDefaultOverviewForEditor)
editor
- isDefaultOverviewForEditor
- true if this is the main overview associated with an editor i.e.
obtainable via EditorProperties.PROPERTY_OVERVIEW.public void dispose()
Disposable
dispose
in interface Disposable
public void rebuild()
Overview
rebuild
in class Overview<java.lang.Integer,BasicEditorOverviewMark>
public java.util.Collection<BasicEditorOverviewMark> removeMarks(java.lang.Object group)
Marks implementing the Disposable
interface will be disposed.
removeMarks
in class Overview<java.lang.Integer,BasicEditorOverviewMark>
group
- the group key that identifies a group of markspublic void removeMark(BasicEditorOverviewMark overviewMark)
Marks implementing the Disposable
interface will be disposed.
removeMark
in class Overview<java.lang.Integer,BasicEditorOverviewMark>
overviewMark
- public void addMark(BasicEditorOverviewMark mark)
Overview
addMark
in class Overview<java.lang.Integer,BasicEditorOverviewMark>
mark
- the mark to add