| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | SourceCodePanel.
Support for displaying icons and line numbers in row header of scroll pane |
| Modifier and Type | Field and Description |
|---|---|
| private static Icon | |
| private Set | |
| private EditorCommands | |
| private String | |
| private SourceCodePanel. | |
| private int | |
| private static final int | |
| private static final int | |
| private static Icon | |
| private Editor | |
| private JTextArea | |
| private static Icon |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public int | |
| public boolean | |
| public String | |
| public boolean | |
| public void | |
| private Icon | |
| private void | |
| public boolean | |
| public void | requestFocus()
Overrides javax. Requests that this |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| breakpoint | back to summary |
|---|---|
| private static Icon breakpoint | |
| breakpoints | back to summary |
|---|---|
| private Set<Integer> breakpoints | |
| comm | back to summary |
|---|---|
| private EditorCommands comm | |
| filename | back to summary |
|---|---|
| private String filename | |
| header | back to summary |
|---|---|
| private SourceCodePanel. | |
| highlightedLine | back to summary |
|---|---|
| private int highlightedLine | |
| ICON_SIZE | back to summary |
|---|---|
| private static final int ICON_SIZE | |
| LINE_NO_SPACE | back to summary |
|---|---|
| private static final int LINE_NO_SPACE | |
| lowerFrameCurLine | back to summary |
|---|---|
| private static Icon lowerFrameCurLine | |
| parent | back to summary |
|---|---|
| private Editor parent Hides java. | |
| source | back to summary |
|---|---|
| private JTextArea source | |
| topFrameCurLine | back to summary |
|---|---|
| private static Icon topFrameCurLine | |
| SourceCodePanel | back to summary |
|---|---|
| public SourceCodePanel() | |
| clearBreakpointAtLine | back to summary |
|---|---|
| public void clearBreakpointAtLine(int lineNo) | |
| clearBreakpoints | back to summary |
|---|---|
| public void clearBreakpoints() | |
| getCurrentLineNumber | back to summary |
|---|---|
| public int getCurrentLineNumber() Line number is one-based | |
| getShowLineNumbers | back to summary |
|---|---|
| public boolean getShowLineNumbers() | |
| getSourceFileName | back to summary |
|---|---|
| public String getSourceFileName() | |
| hasBreakpointAtLine | back to summary |
|---|---|
| public boolean hasBreakpointAtLine(int lineNo) | |
| highlightLineNumber | back to summary |
|---|---|
| public void highlightLineNumber(int lineNo) Line number is one-based | |
| loadIcon | back to summary |
|---|---|
| private Icon loadIcon(String which) | |
| maybeLoadIcons | back to summary |
|---|---|
| private void maybeLoadIcons() | |
| openFile | back to summary |
|---|---|
| public boolean openFile(String filename) | |
| requestFocus | back to summary |
|---|---|
| public void requestFocus() Overrides javax. Doc from javax. Requests that this
Note that the use of this method is discouraged because
its behavior is platform dependent. Instead we recommend the
use of | |
| setEditorCommands | back to summary |
|---|---|
| public void setEditorCommands(EditorCommands comm, Editor parent) | |
| setFont | back to summary |
|---|---|
| public void setFont(Font f) Overrides javax. Doc from javax. Sets the font for this component. | |
| setShowLineNumbers | back to summary |
|---|---|
| public void setShowLineNumbers(boolean val) | |
| showBreakpointAtLine | back to summary |
|---|---|
| public void showBreakpointAtLine(int lineNo) | |
| showLineNumber | back to summary |
|---|---|
| public void showLineNumber(int lineNo) Line number is one-based | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int | |
| private boolean | |
| private JViewport | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| pack-priv void | |
| public void | |
| public void | |
| pack-priv void |
| initted | back to summary |
|---|---|
| private boolean initted | |
| rowHeight | back to summary |
|---|---|
| private int rowHeight | |
| showLineNumbers | back to summary |
|---|---|
| private boolean showLineNumbers | |
| view | back to summary |
|---|---|
| private JViewport view | |
| width | back to summary |
|---|---|
| private int width Hides java. | |
| RowHeader | back to summary |
|---|---|
| public RowHeader() | |
| getShowLineNumbers | back to summary |
|---|---|
| public boolean getShowLineNumbers() | |
| paint | back to summary |
|---|---|
| public void paint(Graphics g) Overrides javax. Doc from javax. Invoked by Swing to draw components.
Applications should not invoke
This method actually delegates the work of painting to three
protected methods: | |
| recomputeSize | back to summary |
|---|---|
| pack-priv void recomputeSize() | |
| setFont | back to summary |
|---|---|
| public void setFont(Font f) Overrides javax. Doc from javax. Sets the font for this component. | |
| setShowLineNumbers | back to summary |
|---|---|
| public void setShowLineNumbers(boolean val) | |
| setViewport | back to summary |
|---|---|
| pack-priv void setViewport(JViewport view) | |