Package org.fife.ui.rtextarea
Class IconRowHeader.GutterIconImpl
- java.lang.Object
-
- org.fife.ui.rtextarea.IconRowHeader.GutterIconImpl
-
- All Implemented Interfaces:
java.lang.Comparable<GutterIconInfo>
,GutterIconInfo
- Enclosing class:
- IconRowHeader
private static class IconRowHeader.GutterIconImpl extends java.lang.Object implements GutterIconInfo, java.lang.Comparable<GutterIconInfo>
Implementation of the icons rendered.
-
-
Constructor Summary
Constructors Constructor Description GutterIconImpl(javax.swing.Icon icon, javax.swing.text.Position pos, java.lang.String toolTip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(GutterIconInfo other)
boolean
equals(java.lang.Object o)
javax.swing.Icon
getIcon()
Returns the icon being rendered.int
getMarkedOffset()
Returns the offset that is being tracked.java.lang.String
getToolTip()
Returns the tool tip to display when the mouse hovers over this icon.int
hashCode()
-
-
-
Method Detail
-
compareTo
public int compareTo(GutterIconInfo other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<GutterIconInfo>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getIcon
public javax.swing.Icon getIcon()
Description copied from interface:GutterIconInfo
Returns the icon being rendered.- Specified by:
getIcon
in interfaceGutterIconInfo
- Returns:
- The icon being rendered.
-
getMarkedOffset
public int getMarkedOffset()
Description copied from interface:GutterIconInfo
Returns the offset that is being tracked. The line of this offset is where the icon is rendered. This offset may change as the user types to track the new location of the marked offset.- Specified by:
getMarkedOffset
in interfaceGutterIconInfo
- Returns:
- The offset being tracked.
-
getToolTip
public java.lang.String getToolTip()
Description copied from interface:GutterIconInfo
Returns the tool tip to display when the mouse hovers over this icon.- Specified by:
getToolTip
in interfaceGutterIconInfo
- Returns:
- The tool tip to display.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-