public class RMEditorTextEditor extends RMTextEditor implements java.beans.PropertyChangeListener
| Modifier and Type | Class and Description |
|---|---|
class |
RMEditorTextEditor.ETETextSelection
A class for a text selection.
|
RMTextEditor.TextSelectionRMTextTypes.TabTypeRMTypes.Align, RMTypes.AlignX, RMTypes.AlignYisHyphenating, isSpellCheckingTEXT_CHAR_SPACING, TEXT_COLOR, TEXT_EMBEDDED_SHAPE, TEXT_FONT, TEXT_FORMAT, TEXT_OUTLINE, TEXT_PARAGRAPH, TEXT_SCRIPTING, TEXT_UNDERLINE| Constructor and Description |
|---|
RMEditorTextEditor(RMEditor anOwner)
Creates an RMEditor text editor for the given RMEditor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int aStart,
int anEnd,
boolean doUpdateSelection)
Deletes the current selection.
|
protected void |
firePropertyChange(java.beans.PropertyChangeEvent anEvent,
java.lang.String aName,
java.lang.Object oldVal,
java.lang.Object newVal,
int anIndex)
Override so all property changes can trigger text shape repaint.
|
RMTextLayout |
getLayout()
Returns the text layout for the RMText being edited.
|
RMTextShape |
getTextShape()
Returns the RMText shape being edited.
|
RMUndoer |
getUndoer()
Override to get undoer from text shape.
|
protected java.lang.Object |
getUndoSelection()
Override to return selection for text shape.
|
float |
getUpdatingMinHeight()
Returns the minimum height of the RMText when editor text editor is updating size.
|
boolean |
isUpdatingSize()
Returns whether text editor is updating size (usually when text is first created with text tool).
|
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 anEvent)
Move Table Row Column stuff (table row column re-ordering).
|
void |
paste()
Pastes the current clipboard data over the current selection.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Called when there are changes to text shape.
|
void |
redo()
Override to forward to editor.
|
void |
replace(java.lang.String aString,
java.util.Map theAttributes,
int aStart,
int anEnd,
boolean doUpdateSelection)
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 |
setSel(int aStart,
int anEnd)
Override to forward to Editor.
|
void |
setTextShape(RMTextShape aText)
Sets the RMText shape to be edited.
|
void |
setUpdatingMinHeight(float aValue)
Sets the minimum height of the RMText when editor text editor is updating size.
|
void |
setUpdatingSize(boolean aValue)
Sets whether text editor is updating size (usually when text is first created with text tool).
|
protected void |
setXStringFromTextShape()
Sets the text editor xstring to text shape's xstring.
|
void |
undo()
Override to forward to editor.
|
charAt, copy, createLayout, cut, delete, deleteForward, deleteToLineEnd, getAlignmentX, getBounds, getCharIndex, getCharSpacing, getColor, getFont, getFontScale, getFormat, getHeight, getHeightToFit, getInputParagraph, getInputStyle, getLine, getLineCount, getLineForChar, getLineGap, getLineHeightMax, getLineHeightMin, getLineSpacing, getOutline, getSel, getSel, getSelAnchor, getSelEnd, getSelPath, getSelStart, getSelStartLine, getSpellingPath, getString, getWidth, getWidthToFit, getX, getXString, getY, isHyphenating, isSelEmpty, isSpellChecking, isUnderlined, keyBackward, keyDown, keyForward, keyPressed, keyTyped, keyUp, length, paint, processKeyEvent, relayout, replace, replace, replace, replace, replace, selectAll, selectLineEnd, selectLineStart, setAlignmentX, setBounds, setBounds, setCharSpacing, setColor, setFont, setFontScale, setFormat, setLineGap, setLineHeightMax, setLineHeightMin, setLineSpacing, setOutline, setSel, setSel, setSubscript, setSuperscript, setUnderlined, setXString, subSequence, undoerAddPropertyChange, undoerSaveChangesaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toStringaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListenerpublic RMEditorTextEditor(RMEditor anOwner)
public RMTextShape getTextShape()
public void setTextShape(RMTextShape aText)
protected void setXStringFromTextShape()
public boolean isUpdatingSize()
public void setUpdatingSize(boolean aValue)
public float getUpdatingMinHeight()
public void setUpdatingMinHeight(float aValue)
public RMTextLayout getLayout()
getLayout in class RMTextEditorpublic void setSel(int aStart,
int anEnd)
setSel in class RMTextEditorpublic void setInputAttribute(java.lang.String aKey,
java.lang.Object aValue)
setInputAttribute in class RMTextEditorpublic void setInputParagraph(RMParagraph ps)
setInputParagraph in class RMTextEditorpublic void delete(int aStart,
int anEnd,
boolean doUpdateSelection)
delete in class RMTextEditorpublic void replace(java.lang.String aString,
java.util.Map theAttributes,
int aStart,
int anEnd,
boolean doUpdateSelection)
replace in class RMTextEditorpublic void mousePressed(java.awt.event.MouseEvent anEvent)
mousePressed in class RMTextEditorpublic void mouseDragged(java.awt.event.MouseEvent anEvent)
mouseDragged in class RMTextEditorpublic void mouseReleased(java.awt.event.MouseEvent anEvent)
mouseReleased in class RMTextEditorpublic void paste()
paste in class RMTextEditorprotected void firePropertyChange(java.beans.PropertyChangeEvent anEvent,
java.lang.String aName,
java.lang.Object oldVal,
java.lang.Object newVal,
int anIndex)
firePropertyChange in class RMObjectpublic void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class RMTextEditorpublic RMUndoer getUndoer()
getUndoer in class RMTextEditorprotected java.lang.Object getUndoSelection()
getUndoSelection in class RMTextEditorpublic void undo()
undo in class RMTextEditorpublic void redo()
redo in class RMTextEditorpublic void moveTableRowColumn(java.awt.event.MouseEvent anEvent)