Codota Logo
Gutter.setFoldBackground
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Gutter
private void myMethod () {
Gutter g =
  • Codota IconRTextArea textArea;new Gutter(textArea)
  • Codota IconRTextScrollPane rTextScrollPane;rTextScrollPane.getGutter()
  • Codota IconRTextArea textArea;RSyntaxUtilities.getGutter(textArea)
  • Smart code suggestions by Codota
}
origin: bobbylight/RSyntaxTextArea

@Test
public void testGetFoldBackground() {
  RTextArea textArea = new RTextArea(PLAIN_TEXT);
  Gutter gutter = new Gutter(textArea);
  Color color = Color.red;
  gutter.setFoldBackground(color);
  Assert.assertEquals(color, gutter.getFoldBackground());
  color = Color.green;
  gutter.setFoldBackground(color);
  Assert.assertEquals(color, gutter.getFoldBackground());
}
origin: bobbylight/RSyntaxTextArea

@Test
public void testSetFoldBackground() {
  RTextArea textArea = new RTextArea(PLAIN_TEXT);
  Gutter gutter = new Gutter(textArea);
  Color color = Color.red;
  gutter.setFoldBackground(color);
  Assert.assertEquals(color, gutter.getFoldBackground());
  color = Color.green;
  gutter.setFoldBackground(color);
  Assert.assertEquals(color, gutter.getFoldBackground());
  // Sets to default - not a public value, but also not Color.green.
  gutter.setFoldBackground(null);
  Assert.assertNotNull(gutter.getFoldBackground());
  Assert.assertNotEquals(color, gutter.getFoldBackground());
}
origin: bobbylight/RSyntaxTextArea

gutter.setLineNumberFont(font);
gutter.setFoldIndicatorForeground(foldIndicatorFG);
gutter.setFoldBackground(foldBG);
gutter.setArmedFoldBackground(armedFoldBG);
origin: UNIVALI-LITE/Portugol-Studio

gutter.setLineNumberColor(          new Color(Integer.parseInt(temaEditor.getString("numeros_das_linhas"), 16)));
gutter.setFoldIndicatorForeground(  new Color(Integer.parseInt(temaEditor.getString("dobrador_de_codigo"), 16)));
gutter.setFoldBackground(           new Color(Integer.parseInt(temaEditor.getString("background_editor"), 16)));
origin: bobbylight/RSyntaxTextArea

gutter.setLineNumberFont(font);
gutter.setFoldIndicatorForeground(Color.orange);
gutter.setFoldBackground(Color.orange);
gutter.setArmedFoldBackground(Color.orange);
origin: com.fifesoft/rsyntaxtextarea

gutter.setLineNumberFont(font);
gutter.setFoldIndicatorForeground(foldIndicatorFG);
gutter.setFoldBackground(foldBG);
gutter.setArmedFoldBackground(armedFoldBG);
org.fife.ui.rtextareaGuttersetFoldBackground

Javadoc

Sets the background color used by the (default) fold icons.

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 post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getExternalFilesDir (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now