CH.ifa.draw.standard
Interface TextHolder
-
- All Known Implementing Classes:
- NodeFigure, NumberTextFigure, TextFigure, UpdatableNumberTextFigure, UpdatableTextFigure
public interface TextHolderThe interface of a figure that has some editable text contents.- See Also:
Figure
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanacceptsTyping()Tests whether the figure accepts typing.voidconnect(Figure connectedFigure)Connects a figure to another figure.java.awt.FontgetFont()Gets the font.java.lang.StringgetText()Gets the text shown by the text figure.intoverlayColumns()Gets the number of columns to be overlaid when the figure is edited.voidsetText(java.lang.String newText)Sets the text shown by the text figure.java.awt.RectangletextDisplayBox()
-
-
-
Method Detail
-
textDisplayBox
java.awt.Rectangle textDisplayBox()
-
getText
java.lang.String getText()
Gets the text shown by the text figure.
-
setText
void setText(java.lang.String newText)
Sets the text shown by the text figure.
-
acceptsTyping
boolean acceptsTyping()
Tests whether the figure accepts typing.
-
overlayColumns
int overlayColumns()
Gets the number of columns to be overlaid when the figure is edited.
-
connect
void connect(Figure connectedFigure)
Connects a figure to another figure.
-
getFont
java.awt.Font getFont()
Gets the font.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG