Draw2D v2.0

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.


Method Summary
 String getLabel()
          Returns the label for this border.
 void setFont(Font f)
          Sets the font for the label.
 void setLabel(String l)
          Sets the label.
 
Methods inherited from interface org.eclipse.draw2d.Border
getInsets, getPreferredSize, isOpaque, paint
 

Method Detail

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.

Draw2D v2.0