Tabnine Logo
Gutter.revalidate
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • 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?
  • Top plugins for Android Studio
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