@Test public void testSetBorderColor() { RTextArea textArea = new RTextArea(PLAIN_TEXT); Gutter gutter = new Gutter(textArea); Color color = Color.red; gutter.setBorderColor(color); Assert.assertEquals(color, gutter.getBorderColor()); color = Color.green; gutter.setBorderColor(color); Assert.assertEquals(color, gutter.getBorderColor()); }
@Test public void testGetBorderColor() { RTextArea textArea = new RTextArea(PLAIN_TEXT); Gutter gutter = new Gutter(textArea); Color color = Color.red; gutter.setBorderColor(color); Assert.assertEquals(color, gutter.getBorderColor()); color = Color.green; gutter.setBorderColor(color); Assert.assertEquals(color, gutter.getBorderColor()); }
if (gutter!=null) { gutter.setBackground(gutterBackgroundColor); gutter.setBorderColor(gutterBorderColor); gutter.setActiveLineRangeColor(activeLineRangeColor); gutter.setIconRowHeaderInheritsGutterBackground(iconRowHeaderInheritsGutterBG);
gutter.setBorderColor( new Color(Integer.parseInt(temaEditor.getString("borda_barra_lateral"), 16))); 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.setBorderColor(Color.orange); gutter.setActiveLineRangeColor(Color.orange); gutter.setIconRowHeaderInheritsGutterBackground(!gutter.getIconRowHeaderInheritsGutterBackground());
@Override public void styleChanged(Style style) { //getGutter().setBackground(style.getBaseValues().getColor(VCodeEditor.LINE_NUMBER_FIELD_COLOR_KEY)); getGutter().setLineNumberColor(style.getBaseValues().getColor(VCodeEditor.LINE_NUMBER_COLOR_KEY)); getGutter().setBorderColor(style.getBaseValues().getColor(VCodeEditor.BORDER_COLOR_KEY)); }
if (gutter!=null) { gutter.setBackground(gutterBackgroundColor); gutter.setBorderColor(gutterBorderColor); gutter.setActiveLineRangeColor(activeLineRangeColor); gutter.setIconRowHeaderInheritsGutterBackground(iconRowHeaderInheritsGutterBG);