public final class BasicEditorOverview extends Overview<java.lang.Integer,BasicEditorOverviewMark> implements Disposable
Overview.OrientationPROPERTY_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.
|
boolean |
isShowCaretMark() |
boolean |
isShowEditMark() |
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.
|
void |
setShowCaretMark(boolean showCaretMark)
If set the overview will show a live mark indicating the location of the caret.
|
void |
setShowEditMark(boolean showEditMark)
If set the overview will show a live mark indicating the location of the last edit in the editor.
|
addMark, addOverviewListener, addPropertyChangeListener, getEnd, getGUI, getMarks, getStart, getStatus, removeOverviewListener, removePropertyChangeListener, setEnd, setInfoTipProvider, setStart, setStatus, setThinpublic 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()
Disposabledispose in interface Disposablepublic void rebuild()
Overviewrebuild in class Overview<java.lang.Integer,BasicEditorOverviewMark>public void setShowEditMark(boolean showEditMark)
showEditMark - public boolean isShowEditMark()
public void setShowCaretMark(boolean showCaretMark)
showCaretMark - public boolean isShowCaretMark()
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)
OverviewaddMark in class Overview<java.lang.Integer,BasicEditorOverviewMark>mark - the mark to add