org.eclipse.draw2d
Class FrameBorder
java.lang.Object
|
+--org.eclipse.draw2d.AbstractBorder
|
+--org.eclipse.draw2d.CompoundBorder
|
+--org.eclipse.draw2d.FrameBorder
- All Implemented Interfaces:
- Border, LabeledBorder
- public class FrameBorder
- extends CompoundBorder
- implements LabeledBorder
Provides for a frame-like border which contains a
title bar for holding the title of a Figure.
|
Constructor Summary |
FrameBorder()
Constructs a FrameBorder with its label set to
the name of the TitleBarBorder
class. |
FrameBorder(String label)
Constructs a FrameBorder with the title set to
the passed String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCHEME_FRAME
protected static final SchemeBorder.Scheme SCHEME_FRAME
FrameBorder
public FrameBorder()
- Constructs a FrameBorder with its label set to
the name of the
TitleBarBorder
class.
- Since:
- 2.0
FrameBorder
public FrameBorder(String label)
- Constructs a FrameBorder with the title set to
the passed String.
- Parameters:
label - Label or title of the frame.- Since:
- 2.0
createBorders
protected void createBorders()
- Creates the necessary borders for this FrameBorder. The
inner border is a
TitleBarBorder. The
outer border is a SchemeBorder.
- Since:
- 2.0
getLabeledBorder
protected LabeledBorder getLabeledBorder()
- Returns the inner border of this FrameBorder, which
contains the label for the FrameBorder.
- Returns:
- The border holding the label.
- Since:
- 2.0
getLabel
public String getLabel()
- Description copied from interface:
LabeledBorder
- Returns the label for this border.
- Specified by:
getLabel in interface LabeledBorder
setLabel
public void setLabel(String label)
- Description copied from interface:
LabeledBorder
- Sets the label.
- Specified by:
setLabel in interface LabeledBorder
setFont
public void setFont(Font font)
- Description copied from interface:
LabeledBorder
- Sets the font for the label.
- Specified by:
setFont in interface LabeledBorder