Package org.exbin.bined.swing.extended
Class ExtendedCodeAreaCaret
- java.lang.Object
-
- org.exbin.bined.swing.extended.ExtendedCodeAreaCaret
-
- All Implemented Interfaces:
org.exbin.bined.CodeAreaCaret
@ParametersAreNonnullByDefault public class ExtendedCodeAreaCaret extends java.lang.Object implements org.exbin.bined.CodeAreaCaret
Extended implementation of code area caret.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 Summary
Constructors Constructor Description ExtendedCodeAreaCaret(ExtendedCodeAreaCaret.CaretChangeListener changeListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(long dataPosition)
void
setCaretPosition(long dataPosition, int codeOffset)
void
setCaretPosition(long dataPosition, int codeOffset, org.exbin.bined.CodeAreaSection section)
void
setCaretPosition(org.exbin.bined.CodeAreaCaretPosition caretPosition)
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)
-
-
-
Constructor Detail
-
ExtendedCodeAreaCaret
public ExtendedCodeAreaCaret(ExtendedCodeAreaCaret.CaretChangeListener changeListener)
-
-
Method Detail
-
getCursorThickness
public int getCursorThickness(ExtendedCodeAreaCaret.CursorShape cursorShape, int characterWidth, int lineHeight)
-
getCaretPosition
@Nonnull public org.exbin.bined.CodeAreaCaretPosition getCaretPosition()
- Specified by:
getCaretPosition
in interfaceorg.exbin.bined.CodeAreaCaret
-
resetBlink
public void resetBlink()
-
setCaretPosition
public void setCaretPosition(@Nullable org.exbin.bined.CodeAreaCaretPosition caretPosition)
- Specified by:
setCaretPosition
in interfaceorg.exbin.bined.CodeAreaCaret
-
setCaretPosition
public void setCaretPosition(long dataPosition)
- Specified by:
setCaretPosition
in interfaceorg.exbin.bined.CodeAreaCaret
-
setCaretPosition
public void setCaretPosition(long dataPosition, int codeOffset)
- Specified by:
setCaretPosition
in interfaceorg.exbin.bined.CodeAreaCaret
-
setCaretPosition
public void setCaretPosition(long dataPosition, int codeOffset, org.exbin.bined.CodeAreaSection section)
-
getDataPosition
public long getDataPosition()
-
setDataPosition
public void setDataPosition(long dataPosition)
-
getCodeOffset
public int getCodeOffset()
-
setCodeOffset
public void setCodeOffset(int codeOffset)
-
getSection
@Nonnull public org.exbin.bined.CodeAreaSection getSection()
- Specified by:
getSection
in interfaceorg.exbin.bined.CodeAreaCaret
-
setSection
public void setSection(org.exbin.bined.CodeAreaSection section)
-
getBlinkRate
public int getBlinkRate()
-
setBlinkRate
public void setBlinkRate(int blinkRate)
-
getInsertCursorShape
@Nonnull public ExtendedCodeAreaCaret.CursorShape getInsertCursorShape()
-
setInsertCursorShape
public void setInsertCursorShape(ExtendedCodeAreaCaret.CursorShape insertCursorShape)
-
getOverwriteCursorShape
@Nonnull public ExtendedCodeAreaCaret.CursorShape getOverwriteCursorShape()
-
setOverwriteCursorShape
public void setOverwriteCursorShape(ExtendedCodeAreaCaret.CursorShape overwriteCursorShape)
-
isCursorVisible
public boolean isCursorVisible()
-
getRenderingMode
@Nonnull public ExtendedCodeAreaCaret.CursorRenderingMode getRenderingMode()
-
setRenderingMode
public void setRenderingMode(ExtendedCodeAreaCaret.CursorRenderingMode renderingMode)
-
-