Class FoldingAwareIconRowHeader

All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class FoldingAwareIconRowHeader extends IconRowHeader
A row header component that takes code folding into account when painting itself.
Version:
1.0
Author:
Robert Futrell
See Also:
  • Field Details

    • textArea

      protected RTextArea textArea
      The text area whose lines we are marking with icons.
    • currentLineCount

      protected int currentLineCount
      The number of lines in the text area.
  • Constructor Details

    • FoldingAwareIconRowHeader

      public FoldingAwareIconRowHeader(RSyntaxTextArea textArea)
      Constructor.
      Parameters:
      textArea - The parent text area.
  • Method Details

    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class IconRowHeader
    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class JComponent
    • getChildViewBounds

      protected static Rectangle getChildViewBounds(View parent, int line, Rectangle editorRect)
      Returns the bounds of a child view as a rectangle, since Views tend to use Shape.
      Parameters:
      parent - The parent view of the child whose bounds we're getting.
      line - The index of the child view.
      editorRect - Returned from the text area's getVisibleEditorRect method.
      Returns:
      The child view's bounds.
    • getGutter

      protected Gutter getGutter()
      Returns the parent Gutter component.
      Returns:
      The parent Gutter.
    • removeNotify

      public void removeNotify()
      Overrides:
      removeNotify in class JComponent