/** * Constructor. * * @param textArea The text area. */ AbstractGutterComponent(RTextArea textArea) { init(); // Called before setTextArea(). setTextArea(textArea); }
@Override protected void init() { super.init(); visibleRect = new Rectangle(); width = 16; addMouseListener(this); activeLineRangeStart = activeLineRangeEnd = -1; setActiveLineRangeColor(null); // Must explicitly set our background color, otherwise we inherit that // of the parent Gutter. updateBackground(); ToolTipManager.sharedInstance().registerComponent(this); }
@Override protected void init() { super.init(); // Initialize currentLine; otherwise, the current line won't start // off as highlighted. currentLine = 0; setLineNumberingStartIndex(1); visibleRect = new Rectangle(); // Must be initialized addMouseListener(this); addMouseMotionListener(this); aaHints = RSyntaxUtilities.getDesktopAntiAliasHints(); }
@Override protected void init() { super.init(); setForeground(DEFAULT_FOREGROUND); setFoldIconBackground(DEFAULT_FOLD_BACKGROUND); collapsedFoldIcon = new FoldIcon(true); expandedFoldIcon = new FoldIcon(false); listener = new Listener(this); visibleRect = new Rectangle(); setShowCollapsedRegionToolTips(true); }
/** * Constructor. * * @param textArea The text area. */ AbstractGutterComponent(RTextArea textArea) { init(); // Called before setTextArea(). setTextArea(textArea); }
@Override protected void init() { super.init(); visibleRect = new Rectangle(); width = 16; addMouseListener(this); activeLineRangeStart = activeLineRangeEnd = -1; setActiveLineRangeColor(null); // Must explicitly set our background color, otherwise we inherit that // of the parent Gutter. updateBackground(); ToolTipManager.sharedInstance().registerComponent(this); }
@Override protected void init() { super.init(); // Initialize currentLine; otherwise, the current line won't start // off as highlighted. currentLine = 0; setLineNumberingStartIndex(1); visibleRect = new Rectangle(); // Must be initialized addMouseListener(this); addMouseMotionListener(this); aaHints = RSyntaxUtilities.getDesktopAntiAliasHints(); }
@Override protected void init() { super.init(); setForeground(DEFAULT_FOREGROUND); setFoldIconBackground(DEFAULT_FOLD_BACKGROUND); collapsedFoldIcon = new FoldIcon(true); expandedFoldIcon = new FoldIcon(false); listener = new Listener(this); visibleRect = new Rectangle(); setShowCollapsedRegionToolTips(true); }