Codota Logo
Gutter.revalidate
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Gutter
private void myMethod () {
Gutter g =
  • Codota IconRTextArea textArea;new Gutter(textArea)
  • Codota IconRTextScrollPane rTextScrollPane;rTextScrollPane.getGutter()
  • Codota IconRTextArea textArea;RSyntaxUtilities.getGutter(textArea)
  • Smart code suggestions by Codota
}
origin: bobbylight/RSyntaxTextArea

@Override
public void componentResized(java.awt.event.ComponentEvent e) {
  revalidate();
}
origin: bobbylight/RSyntaxTextArea

/**
 * Toggles whether the fold indicator is enabled.
 *
 * @param enabled Whether the fold indicator should be enabled.
 * @see #isFoldIndicatorEnabled()
 */
public void setFoldIndicatorEnabled(boolean enabled) {
  if (foldIndicator!=null) {
    if (enabled) {
      add(foldIndicator, BorderLayout.LINE_END);
    }
    else {
      remove(foldIndicator);
    }
    revalidate();
  }
}
origin: bobbylight/RSyntaxTextArea

/**
 * Toggles whether or not line numbers are visible.
 *
 * @param enabled Whether or not line numbers should be visible.
 * @see #getLineNumbersEnabled()
 */
void setLineNumbersEnabled(boolean enabled) {
  if (lineNumberList!=null) {
    if (enabled) {
      add(lineNumberList);
    }
    else {
      remove(lineNumberList);
    }
    revalidate();
  }
}
origin: bobbylight/RSyntaxTextArea

/**
 * Toggles whether the icon row header (used for breakpoints, bookmarks,
 * etc.) is enabled.
 *
 * @param enabled Whether the icon row header is enabled.
 * @see #isIconRowHeaderEnabled()
 */
void setIconRowHeaderEnabled(boolean enabled) {
  if (iconArea!=null) {
    if (enabled) {
      add(iconArea, BorderLayout.LINE_START);
    }
    else {
      remove(iconArea);
    }
    revalidate();
  }
}
origin: org.codehaus.jtstand/jtstand-editor

public void componentResized(java.awt.event.ComponentEvent e) {
  revalidate();
}
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

@Override
public void componentResized(java.awt.event.ComponentEvent e) {
  revalidate();
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

public void componentResized(java.awt.event.ComponentEvent e) {
  revalidate();
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Toggles whether the fold indicator is enabled.
 *
 * @param enabled Whether the fold indicator should be enabled.
 * @see #isFoldIndicatorEnabled()
 */
public void setFoldIndicatorEnabled(boolean enabled) {
  if (foldIndicator!=null) {
    if (enabled) {
      add(foldIndicator, BorderLayout.LINE_END);
    }
    else {
      remove(foldIndicator);
    }
    revalidate();
  }
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Toggles whether the icon row header (used for breakpoints, bookmarks,
 * etc.) is enabled.
 *
 * @param enabled Whether the icon row header is enabled.
 * @see #isIconRowHeaderEnabled()
 */
void setIconRowHeaderEnabled(boolean enabled) {
  if (iconArea!=null) {
    if (enabled) {
      add(iconArea, BorderLayout.LINE_START);
    }
    else {
      remove(iconArea);
    }
    revalidate();
  }
}
origin: org.codehaus.jtstand/jtstand-editor

/**
 * Toggles whether or not line numbers are visible.
 *
 * @param enabled Whether or not line numbers should be visible.
 * @see #getLineNumbersEnabled()
 */
void setLineNumbersEnabled(boolean enabled) {
  if (lineNumberList!=null) {
    if (enabled) {
      add(lineNumberList);
    }
    else {
      remove(lineNumberList);
    }
    revalidate();
  }
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Toggles whether or not line numbers are visible.
 *
 * @param enabled Whether or not line numbers should be visible.
 * @see #getLineNumbersEnabled()
 */
void setLineNumbersEnabled(boolean enabled) {
  if (lineNumberList!=null) {
    if (enabled) {
      add(lineNumberList);
    }
    else {
      remove(lineNumberList);
    }
    revalidate();
  }
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

/**
 * Toggles whether or not line numbers are visible.
 *
 * @param enabled Whether or not line numbers should be visible.
 * @see #getLineNumbersEnabled()
 */
void setLineNumbersEnabled(boolean enabled) {
  if (lineNumberList!=null) {
    if (enabled) {
      add(lineNumberList);
    }
    else {
      remove(lineNumberList);
    }
    revalidate();
  }
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

/**
 * Toggles whether the icon row header (used for breakpoints, bookmarks,
 * etc.) is enabled.
 *
 * @param enabled Whether the icon row header is enabled.
 * @see #isIconRowHeaderEnabled()
 */
void setIconRowHeaderEnabled(boolean enabled) {
  if (iconArea!=null) {
    if (enabled) {
      add(iconArea, BorderLayout.LINE_START);
    }
    else {
      remove(iconArea);
    }
    revalidate();
  }
}
origin: org.codehaus.jtstand/jtstand-editor

/**
 * Toggles whether the icon row header (used for breakpoints, bookmarks,
 * etc.) is enabled.
 *
 * @param enabled Whether the icon row header is enabled.
 * @see #isIconRowHeaderEnabled()
 */
void setIconRowHeaderEnabled(boolean enabled) {
  if (iconArea!=null) {
    if (enabled) {
      add(iconArea, BorderLayout.LINE_START);
    }
    else {
      remove(iconArea);
    }
    revalidate();
  }
}
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.rtextareaGutterrevalidate

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,
  • repaint

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JFileChooser (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now