Class TextEditComponent
java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
eu.svjatoslav.sixth.e3d.gui.GuiComponent
eu.svjatoslav.sixth.e3d.gui.textEditorComponent.TextEditComponent
- All Implemented Interfaces:
KeyboardInputHandler,MouseInteractionController,ClipboardOwner
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintbooleanSelection start and end pointers.Fields inherited from class eu.svjatoslav.sixth.e3d.gui.GuiComponent
viewPanelFields inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
mouseInteractionController -
Constructor Summary
ConstructorsConstructorDescriptionTextEditComponent(Transform transform, ViewPanel viewPanel, Point2D sizeInWorldCoordinates, LookAndFeel lookAndFeel) -
Method Summary
Modifier and TypeMethodDescriptionvoidClear text selection.voidCopies selected text to the clipboard.voidvoidvoidEnsures thatselectionStartis smaller thanselectionEnd.voidgoToLine(int Line) voidinsertText(String txt) booleankeyPressed(KeyEvent event, ViewPanel viewPanel) Parse key presses.voidlostOwnership(Clipboard aClipboard, Transferable aContents) Empty implementation of the ClipboardOwner interface.voidvoidvoidvoidvoidrepaintRow(int rowNumber) voidscroll(int charactersToScroll, int linesToScroll) Scroll full page to given amount of lines or charancters.voidsetClipboardContents(String contents) Place string into system clipboard so that it can be pasted into other applications.voidMethods inherited from class eu.svjatoslav.sixth.e3d.gui.GuiComponent
focusLost, focusReceived, getBorders, getDepth, getHeight, getWidth, hideBorder, keyReleased, mouseClicked, mouseEntered, mouseExitedMethods inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
addShape, addShape, beforeTransformHook, getGroup, getLocation, getOriginalSubShapes, getRelativityTracker, hideGroup, removeGroup, setColor, setGroupForUngrouped, setMouseInteractionController, setTransform, showGroup, transform
-
Field Details
-
scrolledCharacters
public int scrolledCharacters -
scrolledLines
public int scrolledLines -
selecting
public boolean selecting -
selectionStart
Selection start and end pointers. -
selectionEnd
-
cursorLocation
-
-
Constructor Details
-
TextEditComponent
public TextEditComponent(Transform transform, ViewPanel viewPanel, Point2D sizeInWorldCoordinates, LookAndFeel lookAndFeel)
-
-
Method Details
-
clearSelection
public void clearSelection()Clear text selection. -
copyToClipboard
public void copyToClipboard()Copies selected text to the clipboard. -
cutToClipboard
public void cutToClipboard() -
deleteSelection
public void deleteSelection() -
ensureSelectionOrder
public void ensureSelectionOrder()Ensures thatselectionStartis smaller thanselectionEnd. -
getClipboardContents
-
setClipboardContents
Place string into system clipboard so that it can be pasted into other applications. -
goToLine
public void goToLine(int Line) -
insertText
-
keyPressed
Parse key presses.- Specified by:
keyPressedin interfaceKeyboardInputHandler- Overrides:
keyPressedin classGuiComponent- Returns:
trueif view needs to be re-rendered.
-
lostOwnership
Empty implementation of the ClipboardOwner interface.- Specified by:
lostOwnershipin interfaceClipboardOwner
-
markRowDirty
public void markRowDirty() -
pasteFromClipboard
public void pasteFromClipboard() -
processDel
public void processDel() -
repaintPage
public void repaintPage() -
repaintRow
public void repaintRow(int rowNumber) -
scroll
public void scroll(int charactersToScroll, int linesToScroll) Scroll full page to given amount of lines or charancters. -
setText
-