Package com.reportmill.editor
Class RMEditorTextEditor
java.lang.Object
com.reportmill.text.RMTextEditor
com.reportmill.editor.RMEditorTextEditor
A text editor subclass suitable for editing RMText shapes in the RMEditor.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.reportmill.text.RMTextEditorRMTextEditor.Listener
- 
Field SummaryFieldsFields inherited from class com.reportmill.text.RMTextEditorisHyphenating, isSpellChecking
- 
Constructor SummaryConstructorsConstructorDescriptionRMEditorTextEditor(RMEditor anOwner) Creates an RMEditor text editor for the given RMEditor.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()Deletes the current selection.floatReturns the height need to show all characters.Returns the text layout for the RMText being edited.voidmouseDragged(MouseEvent anEvent) Handles mouse dragged on the text editor.voidmousePressed(MouseEvent anEvent) Handles mouse pressed on the text editor.voidmouseReleased(MouseEvent anEvent) Handles mouse released on the text editor.voidMove Table Row Column stuff (table row column re-ordering).voidMove Table Row Column stuff (table row column re-ordering).static voidpaintShape(RMText aText, RMEditor anEditor, Graphics2D g) Paints the text editor.voidprocessKeyEvent(KeyEvent anEvent) Handles key events.voidReplaces the current selection with the given sstring.voidReplaces the current selection with the given string.voidsetInputAttribute(String aKey, Object aValue) Sets the attributes that are applied to current selection or newly typed chars.voidSets the paragraph of the current selection or cursor position.voidCalled when text editor needs to repaint.voidsetSelection(int newStart, int newEnd) Sets the character index of the start and end of the text selection.voidSets the RMText to be edited.voidCalled when there are changes to underlying xstring.Methods inherited from class com.reportmill.text.RMTextEditoraddListener, copy, cut, deleteForward, deleteToLineEnd, getAlign, getBounds, getCharSpacing, getColor, getFont, getFontScale, getFormat, getInputAttributes, getInputParagraph, getLineGap, getLineHeightMax, getLineHeightMin, getLineSpacing, getListener, getOutline, getSelectionPath, getSelEnd, getSelStart, getSpellingPath, getString, getXString, isUnderlined, keyBackward, keyDown, keyForward, keyUp, length, lineEnd, lineStart, mouseDragged, mousePressed, mouseReleased, paintLayout, paintLayout, paste, removeListener, selectAll, setAlign, setBounds, setCharSpacing, setColor, setFont, setFontScale, setFormat, setLineGap, setLineHeightMax, setLineHeightMin, setLineSpacing, setOutline, setSelection, setSelEnd, setSelStart, setSubscript, setSuperscript, setTextLayout, setUnderlined, setXString, smartFindFormatRange
- 
Field Details- 
_edText
- 
_updatingSizepublic boolean _updatingSize
- 
_updatingMinHeightpublic float _updatingMinHeight
 
- 
- 
Constructor Details- 
RMEditorTextEditorCreates an RMEditor text editor for the given RMEditor.
 
- 
- 
Method Details- 
setTextSets the RMText to be edited.
- 
getTextLayoutReturns the text layout for the RMText being edited.- Overrides:
- getTextLayoutin class- RMTextEditor
 
- 
setSelectionpublic void setSelection(int newStart, int newEnd) Sets the character index of the start and end of the text selection.- Overrides:
- setSelectionin class- RMTextEditor
 
- 
setInputAttributeSets the attributes that are applied to current selection or newly typed chars.- Overrides:
- setInputAttributein class- RMTextEditor
 
- 
setInputParagraphSets the paragraph of the current selection or cursor position.- Overrides:
- setInputParagraphin class- RMTextEditor
 
- 
replaceReplaces the current selection with the given string.- Overrides:
- replacein class- RMTextEditor
 
- 
replaceReplaces the current selection with the given sstring.- Overrides:
- replacein class- RMTextEditor
 
- 
deletepublic void delete()Deletes the current selection.- Overrides:
- deletein class- RMTextEditor
 
- 
getHeightToFitpublic float getHeightToFit()Returns the height need to show all characters.- Overrides:
- getHeightToFitin class- RMTextEditor
 
- 
mousePressedHandles mouse pressed on the text editor.
- 
mouseDraggedHandles mouse dragged on the text editor.
- 
mouseReleasedHandles mouse released on the text editor.
- 
processKeyEventHandles key events.- Overrides:
- processKeyEventin class- RMTextEditor
 
- 
paintShapePaints the text editor.
- 
setNeedsRepaintpublic void setNeedsRepaint()Called when text editor needs to repaint.- Overrides:
- setNeedsRepaintin class- RMTextEditor
 
- 
textDidChangepublic void textDidChange()Called when there are changes to underlying xstring.- Overrides:
- textDidChangein class- RMTextEditor
 
- 
moveTableRowColumnStartpublic void moveTableRowColumnStart()Move Table Row Column stuff (table row column re-ordering).
- 
moveTableRowColumnMove Table Row Column stuff (table row column re-ordering).
 
-