Class LabeledContainer

java.lang.Object
org.eclipse.draw2d.Figure
org.eclipse.draw2d.LabeledContainer
All Implemented Interfaces:
IFigure

public class LabeledContainer extends Figure
A Container with a title bar describing the contents of the container. The frame is generated by a LabeledBorder.
  • Constructor Details

    • LabeledContainer

      public LabeledContainer()
      Constructs a default container with a GroupBoxBorder.
      Since:
      2.0
    • LabeledContainer

      public LabeledContainer(Border border)
      Constructs a labeled container with the border given as input.
      Parameters:
      border - the border
      Since:
      2.0
  • Method Details

    • getLabel

      public String getLabel()
      Returns the text of the LabeledContainer's label.
      Returns:
      the label text
      Since:
      2.0
    • getLabeledBorder

      protected LabeledBorder getLabeledBorder()
      Returns the LabeledBorder of this container.
      Returns:
      the border
      Since:
      2.0
    • setLabel

      public void setLabel(String s)
      Sets the title of the container.
      Parameters:
      s - the new title text
      Since:
      2.0
    • setLabelFont

      public void setLabelFont(Font f)
      Sets the font to be used for the container title.
      Parameters:
      f - the new font
      Since:
      2.0