|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.editor.BaseCaret
org.netbeans.editor.ext.ExtCaret
public class ExtCaret
Extended caret implementation
Field Summary | |
---|---|
static String |
HIGHLIGHT_BRACE_LAYER_NAME
Highlight matching brace draw layer name |
static int |
HIGHLIGHT_BRACE_LAYER_VISIBILITY
Highlight matching brace draw layer visibility |
static String |
HIGHLIGHT_ROW_LAYER_NAME
Deprecated. Please use Highlighting SPI instead, for details see Editor Library 2. |
static int |
HIGHLIGHT_ROW_LAYER_VISIBILITY
Deprecated. Please use Highlighting SPI instead, for details see Editor Library 2. |
static int |
MATCH_BRACE_AFTER
Highlight a brace matching character after (at) the caret |
static int |
MATCH_BRACE_BEFORE
Highlight a brace matching character before the caret |
static int |
MATCH_BRACE_EITHER
Highlight a brace matching character either before or after caret; the character before takes precedence. |
Fields inherited from class org.netbeans.editor.BaseCaret |
---|
afterCaretFont, beforeCaretFont, BLOCK_CARET, changeEvent, component, dotChar, flasher, LINE_CARET, listenerList, textBackColor, textForeColor, THIN_LINE_CARET |
Constructor Summary | |
---|---|
ExtCaret()
|
Method Summary | |
---|---|
void |
deinstall(JTextComponent c)
Called when UI is being removed from JTextComponent |
int |
getMatchBraceOffset()
Fetch the match brace offset. |
void |
install(JTextComponent c)
Called when UI is being installed into JTextComponent |
protected void |
modelChanged(BaseDocument oldDoc,
BaseDocument newDoc)
|
void |
mousePressed(MouseEvent evt)
|
void |
mouseReleased(MouseEvent evt)
|
void |
requestMatchBraceUpdateSync()
Signal that the next matching brace update will be immediate without waiting for the brace timer to fire the action. |
void |
setMatchBraceOffset(int offset)
Set the match brace offset. |
void |
settingsChange(SettingsChangeEvent evt)
Called when settings were changed. |
protected void |
update(boolean scrollViewToCaret)
Update the caret's visual position. |
protected void |
updateMatchBrace()
Update the matching brace of the caret. |
Methods inherited from class org.netbeans.editor.BaseCaret |
---|
actionPerformed, addChangeListener, atomicLock, atomicUnlock, changedUpdate, equals, fireStateChanged, foldHierarchyChanged, getBlinkRate, getDot, getEventComponent, getMagicCaretPosition, getMark, insertUpdate, isDragPossible, isSelectionVisible, isVisible, mapDragOperationFromModifiers, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, moveDot, moveDot, paint, paintCustomCaret, propertyChange, removeChangeListener, removeUpdate, setBlinkRate, setDot, setDot, setDot, setDot, setMagicCaretPosition, setSelectionVisible, setVisible, setVisibleImpl |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String HIGHLIGHT_ROW_LAYER_NAME
Using DrawLayer
s has been deprecated and this constant
has no longer any meaning.
public static final int HIGHLIGHT_ROW_LAYER_VISIBILITY
Using DrawLayer
s has been deprecated and this constant
has no longer any meaning.
public static final String HIGHLIGHT_BRACE_LAYER_NAME
public static final int HIGHLIGHT_BRACE_LAYER_VISIBILITY
public static final int MATCH_BRACE_BEFORE
public static final int MATCH_BRACE_AFTER
public static final int MATCH_BRACE_EITHER
Constructor Detail |
---|
public ExtCaret()
Method Detail |
---|
protected void modelChanged(BaseDocument oldDoc, BaseDocument newDoc)
modelChanged
in class BaseCaret
public void settingsChange(SettingsChangeEvent evt)
settingsChange
in interface SettingsChangeListener
settingsChange
in class BaseCaret
public void install(JTextComponent c)
BaseCaret
public void deinstall(JTextComponent c)
BaseCaret
public void setMatchBraceOffset(int offset)
offset
- One of MATCH_BRACE_BEFORE
,
MATCH_BRACE_AFTER
* or MATCH_BRACE_EITHER
.public int getMatchBraceOffset()
protected void updateMatchBrace()
protected void update(boolean scrollViewToCaret)
BaseCaret
scrollViewToCaret
- whether the view of the text component should be
scrolled to the position of the caret.public void requestMatchBraceUpdateSync()
public void mousePressed(MouseEvent evt)
mousePressed
in interface MouseListener
mousePressed
in class BaseCaret
public void mouseReleased(MouseEvent evt)
mouseReleased
in interface MouseListener
mouseReleased
in class BaseCaret
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |