|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.AbstractBorder | +--org.eclipse.draw2d.CompoundBorder | +--org.eclipse.draw2d.FrameBorder
Provides for a frame-like border which contains a title bar for holding the title of a Figure.
Field Summary | |
protected static SchemeBorder.Scheme |
SCHEME_FRAME
The border scheme that determines the border highlight and shadow colors, as well as the border width (3). |
Fields inherited from class org.eclipse.draw2d.CompoundBorder |
inner, outer |
Fields inherited from class org.eclipse.draw2d.AbstractBorder |
tempRect |
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. |
Method Summary | |
protected void |
createBorders()
Creates the necessary borders for this FrameBorder. |
String |
getLabel()
Returns the label for this Border. |
protected LabeledBorder |
getLabeledBorder()
Returns the inner border of this FrameBorder, which contains the label for the FrameBorder. |
void |
setFont(Font font)
Sets the font for this border's label. |
void |
setLabel(String label)
Sets the label for this border. |
Methods inherited from class org.eclipse.draw2d.CompoundBorder |
getInnerBorder, getInsets, getOuterBorder, getPreferredSize, isOpaque, paint |
Methods inherited from class org.eclipse.draw2d.AbstractBorder |
getPaintRectangle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.draw2d.Border |
getInsets, getPreferredSize, isOpaque, paint |
Field Detail |
protected static final SchemeBorder.Scheme SCHEME_FRAME
Constructor Detail |
public FrameBorder()
TitleBarBorder
class.
public FrameBorder(String label)
label
- label or title of the frame.Method Detail |
protected void createBorders()
TitleBarBorder
. The outer border is a SchemeBorder
.
protected LabeledBorder getLabeledBorder()
public String getLabel()
LabeledBorder
getLabel
in interface LabeledBorder
public void setLabel(String label)
setLabel
in interface LabeledBorder
label
- the labelpublic void setFont(Font font)
setFont
in interface LabeledBorder
font
- the font
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |