public interface ActiveGutterRenderer extends LineMarkerRenderer, SimpleAccessible
Modifier and Type | Method and Description |
---|---|
default java.awt.Rectangle |
calcBounds(Editor editor,
int lineNum,
java.awt.Rectangle preferredBounds)
Calculates the rectangular bounds enclosing the marker.
|
default boolean |
canDoAction(Editor editor,
java.awt.event.MouseEvent e) |
default boolean |
canDoAction(java.awt.event.MouseEvent e) |
void |
doAction(Editor editor,
java.awt.event.MouseEvent e)
Processes a mouse released event on the marker.
|
default java.lang.String |
getAccessibleName()
Returns a human-readable string that designates the purpose of the object.
|
default java.lang.String |
getAccessibleTooltipText()
Returns the tooltip text or null when the tooltip is not available
|
default java.lang.String |
getTooltipText()
Returns the text of the tooltip displayed when the mouse is over the renderer area.
|
paint
default java.lang.String getTooltipText()
void doAction(Editor editor, java.awt.event.MouseEvent e)
Implementations must extend one of canDoAction(com.intellij.openapi.editor.Editor, java.awt.event.MouseEvent)
methods, otherwise the action will never be called.
editor
- the editor to which the marker belongs.e
- the mouse event instance.default boolean canDoAction(Editor editor, java.awt.event.MouseEvent e)
doAction(Editor, MouseEvent)
should be calleddefault boolean canDoAction(java.awt.event.MouseEvent e)
default java.lang.String getAccessibleName()
SimpleAccessible
getAccessibleName
in interface SimpleAccessible
default java.lang.String getAccessibleTooltipText()
SimpleAccessible
getAccessibleTooltipText
in interface SimpleAccessible
default java.awt.Rectangle calcBounds(Editor editor, int lineNum, java.awt.Rectangle preferredBounds)
editor
- the editor the renderer belongs tolineNum
- the line which the marker should intersectpreferredBounds
- the preferred bounds to take into account