Tabnine Logo
Gutter.repaint
Code IndexAdd Tabnine to your IDE (free)

How to use
repaint
method
in
org.fife.ui.rtextarea.Gutter

Best Java code snippets using org.fife.ui.rtextarea.Gutter.repaint (Showing top 12 results out of 315)

origin: bobbylight/RSyntaxTextArea

/**
 * Repaints the gutter in a text area's scroll pane, if necessary.
 *
 * @param textArea The text area.
 */
public static void possiblyRepaintGutter(RTextArea textArea) {
  Gutter gutter = RSyntaxUtilities.getGutter(textArea);
  if (gutter!=null) {
    gutter.repaint();
  }
}
origin: bobbylight/RSyntaxTextArea

/**
 * Sets the color for the "border" line.
 *
 * @param color The new color.
 * @see #getBorderColor()
 */
public void setBorderColor(Color color) {
  ((GutterBorder)getBorder()).setColor(color);
  repaint();
}
origin: bobbylight/RSyntaxTextArea

repaint();
origin: bobbylight/RSyntaxTextArea

@Override
public void mouseClicked(MouseEvent e) {
  Point p = e.getPoint();
  int line = rowAtPoint(p);
  RSyntaxTextArea rsta = (RSyntaxTextArea)textArea;
  FoldManager fm = rsta.getFoldManager();
  Fold fold = fm.getFoldForLine(line);
  if (fold!=null) {
    fold.toggleCollapsedState();
    getGutter().repaint();
    textArea.repaint();
  }
}
origin: bobbylight/RSyntaxTextArea

private void handleDocumentEvent(DocumentEvent e, Shape a,
                  ViewFactory f) {
  int n = calculateLineCount();
  if (this.nlines != n) {
    this.nlines = n;
    WrappedSyntaxView.this.preferenceChanged(this, false, true);
    // have to repaint any views after the receiver.
    RSyntaxTextArea textArea = (RSyntaxTextArea)getContainer();
    textArea.repaint();
    // Must also revalidate container so gutter components, such
    // as line numbers, get updated for this line's new height
    Gutter gutter = RSyntaxUtilities.getGutter(textArea);
    if (gutter!=null) {
      gutter.revalidate();
      gutter.repaint();
    }
  }
  else if (a != null) {
    Component c = getContainer();
    Rectangle alloc = (Rectangle) a;
    c.repaint(alloc.x, alloc.y, alloc.width, alloc.height);
  }
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Repaints the gutter in a text area's scroll pane, if necessary.
 *
 * @param textArea The text area.
 */
public static void possiblyRepaintGutter(RTextArea textArea) {
  Gutter gutter = RSyntaxUtilities.getGutter(textArea);
  if (gutter!=null) {
    gutter.repaint();
  }
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Sets the color for the "border" line.
 *
 * @param color The new color.
 * @see #getBorderColor()
 */
public void setBorderColor(Color color) {
  ((GutterBorder)getBorder()).setColor(color);
  repaint();
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

/**
 * Sets the color for the "border" line.
 *
 * @param color The new color.
 * @see #getBorderColor()
 */
public void setBorderColor(Color color) {
  ((GutterBorder)getBorder()).setColor(color);
  repaint();
}
origin: org.codehaus.jtstand/jtstand-editor

/**
 * Sets the color for the "border" line.
 *
 * @param color The new color.
 * @see #getBorderColor()
 */
public void setBorderColor(Color color) {
  ((GutterBorder)getBorder()).setColor(color);
  repaint();
}
origin: com.fifesoft/rsyntaxtextarea

repaint();
origin: com.fifesoft/rsyntaxtextarea

@Override
public void mouseClicked(MouseEvent e) {
  Point p = e.getPoint();
  int line = rowAtPoint(p);
  RSyntaxTextArea rsta = (RSyntaxTextArea)textArea;
  FoldManager fm = rsta.getFoldManager();
  Fold fold = fm.getFoldForLine(line);
  if (fold!=null) {
    fold.toggleCollapsedState();
    getGutter().repaint();
    textArea.repaint();
  }
}
origin: com.fifesoft/rsyntaxtextarea

private void handleDocumentEvent(DocumentEvent e, Shape a,
                  ViewFactory f) {
  int n = calculateLineCount();
  if (this.nlines != n) {
    this.nlines = n;
    WrappedSyntaxView.this.preferenceChanged(this, false, true);
    // have to repaint any views after the receiver.
    RSyntaxTextArea textArea = (RSyntaxTextArea)getContainer();
    textArea.repaint();
    // Must also revalidate container so gutter components, such
    // as line numbers, get updated for this line's new height
    Gutter gutter = RSyntaxUtilities.getGutter(textArea);
    if (gutter!=null) {
      gutter.revalidate();
      gutter.repaint();
    }
  }
  else if (a != null) {
    Component c = getContainer();
    Rectangle alloc = (Rectangle) a;
    c.repaint(alloc.x, alloc.y, alloc.width, alloc.height);
  }
}
org.fife.ui.rtextareaGutterrepaint

Popular methods of Gutter

  • setLineNumberColor
    Sets the color to use to paint line numbers.
  • setBackground
  • <init>
    Constructor.
  • addLineTrackingIcon
    Adds an icon that tracks an offset in the document, and is displayed adjacent to the line numbers. T
  • addOffsetTrackingIcon
    Adds an icon that tracks an offset in the document, and is displayed adjacent to the line numbers. T
  • getBookmarks
    Returns the bookmarks known to this gutter.
  • getLineNumbersEnabled
    Returns true if the line numbers are enabled and visible.
  • isIconRowHeaderEnabled
    Returns whether the icon row header is enabled.
  • setBorderColor
    Sets the color for the "border" line.
  • setIconRowHeaderEnabled
    Toggles whether the icon row header (used for breakpoints, bookmarks, etc.) is enabled.
  • setLineNumberFont
    Sets the font used for line numbers.
  • setLineNumbersEnabled
    Toggles whether or not line numbers are visible.
  • setLineNumberFont,
  • setLineNumbersEnabled,
  • toggleBookmark,
  • add,
  • getBackground,
  • getBorder,
  • getComponent,
  • getComponentCount,
  • remove

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Path (java.nio.file)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Permission (java.security)
    Legacy security code; do not use.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now