@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()); }
@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()); }
gutter.setLineNumberFont(font); gutter.setFoldIndicatorForeground(foldIndicatorFG); gutter.setFoldBackground(foldBG); gutter.setArmedFoldBackground(armedFoldBG);
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)));
gutter.setLineNumberFont(font); gutter.setFoldIndicatorForeground(Color.orange); gutter.setFoldBackground(Color.orange); gutter.setArmedFoldBackground(Color.orange);
gutter.setLineNumberFont(font); gutter.setFoldIndicatorForeground(foldIndicatorFG); gutter.setFoldBackground(foldBG); gutter.setArmedFoldBackground(armedFoldBG);