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

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

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

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.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.rtextareaGuttersetLayout

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
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Collectors (java.util.stream)
  • Top Vim 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