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 intcompareTo(GutterIconInfo other)booleanequals(java.lang.Object o)javax.swing.IcongetIcon()Returns the icon being rendered.intgetMarkedOffset()Returns the offset that is being tracked.java.lang.StringgetToolTip()Returns the tool tip to display when the mouse hovers over this icon.inthashCode()
-
-
-
Method Detail
-
compareTo
public int compareTo(GutterIconInfo other)
- Specified by:
compareToin interfacejava.lang.Comparable<GutterIconInfo>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getIcon
public javax.swing.Icon getIcon()
Description copied from interface:GutterIconInfoReturns the icon being rendered.- Specified by:
getIconin interfaceGutterIconInfo- Returns:
- The icon being rendered.
-
getMarkedOffset
public int getMarkedOffset()
Description copied from interface:GutterIconInfoReturns 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:
getMarkedOffsetin interfaceGutterIconInfo- Returns:
- The offset being tracked.
-
getToolTip
public java.lang.String getToolTip()
Description copied from interface:GutterIconInfoReturns the tool tip to display when the mouse hovers over this icon.- Specified by:
getToolTipin interfaceGutterIconInfo- Returns:
- The tool tip to display.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-