Class IconRowHeader.GutterIconImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.Icon icon  
      private javax.swing.text.Position pos  
      private java.lang.String toolTip  
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • icon

        private javax.swing.Icon icon
      • pos

        private javax.swing.text.Position pos
      • toolTip

        private java.lang.String toolTip
    • Constructor Detail

      • GutterIconImpl

        GutterIconImpl​(javax.swing.Icon icon,
                       javax.swing.text.Position pos,
                       java.lang.String toolTip)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getIcon

        public javax.swing.Icon getIcon()
        Description copied from interface: GutterIconInfo
        Returns the icon being rendered.
        Specified by:
        getIcon in interface GutterIconInfo
        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 interface GutterIconInfo
        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 interface GutterIconInfo
        Returns:
        The tool tip to display.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object