public interface InplaceEditable
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getEditRect(DiagramItem item,
java.awt.geom.Point2D mousePosition)
Returns the rectangle where the in-place edit text box should appear (in document coordinates).
|
java.lang.String |
getTextToEdit()
Returns the text that should be displayed initially when this object is edited in-place.
|
void |
setEditedText(java.lang.String newText)
Assigns the edited text to the object after in-place edit operation completes successfully.
|
java.lang.String getTextToEdit()
void setEditedText(java.lang.String newText)
newText
- The new text of the in-place edited object.java.awt.geom.Rectangle2D getEditRect(DiagramItem item, java.awt.geom.Point2D mousePosition)
item
- The DiagramItem
whose text will be edited or that contains the edited component.mousePosition
- A Point2D instance specifying the current pointer position.