Package org.eclipse.draw2d
Interface LabeledBorder
- All Superinterfaces:
Border
- All Known Implementing Classes:
AbstractLabeledBorder
,FrameBorder
,GroupBoxBorder
,TitleBarBorder
LabeledBorders have a text message somewhere on them. The Font for the text
can be set. LabeledBorders 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.
-
Method Summary
Methods inherited from interface org.eclipse.draw2d.Border
getInsets, getPreferredSize, isOpaque, paint
-
Method Details
-
getLabel
String getLabel()Returns the label for this Border.- Returns:
- The label for this Border
-
setFont
Sets the Font for the label.- Parameters:
f
- The Font to be set
-
setLabel
Sets the text to be displayed as the label for this Border.- Parameters:
l
- The text
-