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, outer
tempRect
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, paint
getPaintRectangle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInsets, getPreferredSize, isOpaque, paint
protected 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()
LabeledBorder
getLabel
in interface LabeledBorder
public void setLabel(java.lang.String label)
setLabel
in interface LabeledBorder
label
- the labelpublic void setFont(Font font)
setFont
in interface LabeledBorder
font
- the fontCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.