Class TextComponent
- java.lang.Object
- 
- java.awt.Component
- 
- java.awt.Container
- 
- javax.swing.JComponent
- 
- com.inductiveautomation.snap.swing.TextComponent
 
 
 
 
- 
- All Implemented Interfaces:
- RMTypes,- TextTypes,- java.awt.image.ImageObserver,- java.awt.MenuContainer,- java.beans.PropertyChangeListener,- java.io.Serializable,- java.lang.CharSequence,- java.util.EventListener
 - Direct Known Subclasses:
- TextArea
 
 public class TextComponent extends javax.swing.JComponent implements java.beans.PropertyChangeListener, TextTypes, java.lang.CharSequence A base class for using Snap Text in Swing.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classTextComponent.TextSelectionA class to act as text selection.- 
Nested classes/interfaces inherited from class javax.swing.JComponentjavax.swing.JComponent.AccessibleJComponent
 - 
Nested classes/interfaces inherited from class java.awt.Containerjava.awt.Container.AccessibleAWTContainer
 - 
Nested classes/interfaces inherited from class java.awt.Componentjava.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 - 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 - 
Nested classes/interfaces inherited from interface com.inductiveautomation.snap.text.TextTypesTextTypes.TabType
 
- 
 - 
Field Summary- 
Fields inherited from class javax.swing.JComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 - 
Fields inherited from class java.awt.ComponentaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 - 
Fields inherited from interface java.awt.image.ImageObserverABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 - 
Fields inherited from interface com.inductiveautomation.snap.text.TextTypesTEXT_CHAR_SPACING, TEXT_COLOR, TEXT_FONT, TEXT_FORMAT, TEXT_LINK, TEXT_OUTLINE, TEXT_SCRIPTING, TEXT_UNDERLINE
 
- 
 - 
Constructor SummaryConstructors Constructor Description TextComponent()Creates a new TextComponent.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublecalcPrefHeight()Returns the height needed to display all characters.protected doublecalcPrefWidth()Returns the width needed to display all characters.charcharAt(int anIndex)Returns the individual character at given index.voidcopy()Copies the current selection onto the clipboard.protected TextcreateText()Creates a new Text.voidcut()Copies the current selection onto the clip board, then deletes the current selection.voiddelete()Deletes the current selection.voiddelete(int aStart, int anEnd, boolean doUpdateSel)Deletes the given range of chars.voiddeleteBackward()Deletes the character before of the insertion point.voiddeleteForward()Deletes the character after of the insertion point.voiddeleteToLineEnd()Deletes the characters from the insertion point to the end of the line.RMTypes.AlignXgetAlignX()Returns the alignment for current selection.intgetCharIndex(double anX, double aY)Returns the char index for given point in text coordinate space.intgetCharIndex(java.awt.geom.Point2D aPoint)Returns the char index for given point in text coordinate space.doublegetCharSpacing()Returns the character spacing of the current selection or cursor.SnapColorgetColor()Returns the color of the current selection or cursor.TextLinegetInputLine()Returns the line for the current selection start index.TextStylegetInputStyle()Returns the TextStyle applied to any input characters.TextLinegetLine(int anIndex)Returns the individual line at given index.TextLinegetLineAt(int anIndex)Returns the line for the given character index.intgetLineCount()Returns the number of lines.TextLinegetLineFor(int anIndex)Returns the line for the given character index or last line if at end.floatgetLineGap()Returns the line gap for current selection.floatgetLineHeightMax()Returns the maximum line height for a line of text (even if font size would dictate higher).floatgetLineHeightMin()Returns the min line height for current selection.TextLinegetLineLast()Returns the last line.floatgetLineSpacing()Returns the line spacing for current selection.java.awt.InsetsgetMargin()Returns the text margins.java.awt.geom.GeneralPathgetPathForChars(int aStart, int anEnd)Returns a path for two char indexes - it will be a a simple box with extensions for first/last lines.java.awt.DimensiongetPreferredSize()Overrides JComponent method to declare preferred size to be text's preferred size.TextSelgetSel()Returns the selection.intgetSelAnchor()Returns the character index of the last explicitly selected char (confined to the bounds of the selection).java.awt.ColorgetSelColor()Returns the selection color.intgetSelEnd()Returns the character index of the end of the text selection.java.awt.geom.GeneralPathgetSelPath()Returns the path for the current selection.intgetSelSize()Returns the number of chars in the selection.intgetSelStart()Returns the character index of the start of the text selection.java.lang.StringgetString()Returns the plain string of the text being edited.TextgetText()Returns the text that is being edited.SnapFontgetTextFont()Returns the font of the current selection or cursor.TextTokengetTokenAt(int anIndex)Returns the token for given character index.RMUndoergetUndoer()Returns the undoer.protected java.lang.ObjectgetUndoSelection()Returns a selection object for undoer.voidhideCursor()Hides the cursor.booleanisSelEmpty()Returns whether the selection is empty.booleanisUnderlined()Returns whether current selection is underlined.protected voidkeyPressed(java.awt.event.KeyEvent anEvent)Called when a key is pressed.protected voidkeyReleased(java.awt.event.KeyEvent anEvent)Called when a key is released.protected voidkeyTyped(java.awt.event.KeyEvent anEvent)Called when a key is typed.intlength()Returns the number of characters in the text string.protected voidmouseDragged(java.awt.event.MouseEvent anEvent)Handles mouse dragged.protected voidmousePressed(java.awt.event.MouseEvent anEvent)Handles mouse pressed.protected voidmouseReleased(java.awt.event.MouseEvent anEvent)Handles mouse released.protected voidpaintBackground(java.awt.Graphics2D aGraphics)Paints background.voidpaintComponent(java.awt.Graphics g)Overrides JComponent to paint text editor text.protected voidpaintLine(java.awt.Graphics2D aGraphics, TextLine aLine, double anX, double aY)Paints a TextLine.protected voidpaintText(java.awt.Graphics2D aGraphics)Paints text area lines.protected voidpaintTextSelection(java.awt.Graphics2D aGraphics)Paints text selection.protected voidpaintToken(java.awt.Graphics2D aGraphics, TextToken aToken, double anX, double aY)Paints a TextToken.voidpaste()Pasts the current clipboard data over the current selection.protected voidprocessComponentKeyEvent(java.awt.event.KeyEvent anEvent)Overrides JComponent to forward to keyPressed(), keyReleased(), keyTyped().protected voidprocessFocusEvent(java.awt.event.FocusEvent e)Override to show hidden cursor.protected voidprocessMouseEvent(java.awt.event.MouseEvent anEvent)Overrides JComponent method to forward mouse pressed/released to text editor.protected voidprocessMouseMotionEvent(java.awt.event.MouseEvent anEvent)Overrides JComponent method to forward mouse drags to text editor.voidpropertyChange(java.beans.PropertyChangeEvent anEvent)Called when characters where added, updated or deleted.booleanredo()Called to redo the last undo operation in the editor.voidreplace(java.lang.String aString)Replaces the current selection with the given string.voidreplace(java.lang.String aString, java.util.Map theAttrs, int aStart, int anEnd, boolean doUpdateSelection)Replaces the current selection with the given string.voidselectAll()Selects all the characters in the text editor.voidselectBackward(boolean isShiftDown)Moves the selection index backward a character (or if a range is selected, moves to beginning of range).voidselectDown()Moves the selection index down a line, trying preserve distance from beginning of line.voidselectForward(boolean isShiftDown)Moves the selection index forward a character (or if a range is selected, moves to end of range).voidselectLineEnd()Moves the insertion point to next newline or text end.voidselectLineStart()Moves the insertion point to the beginning of line.voidselectUp()Moves the selection index up a line, trying to preserve distance from beginning of line.voidsetAlignX(RMTypes.AlignX anAlignX)Sets the alignment for current selection.voidsetBounds(int x, int y, int w, int h)Overrides JComponent method to update TextEditor.Text bounds.voidsetCharSpacing(float aValue)Returns the character spacing of the current selection or cursor.voidsetColor(SnapColor aColor)Sets the color of the current selection or cursor.voidsetFont(java.awt.Font aFont)Set AWT Font for current selection.voidsetInputAttribute(java.lang.String aKey, java.lang.Object aValue)Sets the attributes that are applied to current selection or newly typed chars.voidsetLineGap(float aHeight)Sets the line gap for current selection.voidsetLineHeightMax(float aHeight)Sets the maximum line height for a line of text (even if font size would dictate higher).voidsetLineHeightMin(float aHeight)Sets the min line height for current selection.voidsetLineSpacing(float aHeight)Sets the line spacing for current selection.voidsetMargin(java.awt.Insets theInsets)Sets the text margins.protected voidsetRenderingHints(java.awt.Graphics2D aGraphics)Sets rendering hints for text render.voidsetSel(int newStartEnd)Sets the character index of the text cursor.voidsetSel(int aStart, int anEnd)Sets the character index of the start and end of the text selection.voidsetSel(int aStart, int anEnd, int anAnchor)Sets the character index of the start and end of the text selection.voidsetSource(java.lang.Object aSource)Set the source for TextComponent text.voidsetString(java.lang.String aString)Set text string of text editor.voidsetSubscript()Sets current selection to subscript.voidsetSuperscript()Sets current selection to superscript.voidsetText(Text aText)Sets the text that is to be edited.voidsetTextFont(SnapFont aFont)Sets the font of the current selection or cursor.protected voidsetTextRect()Sets the Text.Rect from text area.voidsetUnderlined(boolean aFlag)Sets whether current selection is underlined.voidshowCursor()Shows the cursor.java.lang.CharSequencesubSequence(int aStart, int anEnd)Returns a newCharSequencethat is a subsequence of this sequence.booleanundo()Called to undo the last edit operation in the editor.protected voidundoerAddPropertyChange(java.beans.PropertyChangeEvent anEvent)Adds a property change to undoer.voidundoerSaveChanges()Saves changes to undoer.- 
Methods inherited from class javax.swing.JComponentaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processKeyBinding, processKeyEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 - 
Methods inherited from class java.awt.Containeradd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
 - 
Methods inherited from class java.awt.Componentaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
- 
 
- 
- 
- 
Method Detail- 
setSourcepublic void setSource(java.lang.Object aSource) Set the source for TextComponent text.
 - 
getTextpublic Text getText() Returns the text that is being edited.
 - 
setTextpublic void setText(Text aText) Sets the text that is to be edited.
 - 
createTextprotected Text createText() Creates a new Text.
 - 
lengthpublic int length() Returns the number of characters in the text string.- Specified by:
- lengthin interface- java.lang.CharSequence
 
 - 
charAtpublic char charAt(int anIndex) Returns the individual character at given index.- Specified by:
- charAtin interface- java.lang.CharSequence
 
 - 
subSequencepublic java.lang.CharSequence subSequence(int aStart, int anEnd)Returns a newCharSequencethat is a subsequence of this sequence.- Specified by:
- subSequencein interface- java.lang.CharSequence
 
 - 
getStringpublic java.lang.String getString() Returns the plain string of the text being edited.
 - 
setStringpublic void setString(java.lang.String aString) Set text string of text editor.
 - 
getLineCountpublic int getLineCount() Returns the number of lines.
 - 
getLinepublic TextLine getLine(int anIndex) Returns the individual line at given index.
 - 
getLineLastpublic TextLine getLineLast() Returns the last line.
 - 
getLineAtpublic TextLine getLineAt(int anIndex) Returns the line for the given character index.
 - 
getLineForpublic TextLine getLineFor(int anIndex) Returns the line for the given character index or last line if at end.
 - 
getTokenAtpublic TextToken getTokenAt(int anIndex) Returns the token for given character index.
 - 
getCharIndexpublic int getCharIndex(java.awt.geom.Point2D aPoint) Returns the char index for given point in text coordinate space.
 - 
getCharIndexpublic int getCharIndex(double anX, double aY)Returns the char index for given point in text coordinate space.
 - 
getMarginpublic java.awt.Insets getMargin() Returns the text margins.
 - 
setMarginpublic void setMargin(java.awt.Insets theInsets) Sets the text margins.
 - 
isSelEmptypublic boolean isSelEmpty() Returns whether the selection is empty.
 - 
getSelSizepublic int getSelSize() Returns the number of chars in the selection.
 - 
getSelStartpublic int getSelStart() Returns the character index of the start of the text selection.
 - 
getSelEndpublic int getSelEnd() Returns the character index of the end of the text selection.
 - 
getSelAnchorpublic int getSelAnchor() Returns the character index of the last explicitly selected char (confined to the bounds of the selection).
 - 
getSelpublic TextSel getSel() Returns the selection.
 - 
setSelpublic void setSel(int newStartEnd) Sets the character index of the text cursor.
 - 
setSelpublic void setSel(int aStart, int anEnd)Sets the character index of the start and end of the text selection.
 - 
setSelpublic void setSel(int aStart, int anEnd, int anAnchor)Sets the character index of the start and end of the text selection.
 - 
selectAllpublic void selectAll() Selects all the characters in the text editor.
 - 
selectForwardpublic void selectForward(boolean isShiftDown) Moves the selection index forward a character (or if a range is selected, moves to end of range).
 - 
selectBackwardpublic void selectBackward(boolean isShiftDown) Moves the selection index backward a character (or if a range is selected, moves to beginning of range).
 - 
selectUppublic void selectUp() Moves the selection index up a line, trying to preserve distance from beginning of line.
 - 
selectDownpublic void selectDown() Moves the selection index down a line, trying preserve distance from beginning of line.
 - 
selectLineStartpublic void selectLineStart() Moves the insertion point to the beginning of line.
 - 
selectLineEndpublic void selectLineEnd() Moves the insertion point to next newline or text end.
 - 
replacepublic void replace(java.lang.String aString) Replaces the current selection with the given string.
 - 
replacepublic void replace(java.lang.String aString, java.util.Map theAttrs, int aStart, int anEnd, boolean doUpdateSelection)Replaces the current selection with the given string.
 - 
deletepublic void delete() Deletes the current selection.
 - 
deletepublic void delete(int aStart, int anEnd, boolean doUpdateSel)Deletes the given range of chars.
 - 
deleteBackwardpublic void deleteBackward() Deletes the character before of the insertion point.
 - 
deleteForwardpublic void deleteForward() Deletes the character after of the insertion point.
 - 
deleteToLineEndpublic void deleteToLineEnd() Deletes the characters from the insertion point to the end of the line.
 - 
getInputStylepublic TextStyle getInputStyle() Returns the TextStyle applied to any input characters.
 - 
setInputAttributepublic void setInputAttribute(java.lang.String aKey, java.lang.Object aValue)Sets the attributes that are applied to current selection or newly typed chars.
 - 
getInputLinepublic TextLine getInputLine() Returns the line for the current selection start index.
 - 
getColorpublic SnapColor getColor() Returns the color of the current selection or cursor.
 - 
setColorpublic void setColor(SnapColor aColor) Sets the color of the current selection or cursor.
 - 
getTextFontpublic SnapFont getTextFont() Returns the font of the current selection or cursor.
 - 
setTextFontpublic void setTextFont(SnapFont aFont) Sets the font of the current selection or cursor.
 - 
setFontpublic void setFont(java.awt.Font aFont) Set AWT Font for current selection.- Overrides:
- setFontin class- javax.swing.JComponent
 
 - 
isUnderlinedpublic boolean isUnderlined() Returns whether current selection is underlined.
 - 
setUnderlinedpublic void setUnderlined(boolean aFlag) Sets whether current selection is underlined.
 - 
setSuperscriptpublic void setSuperscript() Sets current selection to superscript.
 - 
setSubscriptpublic void setSubscript() Sets current selection to subscript.
 - 
getAlignXpublic RMTypes.AlignX getAlignX() Returns the alignment for current selection.
 - 
setAlignXpublic void setAlignX(RMTypes.AlignX anAlignX) Sets the alignment for current selection.
 - 
getCharSpacingpublic double getCharSpacing() Returns the character spacing of the current selection or cursor.
 - 
setCharSpacingpublic void setCharSpacing(float aValue) Returns the character spacing of the current selection or cursor.
 - 
getLineSpacingpublic float getLineSpacing() Returns the line spacing for current selection.
 - 
setLineSpacingpublic void setLineSpacing(float aHeight) Sets the line spacing for current selection.
 - 
getLineGappublic float getLineGap() Returns the line gap for current selection.
 - 
setLineGappublic void setLineGap(float aHeight) Sets the line gap for current selection.
 - 
getLineHeightMinpublic float getLineHeightMin() Returns the min line height for current selection.
 - 
setLineHeightMinpublic void setLineHeightMin(float aHeight) Sets the min line height for current selection.
 - 
getLineHeightMaxpublic float getLineHeightMax() Returns the maximum line height for a line of text (even if font size would dictate higher).
 - 
setLineHeightMaxpublic void setLineHeightMax(float aHeight) Sets the maximum line height for a line of text (even if font size would dictate higher).
 - 
setBoundspublic void setBounds(int x, int y, int w, int h)Overrides JComponent method to update TextEditor.Text bounds.- Overrides:
- setBoundsin class- java.awt.Component
 
 - 
getPreferredSizepublic java.awt.Dimension getPreferredSize() Overrides JComponent method to declare preferred size to be text's preferred size.- Overrides:
- getPreferredSizein class- javax.swing.JComponent
 
 - 
calcPrefWidthprotected double calcPrefWidth() Returns the width needed to display all characters.
 - 
calcPrefHeightprotected double calcPrefHeight() Returns the height needed to display all characters.
 - 
setTextRectprotected void setTextRect() Sets the Text.Rect from text area.
 - 
getSelColorpublic java.awt.Color getSelColor() Returns the selection color.
 - 
paintComponentpublic void paintComponent(java.awt.Graphics g) Overrides JComponent to paint text editor text.- Overrides:
- paintComponentin class- javax.swing.JComponent
 
 - 
paintBackgroundprotected void paintBackground(java.awt.Graphics2D aGraphics) Paints background.
 - 
paintTextSelectionprotected void paintTextSelection(java.awt.Graphics2D aGraphics) Paints text selection.
 - 
paintTextprotected void paintText(java.awt.Graphics2D aGraphics) Paints text area lines.
 - 
paintLineprotected void paintLine(java.awt.Graphics2D aGraphics, TextLine aLine, double anX, double aY)Paints a TextLine.
 - 
paintTokenprotected void paintToken(java.awt.Graphics2D aGraphics, TextToken aToken, double anX, double aY)Paints a TextToken.
 - 
setRenderingHintsprotected void setRenderingHints(java.awt.Graphics2D aGraphics) Sets rendering hints for text render.
 - 
getSelPathpublic java.awt.geom.GeneralPath getSelPath() Returns the path for the current selection.
 - 
getPathForCharspublic java.awt.geom.GeneralPath getPathForChars(int aStart, int anEnd)Returns a path for two char indexes - it will be a a simple box with extensions for first/last lines.
 - 
processMouseEventprotected void processMouseEvent(java.awt.event.MouseEvent anEvent) Overrides JComponent method to forward mouse pressed/released to text editor.- Overrides:
- processMouseEventin class- javax.swing.JComponent
 
 - 
processMouseMotionEventprotected void processMouseMotionEvent(java.awt.event.MouseEvent anEvent) Overrides JComponent method to forward mouse drags to text editor.- Overrides:
- processMouseMotionEventin class- javax.swing.JComponent
 
 - 
mousePressedprotected void mousePressed(java.awt.event.MouseEvent anEvent) Handles mouse pressed.
 - 
mouseDraggedprotected void mouseDragged(java.awt.event.MouseEvent anEvent) Handles mouse dragged.
 - 
mouseReleasedprotected void mouseReleased(java.awt.event.MouseEvent anEvent) Handles mouse released.
 - 
processComponentKeyEventprotected void processComponentKeyEvent(java.awt.event.KeyEvent anEvent) Overrides JComponent to forward to keyPressed(), keyReleased(), keyTyped().- Overrides:
- processComponentKeyEventin class- javax.swing.JComponent
 
 - 
keyTypedprotected void keyTyped(java.awt.event.KeyEvent anEvent) Called when a key is typed.
 - 
keyPressedprotected void keyPressed(java.awt.event.KeyEvent anEvent) Called when a key is pressed.
 - 
keyReleasedprotected void keyReleased(java.awt.event.KeyEvent anEvent) Called when a key is released.
 - 
processFocusEventprotected void processFocusEvent(java.awt.event.FocusEvent e) Override to show hidden cursor.- Overrides:
- processFocusEventin class- java.awt.Component
 
 - 
showCursorpublic void showCursor() Shows the cursor.
 - 
hideCursorpublic void hideCursor() Hides the cursor.
 - 
cutpublic void cut() Copies the current selection onto the clip board, then deletes the current selection.
 - 
copypublic void copy() Copies the current selection onto the clipboard.
 - 
pastepublic void paste() Pasts the current clipboard data over the current selection.
 - 
getUndoerpublic RMUndoer getUndoer() Returns the undoer.
 - 
undopublic boolean undo() Called to undo the last edit operation in the editor.
 - 
redopublic boolean redo() Called to redo the last undo operation in the editor.
 - 
undoerAddPropertyChangeprotected void undoerAddPropertyChange(java.beans.PropertyChangeEvent anEvent) Adds a property change to undoer.
 - 
undoerSaveChangespublic void undoerSaveChanges() Saves changes to undoer.
 - 
getUndoSelectionprotected java.lang.Object getUndoSelection() Returns a selection object for undoer.
 - 
propertyChangepublic void propertyChange(java.beans.PropertyChangeEvent anEvent) Called when characters where added, updated or deleted.- Specified by:
- propertyChangein interface- java.beans.PropertyChangeListener
 
 
- 
 
-