FoldUtilities#createSidebarComponent(javax.swing.text.JTextComponent)
or
FoldUtilities#getFoldingSidebarFactory()
instead. Subclassing CodeFoldingSidebar
is no longer actively supported, though still working.@Deprecated public class CodeFoldingSideBar extends JComponent implements Accessible
Modifier and Type | Class and Description |
---|---|
class |
CodeFoldingSideBar.Mark
Deprecated.
Keeps info of visible folding mark
|
class |
CodeFoldingSideBar.PaintInfo
Deprecated.
This class should be never used by other code; will be made private
|
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected Color |
backColor
Deprecated.
Without any replacement.
|
protected JTextComponent |
component
Deprecated.
This field should be treated as final.
|
protected Font |
font
Deprecated.
Without any replacement.
|
protected Color |
foreColor
Deprecated.
Without any replacement.
|
static int |
PAINT_END_MARK
Deprecated.
End angled line, without a sign
|
static int |
PAINT_LINE
Deprecated.
Vertical line - typically at the end of the screen
|
static int |
PAINT_MARK
Deprecated.
Normal opening +- marker
|
static int |
PAINT_NOOP
Deprecated.
Paint operations
|
static int |
SINGLE_PAINT_MARK
Deprecated.
Single-line marker, both start and end
|
protected List<CodeFoldingSideBar.Mark> |
visibleMarks
Deprecated.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
CodeFoldingSideBar()
Deprecated.
Don't use this constructor, it does nothing!
|
CodeFoldingSideBar(JTextComponent component)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
collectPaintInfos(View rootView,
Fold fold,
Map<Integer,CodeFoldingSideBar.PaintInfo> map,
int level,
int startIndex,
int endIndex)
Deprecated.
|
AccessibleContext |
getAccessibleContext()
Deprecated.
|
protected Color |
getBackColor()
Deprecated.
Without any replacement.
|
protected Font |
getColoringFont()
Deprecated.
Without any replacement.
|
protected Document |
getDocument()
Deprecated.
|
protected EditorUI |
getEditorUI()
Deprecated.
|
protected Color |
getForeColor()
Deprecated.
Without any replacement.
|
protected int |
getMarkSize(Graphics g)
Deprecated.
|
protected List<? extends CodeFoldingSideBar.PaintInfo> |
getPaintInfo(Rectangle clip)
Deprecated.
|
protected void |
paintComponent(Graphics g)
Deprecated.
|
protected void |
performAction(CodeFoldingSideBar.Mark mark)
Deprecated.
|
void |
update(Graphics g)
Deprecated.
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateUI
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected Color backColor
protected Color foreColor
protected Font font
protected JTextComponent component
protected List<CodeFoldingSideBar.Mark> visibleMarks
public static final int PAINT_NOOP
public static final int PAINT_MARK
public static final int PAINT_LINE
public static final int PAINT_END_MARK
public static final int SINGLE_PAINT_MARK
public CodeFoldingSideBar()
public CodeFoldingSideBar(JTextComponent component)
protected Color getBackColor()
protected Color getForeColor()
protected Font getColoringFont()
public void update(Graphics g)
update
in class JComponent
protected void collectPaintInfos(View rootView, Fold fold, Map<Integer,CodeFoldingSideBar.PaintInfo> map, int level, int startIndex, int endIndex) throws BadLocationException
BadLocationException
protected List<? extends CodeFoldingSideBar.PaintInfo> getPaintInfo(Rectangle clip) throws BadLocationException
BadLocationException
protected EditorUI getEditorUI()
protected Document getDocument()
protected void performAction(CodeFoldingSideBar.Mark mark)
protected int getMarkSize(Graphics g)
protected void paintComponent(Graphics g)
paintComponent
in class JComponent
public AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
getAccessibleContext
in class Component