Package com.reportmill.editor
Class RMEditorTextEditor
- java.lang.Object
- 
- com.reportmill.text.RMTextEditor
- 
- com.reportmill.editor.RMEditorTextEditor
 
 
- 
 public class RMEditorTextEditor extends RMTextEditor A text editor subclass suitable for editing RMText shapes in the RMEditor.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.reportmill.text.RMTextEditorRMTextEditor.Listener
 
- 
 - 
Field SummaryFields Modifier and Type Field Description RMText_edTextfloat_updatingMinHeightboolean_updatingSize- 
Fields inherited from class com.reportmill.text.RMTextEditorisHyphenating, isSpellChecking
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMEditorTextEditor(RMEditor anOwner)Creates an RMEditor text editor for the given RMEditor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Deletes the current selection.floatgetHeightToFit()Returns the height need to show all characters.RMTextLayoutgetTextLayout()Returns the text layout for the RMText being edited.voidmouseDragged(java.awt.event.MouseEvent anEvent)Handles mouse dragged on the text editor.voidmousePressed(java.awt.event.MouseEvent anEvent)Handles mouse pressed on the text editor.voidmouseReleased(java.awt.event.MouseEvent anEvent)Handles mouse released on the text editor.voidmoveTableRowColumn(java.awt.event.MouseEvent e)Move Table Row Column stuff (table row column re-ordering).voidmoveTableRowColumnStart()Move Table Row Column stuff (table row column re-ordering).static voidpaintShape(RMText aText, RMEditor anEditor, java.awt.Graphics2D g)Paints the text editor.voidprocessKeyEvent(java.awt.event.KeyEvent anEvent)Handles key events.voidreplace(RMXString aString)Replaces the current selection with the given sstring.voidreplace(java.lang.String aString)Replaces the current selection with the given string.voidsetInputAttribute(java.lang.String aKey, java.lang.Object aValue)Sets the attributes that are applied to current selection or newly typed chars.voidsetInputParagraph(RMParagraph ps)Sets the paragraph of the current selection or cursor position.voidsetNeedsRepaint()Called when text editor needs to repaint.voidsetSelection(int newStart, int newEnd)Sets the character index of the start and end of the text selection.voidsetText(RMText aText)Sets the RMText to be edited.voidtextDidChange()Called 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 Detail- 
_edTextpublic RMText _edText 
 - 
_updatingSizepublic boolean _updatingSize 
 - 
_updatingMinHeightpublic float _updatingMinHeight 
 
- 
 - 
Constructor Detail- 
RMEditorTextEditorpublic RMEditorTextEditor(RMEditor anOwner) Creates an RMEditor text editor for the given RMEditor.
 
- 
 - 
Method Detail- 
setTextpublic void setText(RMText aText) Sets the RMText to be edited.
 - 
getTextLayoutpublic RMTextLayout getTextLayout() Returns 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
 
 - 
setInputAttributepublic void setInputAttribute(java.lang.String aKey, java.lang.Object aValue)Sets the attributes that are applied to current selection or newly typed chars.- Overrides:
- setInputAttributein class- RMTextEditor
 
 - 
setInputParagraphpublic void setInputParagraph(RMParagraph ps) Sets the paragraph of the current selection or cursor position.- Overrides:
- setInputParagraphin class- RMTextEditor
 
 - 
replacepublic void replace(java.lang.String aString) Replaces the current selection with the given string.- Overrides:
- replacein class- RMTextEditor
 
 - 
replacepublic void replace(RMXString aString) Replaces 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
 
 - 
mousePressedpublic void mousePressed(java.awt.event.MouseEvent anEvent) Handles mouse pressed on the text editor.
 - 
mouseDraggedpublic void mouseDragged(java.awt.event.MouseEvent anEvent) Handles mouse dragged on the text editor.
 - 
mouseReleasedpublic void mouseReleased(java.awt.event.MouseEvent anEvent) Handles mouse released on the text editor.
 - 
processKeyEventpublic void processKeyEvent(java.awt.event.KeyEvent anEvent) Handles key events.- Overrides:
- processKeyEventin class- RMTextEditor
 
 - 
paintShapepublic static void paintShape(RMText aText, RMEditor anEditor, java.awt.Graphics2D g) Paints 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).
 - 
moveTableRowColumnpublic void moveTableRowColumn(java.awt.event.MouseEvent e) Move Table Row Column stuff (table row column re-ordering).
 
- 
 
-