|
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.GlyphGutter
public class GlyphGutter
GlyphGutter is component for displaying line numbers and annotation glyph icons. Component also allow to "cycle" through the annotations. It means that if there is more than one annotation on the line, only one of them might be visible. And clicking the special cycling button in the gutter the user can cycle through the annotations.
| Nested Class Summary |
|---|
| 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 |
|---|
| 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 | |
|---|---|
GlyphGutter()
|
|
GlyphGutter(EditorUI eui)
|
|
| Method Summary | |
|---|---|
void |
changedAll()
Repaint whole gutter. |
void |
changedLine(int lineIndex)
Data for the line has changed and the line must be redraw. |
protected void |
checkSize()
Check whether it is not necessary to resize the gutter |
JComponent |
createSideBar(JTextComponent target)
|
AccessibleContext |
getAccessibleContext()
|
protected int |
getDigitCount(int number)
Gets number of digits in the number |
protected int |
getHeightDimension()
|
protected int |
getLineCount()
Return number of lines in the document |
protected int |
getLineNumberWidth()
|
String |
getToolTipText(MouseEvent e)
Get tooltip text for the mouse position |
protected int |
getWidthDimension()
|
protected void |
init()
Do initialization of the glyph gutter |
void |
paintComponent(Graphics g)
Paint the gutter itself |
protected void |
resize()
|
void |
update()
Update colors, fonts, sizes and invalidate itself. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GlyphGutter()
public GlyphGutter(EditorUI eui)
| Method Detail |
|---|
public AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JComponentprotected void init()
public void update()
protected void resize()
protected int getLineCount()
protected int getDigitCount(int number)
protected int getLineNumberWidth()
protected int getWidthDimension()
protected int getHeightDimension()
public void paintComponent(Graphics g)
paintComponent in class JComponentpublic void changedLine(int lineIndex)
changedLine in interface Annotations.AnnotationsListenerpublic void changedAll()
changedAll in interface Annotations.AnnotationsListenerprotected void checkSize()
public String getToolTipText(MouseEvent e)
getToolTipText in class JComponentpublic JComponent createSideBar(JTextComponent target)
createSideBar in interface SideBarFactory
|
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 | |||||||||