@ParametersAreNonnullByDefault
public class ExtendedCodeAreaCaret
extends java.lang.Object
implements org.exbin.bined.CodeAreaCaret
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExtendedCodeAreaCaret.CaretChangeListener
Interface for changes listener.
|
static class |
ExtendedCodeAreaCaret.CursorRenderingMode
Method for rendering cursor into CodeArea component.
|
static class |
ExtendedCodeAreaCaret.CursorShape
Enumeration of supported cursor shapes.
|
static class |
ExtendedCodeAreaCaret.CursorShapeWidth
Width of the cursor paint object.
|
| Constructor and Description |
|---|
ExtendedCodeAreaCaret(ExtendedCodeAreaCaret.CaretChangeListener changeListener) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBlinkRate() |
org.exbin.bined.CodeAreaCaretPosition |
getCaretPosition() |
int |
getCodeOffset() |
int |
getCursorThickness(ExtendedCodeAreaCaret.CursorShape cursorShape,
int characterWidth,
int lineHeight) |
long |
getDataPosition() |
ExtendedCodeAreaCaret.CursorShape |
getInsertCursorShape() |
ExtendedCodeAreaCaret.CursorShape |
getOverwriteCursorShape() |
ExtendedCodeAreaCaret.CursorRenderingMode |
getRenderingMode() |
org.exbin.bined.CodeAreaSection |
getSection() |
boolean |
isCursorVisible() |
void |
resetBlink() |
void |
setBlinkRate(int blinkRate) |
void |
setCaretPosition(org.exbin.bined.CodeAreaCaretPosition caretPosition) |
void |
setCaretPosition(long dataPosition) |
void |
setCaretPosition(long dataPosition,
int codeOffset) |
void |
setCaretPosition(long dataPosition,
int codeOffset,
org.exbin.bined.CodeAreaSection section) |
void |
setCodeOffset(int codeOffset) |
void |
setDataPosition(long dataPosition) |
void |
setInsertCursorShape(ExtendedCodeAreaCaret.CursorShape insertCursorShape) |
void |
setOverwriteCursorShape(ExtendedCodeAreaCaret.CursorShape overwriteCursorShape) |
void |
setRenderingMode(ExtendedCodeAreaCaret.CursorRenderingMode renderingMode) |
void |
setSection(org.exbin.bined.CodeAreaSection section) |
public ExtendedCodeAreaCaret(ExtendedCodeAreaCaret.CaretChangeListener changeListener)
public int getCursorThickness(ExtendedCodeAreaCaret.CursorShape cursorShape, int characterWidth, int lineHeight)
@Nonnull public org.exbin.bined.CodeAreaCaretPosition getCaretPosition()
getCaretPosition in interface org.exbin.bined.CodeAreaCaretpublic void resetBlink()
public void setCaretPosition(@Nullable
org.exbin.bined.CodeAreaCaretPosition caretPosition)
setCaretPosition in interface org.exbin.bined.CodeAreaCaretpublic void setCaretPosition(long dataPosition)
setCaretPosition in interface org.exbin.bined.CodeAreaCaretpublic void setCaretPosition(long dataPosition,
int codeOffset)
setCaretPosition in interface org.exbin.bined.CodeAreaCaretpublic void setCaretPosition(long dataPosition,
int codeOffset,
org.exbin.bined.CodeAreaSection section)
public long getDataPosition()
public void setDataPosition(long dataPosition)
public int getCodeOffset()
public void setCodeOffset(int codeOffset)
@Nonnull public org.exbin.bined.CodeAreaSection getSection()
getSection in interface org.exbin.bined.CodeAreaCaretpublic void setSection(org.exbin.bined.CodeAreaSection section)
public int getBlinkRate()
public void setBlinkRate(int blinkRate)
@Nonnull public ExtendedCodeAreaCaret.CursorShape getInsertCursorShape()
public void setInsertCursorShape(ExtendedCodeAreaCaret.CursorShape insertCursorShape)
@Nonnull public ExtendedCodeAreaCaret.CursorShape getOverwriteCursorShape()
public void setOverwriteCursorShape(ExtendedCodeAreaCaret.CursorShape overwriteCursorShape)
public boolean isCursorVisible()
@Nonnull public ExtendedCodeAreaCaret.CursorRenderingMode getRenderingMode()
public void setRenderingMode(ExtendedCodeAreaCaret.CursorRenderingMode renderingMode)