|
org.netbeans.modules.editor.lib/3 3.23.0 19 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.netbeans.editor.CodeFoldingSideBar
public class CodeFoldingSideBar
Code Folding Side Bar. Component responsible for drawing folding signs and responding on user fold/unfold action.
| Nested Class Summary | |
|---|---|
class |
CodeFoldingSideBar.Mark
Keeps info of visible folding mark |
class |
CodeFoldingSideBar.PaintInfo
This class should be never used by other code; will be made private |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Color |
backColor
Deprecated. Without any replacement. |
protected JTextComponent |
component
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
End angled line, without a sign |
static int |
PAINT_LINE
Vertical line - typically at the end of the screen |
static int |
PAINT_MARK
Normal opening +- marker |
static int |
PAINT_NOOP
Paint operations |
static int |
SINGLE_PAINT_MARK
Single-line marker, both start and end |
protected List<CodeFoldingSideBar.Mark> |
visibleMarks
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CodeFoldingSideBar()
Deprecated. Don't use this constructor, it does nothing! |
|
CodeFoldingSideBar(JTextComponent component)
|
|
| Method Summary | |
|---|---|
protected void |
collectPaintInfos(View rootView,
Fold fold,
Map<Integer,CodeFoldingSideBar.PaintInfo> map,
int level,
int startIndex,
int endIndex)
|
AccessibleContext |
getAccessibleContext()
|
protected Color |
getBackColor()
Deprecated. Without any replacement. |
protected Font |
getColoringFont()
Deprecated. Without any replacement. |
protected Document |
getDocument()
|
protected EditorUI |
getEditorUI()
|
protected Color |
getForeColor()
Deprecated. Without any replacement. |
protected int |
getMarkSize(Graphics g)
|
protected List<? extends CodeFoldingSideBar.PaintInfo> |
getPaintInfo(Rectangle clip)
|
protected void |
paintComponent(Graphics g)
|
protected void |
performAction(CodeFoldingSideBar.Mark mark)
|
void |
update(Graphics g)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public CodeFoldingSideBar()
public CodeFoldingSideBar(JTextComponent component)
| Method Detail |
|---|
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
BadLocationExceptionprotected EditorUI getEditorUI()
protected Document getDocument()
protected void performAction(CodeFoldingSideBar.Mark mark)
protected int getMarkSize(Graphics g)
protected void paintComponent(Graphics g)
paintComponent in class JComponentpublic AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JComponent
|
org.netbeans.modules.editor.lib/3 3.23.0 19 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||