congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Gutter.setTextArea
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: bobbylight/RSyntaxTextArea

/**
 * Sets the view for this scroll pane.  This must be an {@link RTextArea}.
 *
 * @param view The new view.
 * @see #getTextArea()
 */
@Override
public void setViewportView(Component view) {
  RTextArea rtaCandidate = null;
  if (!(view instanceof RTextArea)) {
    rtaCandidate = getFirstRTextAreaDescendant(view);
    if (rtaCandidate==null) {
      throw new IllegalArgumentException(
      "view must be either an RTextArea or a JLayer wrapping one");
    }
  }
  else {
    rtaCandidate = (RTextArea)view;
  }
  super.setViewportView(view);
  if (gutter!=null) {
    gutter.setTextArea(rtaCandidate);
  }
}
origin: bobbylight/RSyntaxTextArea

/**
 * Constructor.
 *
 * @param textArea The parent text area.
 */
public Gutter(RTextArea textArea) {
  listener = new TextAreaListener();
  lineNumberColor = Color.gray;
  lineNumberFont = RTextArea.getDefaultFont();
  lineNumberingStartIndex = 1;
  iconRowHeaderInheritsGutterBackground = false;
  setTextArea(textArea);
  setLayout(new BorderLayout());
  if (this.textArea!=null) {
    // Enable line numbers our first time through if they give us
    // a text area.
    setLineNumbersEnabled(true);
    if (this.textArea instanceof RSyntaxTextArea) {
      RSyntaxTextArea rsta = (RSyntaxTextArea)this.textArea;
      setFoldIndicatorEnabled(rsta.isCodeFoldingEnabled());
    }
  }
  setBorder(new GutterBorder(0, 0, 0, 1)); // Assume ltr
  Color bg = null;
  if (textArea!=null) {
    bg = textArea.getBackground(); // May return null if image bg
  }
  setBackground(bg!=null ? bg : Color.WHITE);
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

/**
 * Sets the view for this scroll pane.  This must be an {@link RTextArea}.
 *
 * @param view The new view.
 * @see #getTextArea()
 */
public void setViewportView(Component view) {
  if (!(view instanceof RTextArea)) {
    throw new IllegalArgumentException("view must be an RTextArea");
  }
  super.setViewportView(view);
  textArea = (RTextArea)view;
  if (gutter!=null) {
    gutter.setTextArea(textArea);
  }
}
origin: org.codehaus.jtstand/jtstand-editor

/**
 * Sets the view for this scroll pane.  This must be an {@link RTextArea}.
 *
 * @param view The new view.
 * @see #getTextArea()
 */
public void setViewportView(Component view) {
  if (!(view instanceof RTextArea)) {
    throw new IllegalArgumentException("view must be an RTextArea");
  }
  super.setViewportView(view);
  textArea = (RTextArea)view;
  if (gutter!=null) {
    gutter.setTextArea(textArea);
  }
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Sets the view for this scroll pane.  This must be an {@link RTextArea}.
 *
 * @param view The new view.
 * @see #getTextArea()
 */
@Override
public void setViewportView(Component view) {
  RTextArea rtaCandidate = null;
  if (!(view instanceof RTextArea)) {
    rtaCandidate = getFirstRTextAreaDescendant(view);
    if (rtaCandidate==null) {
      throw new IllegalArgumentException(
      "view must be either an RTextArea or a JLayer wrapping one");
    }
  }
  else {
    rtaCandidate = (RTextArea)view;
  }
  super.setViewportView(view);
  if (gutter!=null) {
    gutter.setTextArea(rtaCandidate);
  }
}
origin: org.codehaus.jtstand/jtstand-editor

/**
 * Constructor.
 *
 * @param textArea The parent text area.
 */
public Gutter(RTextArea textArea) {
  listener = new TextAreaListener();
  setTextArea(textArea);
  setLayout(new BorderLayout());
  if (this.textArea!=null) {
    // Enable line numbers our first time through if they give us
    // a text area.
    setLineNumbersEnabled(true);
  }
  setBorder(new GutterBorder(0, 0, 0, 1)); // Assume ltr
}
origin: org.nuiton.thirdparty/rsyntaxtextarea

/**
 * Constructor.
 *
 * @param textArea The parent text area.
 */
public Gutter(RTextArea textArea) {
  listener = new TextAreaListener();
  setTextArea(textArea);
  setLayout(new BorderLayout());
  if (this.textArea!=null) {
    // Enable line numbers our first time through if they give us
    // a text area.
    setLineNumbersEnabled(true);
  }
  setBorder(new GutterBorder(0, 0, 0, 1)); // Assume ltr
  Color bg = null;
  if (textArea!=null) {
    bg = textArea.getBackground(); // May return null if image bg
  }
  setBackground(bg!=null ? bg : Color.WHITE);
}
origin: com.fifesoft/rsyntaxtextarea

/**
 * Constructor.
 *
 * @param textArea The parent text area.
 */
public Gutter(RTextArea textArea) {
  listener = new TextAreaListener();
  lineNumberColor = Color.gray;
  lineNumberFont = RTextArea.getDefaultFont();
  lineNumberingStartIndex = 1;
  iconRowHeaderInheritsGutterBackground = false;
  setTextArea(textArea);
  setLayout(new BorderLayout());
  if (this.textArea!=null) {
    // Enable line numbers our first time through if they give us
    // a text area.
    setLineNumbersEnabled(true);
    if (this.textArea instanceof RSyntaxTextArea) {
      RSyntaxTextArea rsta = (RSyntaxTextArea)this.textArea;
      setFoldIndicatorEnabled(rsta.isCodeFoldingEnabled());
    }
  }
  setBorder(new GutterBorder(0, 0, 0, 1)); // Assume ltr
  Color bg = null;
  if (textArea!=null) {
    bg = textArea.getBackground(); // May return null if image bg
  }
  setBackground(bg!=null ? bg : Color.WHITE);
}
org.fife.ui.rtextareaGuttersetTextArea

Javadoc

Sets the text area being displayed. This will clear any tracking icons currently displayed.

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

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • CodeWhisperer alternatives
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