org.eclipse.draw2d
Interface LabeledBorder
- All Superinterfaces:
- Border
- All Known Implementing Classes:
- AbstractLabeledBorder, FrameBorder
- public interface LabeledBorder
- extends Border
Labeled Borders have a text message somewhere on them.
The font for the text can be set.
Labeled borders should not change their Insets when the label changes,
Therefore, figures using this border should repaint() when updating the
label, and revalidate() when changing the Font.
getLabel
public String getLabel()
- Returns the label for this border.
setFont
public void setFont(Font f)
- Sets the font for the label.
setLabel
public void setLabel(String l)
- Sets the label.