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.CodeAreaCaretExtended implementation of code area caret.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceExtendedCodeAreaCaret.CaretChangeListenerInterface for changes listener.static classExtendedCodeAreaCaret.CursorRenderingModeMethod for rendering cursor into CodeArea component.static classExtendedCodeAreaCaret.CursorShapeEnumeration of supported cursor shapes.static classExtendedCodeAreaCaret.CursorShapeWidthWidth 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 intgetBlinkRate()org.exbin.bined.CodeAreaCaretPositiongetCaretPosition()intgetCodeOffset()intgetCursorThickness(ExtendedCodeAreaCaret.CursorShape cursorShape, int characterWidth, int lineHeight)longgetDataPosition()ExtendedCodeAreaCaret.CursorShapegetInsertCursorShape()ExtendedCodeAreaCaret.CursorShapegetOverwriteCursorShape()ExtendedCodeAreaCaret.CursorRenderingModegetRenderingMode()org.exbin.bined.CodeAreaSectiongetSection()booleanisCursorVisible()voidresetBlink()voidsetBlinkRate(int blinkRate)voidsetCaretPosition(long dataPosition)voidsetCaretPosition(long dataPosition, int codeOffset)voidsetCaretPosition(long dataPosition, int codeOffset, org.exbin.bined.CodeAreaSection section)voidsetCaretPosition(org.exbin.bined.CodeAreaCaretPosition caretPosition)voidsetCodeOffset(int codeOffset)voidsetDataPosition(long dataPosition)voidsetInsertCursorShape(ExtendedCodeAreaCaret.CursorShape insertCursorShape)voidsetOverwriteCursorShape(ExtendedCodeAreaCaret.CursorShape overwriteCursorShape)voidsetRenderingMode(ExtendedCodeAreaCaret.CursorRenderingMode renderingMode)voidsetSection(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:
getCaretPositionin interfaceorg.exbin.bined.CodeAreaCaret
-
resetBlink
public void resetBlink()
-
setCaretPosition
public void setCaretPosition(@Nullable org.exbin.bined.CodeAreaCaretPosition caretPosition)- Specified by:
setCaretPositionin interfaceorg.exbin.bined.CodeAreaCaret
-
setCaretPosition
public void setCaretPosition(long dataPosition)
- Specified by:
setCaretPositionin interfaceorg.exbin.bined.CodeAreaCaret
-
setCaretPosition
public void setCaretPosition(long dataPosition, int codeOffset)- Specified by:
setCaretPositionin 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:
getSectionin 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)
-
-