public interface TextHolderFigure extends Figure
Figure
that has some editable text contents.
Prototype
The text creation tools create new figures by cloning a prototype
TextHolderFigure
object.
Prototype: TextHolderFigure
;
Client: TextCreationTool
,
TextAreaCreationTool
.
Prototype
The text input format creates new text holder figures by cloning a prototype figure
object and assigning an image to it, which was read from data input.
That's the reason why Figure
extends the Cloneable
interface.
Prototype: TextHolderFigure
;
Client: TextInputFormat
.
CONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY
Modifier and Type | Method and Description |
---|---|
double |
getBaseline()
Gets the baseline of the first line of text, relative to the
upper left corner of the figure bounds.
|
java.awt.Color |
getFillColor()
Returns the fill color to be used by a text editor for editing this Figure.
|
java.awt.Font |
getFont()
Returns the font to be used by a text editor for editing this Figure.
|
float |
getFontSize()
Gets the font size of the text held by the TextHolderFigure.
|
Insets2D.Double |
getInsets()
Returns Insets to be used by the text editor relative to the handle bounds
of the figure.
|
TextHolderFigure |
getLabelFor()
Sometimes we want to use a TextHolderFigure as a label for another
TextHolderFigure.
|
int |
getTabSize()
Gets the number of characters used to expand tabs.
|
java.lang.String |
getText()
Returns the text held by the Text Holder.
|
java.awt.Color |
getTextColor()
Returns the text color to be used by a text editor for editing this Figure.
|
int |
getTextColumns()
Gets the number of columns to be overlaid when the figure is edited.
|
boolean |
isEditable()
Returns true if the text of the TextHolderFigure can be edited.
|
boolean |
isTextOverflow()
Returns true, if the text does not fit into the bounds of the Figure.
|
void |
setFontSize(float size)
Sets the font size of the text held by the TextHolderFigure.
|
void |
setText(java.lang.String text)
Sets the text of the Text Holder.
|
addFigureListener, addNotify, addPropertyChangeListener, changed, clone, contains, createHandles, draw, findCompatibleConnector, findConnector, findFigureInside, get, getActions, getAttributes, getAttributesRestoreData, getBounds, getConnectors, getCursor, getDecomposition, getDrawingArea, getEndPoint, getLayer, getPreferredSize, getStartPoint, getTool, getToolTipText, getTransformRestoreData, handleDrop, handleMouseClick, includes, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, removeNotify, removePropertyChangeListener, requestRemove, restoreAttributesTo, restoreTransformTo, set, setBounds, transform, willChange
boolean isEditable()
java.awt.Font getFont()
java.awt.Color getTextColor()
java.awt.Color getFillColor()
TextHolderFigure getLabelFor()
int getTabSize()
java.lang.String getText()
void setText(java.lang.String text)
text
- int getTextColumns()
void setFontSize(float size)
float getFontSize()
double getBaseline()
Insets2D.Double getInsets()
boolean isTextOverflow()