public class FrameBorder extends CompoundBorder implements LabeledBorder
| Modifier and Type | Field and Description |
|---|---|
protected static SchemeBorder.Scheme |
SCHEME_FRAME
The border scheme that determines the border highlight and shadow colors,
as well as the border width (3).
|
inner, outertempRect| Constructor and Description |
|---|
FrameBorder()
Constructs a FrameBorder with its label set to the name of the
TitleBarBorder class. |
FrameBorder(java.lang.String label)
Constructs a FrameBorder with the title set to the passed String.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createBorders()
Creates the necessary borders for this FrameBorder.
|
java.lang.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(java.lang.String label)
Sets the label for this border.
|
getInnerBorder, getInsets, getOuterBorder, getPreferredSize, isOpaque, paintgetPaintRectangleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInsets, getPreferredSize, isOpaque, paintprotected static final SchemeBorder.Scheme SCHEME_FRAME
public FrameBorder()
TitleBarBorder class.public FrameBorder(java.lang.String label)
label - label or title of the frame.protected void createBorders()
TitleBarBorder. The outer border is a SchemeBorder.protected LabeledBorder getLabeledBorder()
public java.lang.String getLabel()
LabeledBordergetLabel in interface LabeledBorderpublic void setLabel(java.lang.String label)
setLabel in interface LabeledBorderlabel - the labelpublic void setFont(Font font)
setFont in interface LabeledBorderfont - the fontCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.