public class RMEditorTextEditor extends RMTextEditor
RMTextEditor.Listener
Modifier and Type | Field and Description |
---|---|
RMText |
_edText |
float |
_updatingMinHeight |
boolean |
_updatingSize |
isHyphenating, isSpellChecking
Constructor and Description |
---|
RMEditorTextEditor(RMEditor anOwner)
Creates an RMEditor text editor for the given RMEditor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes the current selection.
|
float |
getHeightToFit()
Returns the height need to show all characters.
|
RMTextLayout |
getTextLayout()
Returns the text layout for the RMText being edited.
|
void |
mouseDragged(java.awt.event.MouseEvent anEvent)
Handles mouse dragged on the text editor.
|
void |
mousePressed(java.awt.event.MouseEvent anEvent)
Handles mouse pressed on the text editor.
|
void |
mouseReleased(java.awt.event.MouseEvent anEvent)
Handles mouse released on the text editor.
|
void |
moveTableRowColumn(java.awt.event.MouseEvent e)
Move Table Row Column stuff (table row column re-ordering).
|
void |
moveTableRowColumnStart()
Move Table Row Column stuff (table row column re-ordering).
|
static void |
paintShape(RMText aText,
RMEditor anEditor,
java.awt.Graphics2D g)
Paints the text editor.
|
void |
processKeyEvent(java.awt.event.KeyEvent anEvent)
Handles key events.
|
void |
replace(RMXString aString)
Replaces the current selection with the given sstring.
|
void |
replace(java.lang.String aString)
Replaces the current selection with the given string.
|
void |
setInputAttribute(java.lang.String aKey,
java.lang.Object aValue)
Sets the attributes that are applied to current selection or newly typed chars.
|
void |
setInputParagraph(RMParagraph ps)
Sets the paragraph of the current selection or cursor position.
|
void |
setNeedsRepaint()
Called when text editor needs to repaint.
|
void |
setSelection(int newStart,
int newEnd)
Sets the character index of the start and end of the text selection.
|
void |
setText(RMText aText)
Sets the RMText to be edited.
|
void |
textDidChange()
Called when there are changes to underlying xstring.
|
addListener, 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
public RMText _edText
public boolean _updatingSize
public float _updatingMinHeight
public RMEditorTextEditor(RMEditor anOwner)
public void setText(RMText aText)
public RMTextLayout getTextLayout()
getTextLayout
in class RMTextEditor
public void setSelection(int newStart, int newEnd)
setSelection
in class RMTextEditor
public void setInputAttribute(java.lang.String aKey, java.lang.Object aValue)
setInputAttribute
in class RMTextEditor
public void setInputParagraph(RMParagraph ps)
setInputParagraph
in class RMTextEditor
public void replace(java.lang.String aString)
replace
in class RMTextEditor
public void replace(RMXString aString)
replace
in class RMTextEditor
public void delete()
delete
in class RMTextEditor
public float getHeightToFit()
getHeightToFit
in class RMTextEditor
public void mousePressed(java.awt.event.MouseEvent anEvent)
public void mouseDragged(java.awt.event.MouseEvent anEvent)
public void mouseReleased(java.awt.event.MouseEvent anEvent)
public void processKeyEvent(java.awt.event.KeyEvent anEvent)
processKeyEvent
in class RMTextEditor
public static void paintShape(RMText aText, RMEditor anEditor, java.awt.Graphics2D g)
public void setNeedsRepaint()
setNeedsRepaint
in class RMTextEditor
public void textDidChange()
textDidChange
in class RMTextEditor
public void moveTableRowColumnStart()
public void moveTableRowColumn(java.awt.event.MouseEvent e)