|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.editor.CodeEditorMarginSupport
com.jidesoft.editor.CodeEditorRowMarginSupport
public class CodeEditorRowMarginSupport
CodeEditorRowMarginSupport provides the margin support for CodeEditor and its subclasses.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.jidesoft.margin.MarginSupport |
|---|
MarginSupport.ModelChangedCallback, MarginSupport.RepaintCallback |
| Field Summary |
|---|
| Fields inherited from class com.jidesoft.editor.CodeEditorMarginSupport |
|---|
_codeEditor |
| Constructor Summary | |
|---|---|
CodeEditorRowMarginSupport(CodeEditor codeEditor)
|
|
| Method Summary | |
|---|---|
int |
actualRowToVisualRow(int actualRow)
Converts the actual row index as in the model to the visual row index as in the view. |
int |
getBaselineAdjustment()
Gets the baseline adjustment so that the text on the margin aligns properly with the text on the component. |
int |
getRowCount()
Gets the total row count in the component. |
int |
getRowHeight(int row)
Gets the row height. |
int |
positionToRow(int position)
Gets the actual row index corresponding to the position the margin. |
int |
rowToPosition(int row)
Gets the position on the margin corresponding to the actual row index. |
void |
scrollTo(int beginRow,
int endRow,
boolean select)
Selects the rows. |
int |
visualRowToActualRow(int visualRow)
Converts the visual row index as in the view to the actual row index as in the model. |
| Methods inherited from class com.jidesoft.editor.CodeEditorMarginSupport |
|---|
getCodeEditor, getViewPosition, getViewSize, installListeners, uninstallListeners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jidesoft.margin.MarginSupport |
|---|
getViewPosition, getViewSize, installListeners, uninstallListeners |
| Constructor Detail |
|---|
public CodeEditorRowMarginSupport(CodeEditor codeEditor)
| Method Detail |
|---|
public int getRowCount()
RowMarginSupport
getRowCount in interface RowMarginSupportpublic int getRowHeight(int row)
RowMarginSupport
getRowHeight in interface RowMarginSupportrow - the row index.
public int positionToRow(int position)
RowMarginSupport
positionToRow in interface RowMarginSupportposition - the position on the margin.
public int rowToPosition(int row)
RowMarginSupport
rowToPosition in interface RowMarginSupportrow - the actual row index
public void scrollTo(int beginRow,
int endRow,
boolean select)
RowMarginSupport
scrollTo in interface RowMarginSupportbeginRow - the beginning row indexendRow - the end row indexselect - to select the rows. True to select the row. False to scroll the rows visible only without
selecting them.public int visualRowToActualRow(int visualRow)
RowMarginSupport
visualRowToActualRow in interface RowMarginSupportvisualRow - the visual row index in the view.
public int actualRowToVisualRow(int actualRow)
RowMarginSupport
actualRowToVisualRow in interface RowMarginSupportactualRow - the actual row index as in the model.
public int getBaselineAdjustment()
RowMarginSupport
getBaselineAdjustment in interface RowMarginSupport
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||