public class CodeAreaCaret
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CodeAreaCaret.CursorRenderingMode |
static class |
CodeAreaCaret.CursorShape |
static class |
CodeAreaCaret.CursorShapeWidth |
Constructor and Description |
---|
CodeAreaCaret(CodeAreaFX codeArea) |
Modifier and Type | Method and Description |
---|---|
int |
getBlinkRate() |
org.exbin.deltahex.CaretPosition |
getCaretPosition() |
int |
getCodeOffset() |
java.awt.Point |
getCursorPoint(int bytesPerLine,
int lineHeight,
int charWidth,
int linesPerRect)
Returns relative cursor position in code area or null if cursor is not
visible.
|
com.sun.javafx.geom.Rectangle |
getCursorRect(int bytesPerLine,
int lineHeight,
int charWidth,
int linesPerRect)
Returns cursor rectangle.
|
int |
getCursorThickness(CodeAreaCaret.CursorShape cursorShape,
int charWidth,
int lineHeight) |
long |
getDataPosition() |
CodeAreaCaret.CursorShape |
getInsertCursorShape() |
CodeAreaCaret.CursorShape |
getOverwriteCursorShape() |
CodeAreaCaret.CursorRenderingMode |
getRenderingMode() |
org.exbin.deltahex.Section |
getSection() |
java.awt.Point |
getShadowCursorPoint(int bytesPerLine,
int lineHeight,
int charWidth,
int linesPerRect)
Returns relative shadow cursor position in code area or null if cursor is
not visible.
|
boolean |
isCursorVisible() |
void |
resetBlink() |
void |
setBlinkRate(int blinkRate) |
void |
setCaretPosition(org.exbin.deltahex.CaretPosition caretPosition) |
void |
setCaretPosition(long dataPosition) |
void |
setCaretPosition(long dataPosition,
int codeOffset) |
void |
setCodeOffset(int codeOffset) |
void |
setInsertCursorShape(CodeAreaCaret.CursorShape insertCursorShape) |
void |
setOverwriteCursorShape(CodeAreaCaret.CursorShape overwriteCursorShape) |
void |
setRenderingMode(CodeAreaCaret.CursorRenderingMode renderingMode) |
void |
setSection(org.exbin.deltahex.Section section) |
public CodeAreaCaret(CodeAreaFX codeArea)
public int getCursorThickness(CodeAreaCaret.CursorShape cursorShape, int charWidth, int lineHeight)
public java.awt.Point getCursorPoint(int bytesPerLine, int lineHeight, int charWidth, int linesPerRect)
bytesPerLine
- bytes per linelineHeight
- line heightcharWidth
- character widthlinesPerRect
- lines per visible rectanglepublic java.awt.Point getShadowCursorPoint(int bytesPerLine, int lineHeight, int charWidth, int linesPerRect)
bytesPerLine
- bytes per linelineHeight
- line heightcharWidth
- character widthlinesPerRect
- lines per visible rectanglepublic com.sun.javafx.geom.Rectangle getCursorRect(int bytesPerLine, int lineHeight, int charWidth, int linesPerRect)
bytesPerLine
- bytes per linelineHeight
- line heightcharWidth
- character widthlinesPerRect
- lines per visible rectanglepublic org.exbin.deltahex.CaretPosition getCaretPosition()
public void resetBlink()
public void setCaretPosition(org.exbin.deltahex.CaretPosition caretPosition)
public long getDataPosition()
public void setCaretPosition(long dataPosition)
public void setCaretPosition(long dataPosition, int codeOffset)
public int getCodeOffset()
public void setCodeOffset(int codeOffset)
public org.exbin.deltahex.Section getSection()
public void setSection(org.exbin.deltahex.Section section)
public int getBlinkRate()
public void setBlinkRate(int blinkRate)
public CodeAreaCaret.CursorShape getInsertCursorShape()
public void setInsertCursorShape(CodeAreaCaret.CursorShape insertCursorShape)
public CodeAreaCaret.CursorShape getOverwriteCursorShape()
public void setOverwriteCursorShape(CodeAreaCaret.CursorShape overwriteCursorShape)
public boolean isCursorVisible()
public CodeAreaCaret.CursorRenderingMode getRenderingMode()
public void setRenderingMode(CodeAreaCaret.CursorRenderingMode renderingMode)