CH.ifa.draw.standard
Interface TextHolder

All Known Implementing Classes:
NodeFigure, NumberTextFigure, TextFigure

public interface TextHolder

The interface of a figure that has some editable text contents.

See Also:
Figure

Method Summary
 boolean acceptsTyping()
          Tests whether the figure accepts typing.
 void connect(Figure connectedFigure)
          Connects a figure to another figure.
 java.awt.Font getFont()
          Gets the font.
 java.lang.String getText()
          Gets the text shown by the text figure.
 int overlayColumns()
          Gets the number of columns to be overlaid when the figure is edited.
 void setText(java.lang.String newText)
          Sets the text shown by the text figure.
 java.awt.Rectangle textDisplayBox()
           
 

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.