|
||||||||||
| 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
edu.rice.cs.drjava.ui.LineEnumRule
public class LineEnumRule
The row header of the DefinitionsPane which displays the line numbers
| 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 | |
|---|---|
protected FontMetrics |
_fm
font metrics for the DefPane's font |
protected Font |
_newFont
custom font for the line numbers |
protected FontMetrics |
_nfm
font metrics for the new font |
protected DefinitionsPane |
_pane
DefinitionsPane that this rule is displayed for |
| 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 | |
|---|---|
LineEnumRule(DefinitionsPane p)
Create a new component to display line numbers along the left of the definitions pane. |
|
| Method Summary | |
|---|---|
Dimension |
getPreferredSize()
Return a new Dimension using our set width, and the height of the definitions pane |
void |
paintComponent(Graphics g)
Paints the line enumeration component. |
void |
updateFont()
Updates the row header's font information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected DefinitionsPane _pane
protected FontMetrics _fm
protected Font _newFont
protected FontMetrics _nfm
| Constructor Detail |
|---|
public LineEnumRule(DefinitionsPane p)
p - the pane to show line numbers on| Method Detail |
|---|
public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void updateFont()
public void paintComponent(Graphics g)
paintComponent in class JComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||