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

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

Best Java code snippets using org.fife.ui.rtextarea.Gutter.setBorder (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.rtextareaGuttersetBorder

Javadoc

Sets the color for the "border" line.

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

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JLabel (javax.swing)
  • JList (javax.swing)
  • Top PhpStorm 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