public class LineGutterPlugin.Column.Mark extends java.lang.Object implements GutterMark
MARK_OPTION_NONE, MARK_OPTION_SHOW_IN_FILE_OVERVIEW_MARGIN, MARK_OPTION_STATIONARY, MARK_OPTION_SUPPORTS_CLICKS| Modifier | Constructor and Description |
|---|---|
protected |
Mark(int line,
int lineStart,
javax.swing.Icon icon,
HighlightStyle highlightStyle,
int markOrder,
int markOptions,
java.awt.Color overviewColor)
Constructs a new Mark.
|
| Modifier and Type | Method and Description |
|---|---|
Gutter |
getGutter()
Fetches the Gutter that this mark has been created in.
|
GutterColumn |
getGutterColumn()
Fetches the
GutterColumn that this mark was created in |
HighlightStyle |
getHighlightStyle()
Fetches the HighlightStyle associated with this GutterMark when
it was created.
|
javax.swing.Icon |
getIcon()
Gets the Icon that is associated with this GutterMark.
|
int |
getLine()
Fetches the line that this GutterMark is currently located on.
|
protected int |
getOffset()
Fetches the offset that this GutterMark is tracking.
|
int |
getOptions()
Fetch the options for this mark.
|
int |
getOrder()
Fetch the ordering that this GutterMark is currently using.
|
int |
getSelectionLength() |
int |
getSelectionStart() |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent mouseEvent) |
java.lang.Object |
getUserData()
Fetch the user data object set by a prior call to
setUserData() for this mark. |
boolean |
isOptionSet(int optionFlag)
Fetch whether the given option is set or not.
|
boolean |
isVisible()
Fetch whether this mark should be visible.
|
protected void |
removeHighlight()
Utility routine to remove the highlight when the mark is
removed.
|
void |
setIcon(javax.swing.Icon icon)
Sets the icon associated with this GutterMark.
|
protected void |
setLine(int newLine)
Changes the line that this GutterMark is tracking.
|
protected void |
setOffset(int offset)
Changes the offset that this GutterMark is tracking.
|
void |
setOptions(int options) |
void |
setUserData(java.lang.Object userData)
Stores an opaque, user-defined object to be associated with this
GutterMark instance. |
void |
setVisible(boolean visible)
Sets whether this mark should be visible or not.
|
protected void |
updateHighlight(LineMap lineMap)
Utility routine to create or update the highlight when
the mark is created or moved.
|
protected Mark(int line,
int lineStart,
javax.swing.Icon icon,
HighlightStyle highlightStyle,
int markOrder,
int markOptions,
java.awt.Color overviewColor)
protected void updateHighlight(LineMap lineMap)
protected void removeHighlight()
protected void setLine(int newLine)
newLine - the new line of the markprotected int getOffset()
protected void setOffset(int offset)
offset - the new offset of the markpublic boolean isOptionSet(int optionFlag)
optionFlag - the option to checkpublic int getOptions()
public void setOptions(int options)
public GutterColumn getGutterColumn()
GutterColumn that this mark was created ingetGutterColumn in interface GutterMarkpublic Gutter getGutter()
getGutter in interface GutterMarkpublic javax.swing.Icon getIcon()
getIcon in interface GutterMarkpublic void setIcon(javax.swing.Icon icon)
setIcon in interface GutterMarkpublic HighlightStyle getHighlightStyle()
getHighlightStyle in interface GutterMarkpublic int getLine()
getLine in interface GutterMarkpublic int getOrder()
getOrder in interface GutterMarkpublic void setVisible(boolean visible)
setVisible in interface GutterMarkvisible - whether this mark should be visiblepublic boolean isVisible()
isVisible in interface GutterMarkpublic java.lang.Object getUserData()
setUserData() for this mark.getUserData in interface GutterMarkpublic void setUserData(java.lang.Object userData)
GutterMark instance. This user-defined object will
be returned by getUserData(). Note that if this
mark is removed, this user object will become garbage-collectable
unless a client holds an additional reference to it.setUserData in interface GutterMarkuserData - the user data object to associate with this markpublic java.lang.String getToolTipText(java.awt.event.MouseEvent mouseEvent)
public int getSelectionStart()
public int getSelectionLength()