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

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

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

origin: bobbylight/RSyntaxTextArea

/**
 * Returns <code>true</code> if the line numbers are enabled and visible.
 *
 * @return Whether or not line numbers are visible.
 */
public boolean getLineNumbersEnabled() {
  for (int i=0; i<getComponentCount(); i++) {
    if (getComponent(i)==lineNumberList) {
      return true;
    }
  }
  return false;
}
origin: bobbylight/RSyntaxTextArea

/**
 * Returns whether the fold indicator is enabled.
 *
 * @return Whether the fold indicator is enabled.
 * @see #setFoldIndicatorEnabled(boolean)
 */
public boolean isFoldIndicatorEnabled() {
  for (int i=0; i<getComponentCount(); i++) {
    if (getComponent(i)==foldIndicator) {
      return true;
    }
  }
  return false;
}
origin: bobbylight/RSyntaxTextArea

/**
 * Returns whether the icon row header is enabled.
 *
 * @return Whether the icon row header is enabled.
 */
public boolean isIconRowHeaderEnabled() {
  for (int i=0; i<getComponentCount(); i++) {
    if (getComponent(i)==iconArea) {
      return true;
    }
  }
  return false;
}
origin: bobbylight/RSyntaxTextArea

protected void handleDocumentEvent(DocumentEvent e) {
  for (int i=0; i<getComponentCount(); i++) {
    AbstractGutterComponent agc =
          (AbstractGutterComponent)getComponent(i);
    agc.handleDocumentEvent(e);
  }
}
origin: bobbylight/RSyntaxTextArea

for (int i=0; i<getComponentCount(); i++) {
  AbstractGutterComponent agc =
        (AbstractGutterComponent)getComponent(i);
origin: bobbylight/RSyntaxTextArea

/**
 * Ensures the gutter is visible if it's showing anything.
 */
private void checkGutterVisibility() {
  int count = gutter.getComponentCount();
  if (count==0) {
    if (getRowHeader()!=null && getRowHeader().getView()==gutter) {
      setRowHeaderView(null);
    }
  }
  else {
    if (getRowHeader()==null || getRowHeader().getView()==null) {
      setRowHeaderView(gutter);
    }
  }
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

/**
 * Returns <code>true</code> if the line numbers are enabled and visible.
 *
 * @return Whether or not line numbers are visible.
 */
public boolean getLineNumbersEnabled() {
  for (int i=0; i<getComponentCount(); i++) {
    if (getComponent(i)==lineNumberList) {
      return true;
    }
  }
  return false;
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Returns <code>true</code> if the line numbers are enabled and visible.
 *
 * @return Whether or not line numbers are visible.
 */
public boolean getLineNumbersEnabled() {
  for (int i=0; i<getComponentCount(); i++) {
    if (getComponent(i)==lineNumberList) {
      return true;
    }
  }
  return false;
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Returns whether the icon row header is enabled.
 *
 * @return Whether the icon row header is enabled.
 */
public boolean isIconRowHeaderEnabled() {
  for (int i=0; i<getComponentCount(); i++) {
    if (getComponent(i)==iconArea) {
      return true;
    }
  }
  return false;
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

/**
 * Returns whether the icon row header is enabled.
 *
 * @return Whether the icon row header is enabled.
 */
public boolean isIconRowHeaderEnabled() {
  for (int i=0; i<getComponentCount(); i++) {
    if (getComponent(i)==iconArea) {
      return true;
    }
  }
  return false;
}
origin: org.codehaus.jtstand/jtstand-editor

/**
 * Returns whether the icon row header is enabled.
 *
 * @return Whether the icon row header is enabled.
 */
public boolean isIconRowHeaderEnabled() {
  for (int i=0; i<getComponentCount(); i++) {
    if (getComponent(i)==iconArea) {
      return true;
    }
  }
  return false;
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Returns whether the fold indicator is enabled.
 *
 * @return Whether the fold indicator is enabled.
 * @see #setFoldIndicatorEnabled(boolean)
 */
public boolean isFoldIndicatorEnabled() {
  for (int i=0; i<getComponentCount(); i++) {
    if (getComponent(i)==foldIndicator) {
      return true;
    }
  }
  return false;
}
origin: org.codehaus.jtstand/jtstand-editor

/**
 * Returns <code>true</code> if the line numbers are enabled and visible.
 *
 * @return Whether or not line numbers are visible.
 */
public boolean getLineNumbersEnabled() {
  for (int i=0; i<getComponentCount(); i++) {
    if (getComponent(i)==lineNumberList) {
      return true;
    }
  }
  return false;
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

public void propertyChange(PropertyChangeEvent e) {
  String name = e.getPropertyName();
  // If they change the text area's font, we need to update cell
  // heights to match the font's height.
  if ("font".equals(name) ||
      RSyntaxTextArea.SYNTAX_SCHEME_PROPERTY.equals(name)) {
    for (int i=0; i<getComponentCount(); i++) {
      AbstractGutterComponent agc =
            (AbstractGutterComponent)getComponent(i);
      agc.lineHeightsChanged();
    }
  }
}
origin: org.codehaus.jtstand/jtstand-editor

public void propertyChange(PropertyChangeEvent e) {
  String name = e.getPropertyName();
  // If they change the text area's font, we need to update cell
  // heights to match the font's height.
  if ("font".equals(name) ||
      RSyntaxTextArea.SYNTAX_SCHEME_PROPERTY.equals(name)) {
    for (int i=0; i<getComponentCount(); i++) {
      AbstractGutterComponent agc =
            (AbstractGutterComponent)getComponent(i);
      agc.lineHeightsChanged();
    }
  }
}
origin: org.codehaus.jtstand/jtstand-editor

protected void handleDocumentEvent(DocumentEvent e) {
  for (int i=0; i<getComponentCount(); i++) {
    AbstractGutterComponent agc =
          (AbstractGutterComponent)getComponent(i);
    agc.handleDocumentEvent(e);
  }
}
origin: com.fifesoft/rsyntaxtextarea

protected void handleDocumentEvent(DocumentEvent e) {
  for (int i=0; i<getComponentCount(); i++) {
    AbstractGutterComponent agc =
          (AbstractGutterComponent)getComponent(i);
    agc.handleDocumentEvent(e);
  }
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

protected void handleDocumentEvent(DocumentEvent e) {
  for (int i=0; i<getComponentCount(); i++) {
    AbstractGutterComponent agc =
          (AbstractGutterComponent)getComponent(i);
    agc.handleDocumentEvent(e);
  }
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Ensures the gutter is visible if it's showing anything.
 */
private void checkGutterVisibility() {
  int count = gutter.getComponentCount();
  if (count==0) {
    if (getRowHeader()!=null && getRowHeader().getView()==gutter) {
      setRowHeaderView(null);
    }
  }
  else {
    if (getRowHeader()==null || getRowHeader().getView()==null) {
      setRowHeaderView(gutter);
    }
  }
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

/**
 * Ensures the gutter is visible if it's showing anything.
 */
private void checkGutterVisibility() {
  int count = gutter.getComponentCount();
  if (count==0) {
    if (getRowHeader()!=null && getRowHeader().getView()==gutter) {
      setRowHeaderView(null);
    }
  }
  else {
    if (getRowHeader()==null || getRowHeader().getView()==null) {
      setRowHeaderView(gutter);
    }
  }
}
org.fife.ui.rtextareaGuttergetComponentCount

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best IntelliJ 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