Package 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
Provides for a frame-like border which contains a title bar for holding the
 title of a Figure.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final SchemeBorder.SchemeThe border scheme that determines the border highlight and shadow colors, as well as the border width (3).Fields inherited from class org.eclipse.draw2d.CompoundBorderinner, outerFields inherited from class org.eclipse.draw2d.AbstractBordertempRect
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a FrameBorder with its label set to the name of theTitleBarBorderclass.FrameBorder(String label) Constructs a FrameBorder with the title set to the passed String.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidCreates the necessary borders for this FrameBorder.getLabel()Returns the label for this Border.protected LabeledBorderReturns the inner border of this FrameBorder, which contains the label for the FrameBorder.voidSets the font for this border's label.voidSets the label for this border.Methods inherited from class org.eclipse.draw2d.CompoundBordergetInnerBorder, getInsets, getOuterBorder, getPreferredSize, isOpaque, paintMethods inherited from class org.eclipse.draw2d.AbstractBordergetPaintRectangleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.draw2d.BordergetInsets, getPreferredSize, isOpaque, paint
- 
Field Details- 
SCHEME_FRAMEThe border scheme that determines the border highlight and shadow colors, as well as the border width (3).
 
- 
- 
Constructor Details- 
FrameBorderpublic FrameBorder()Constructs a FrameBorder with its label set to the name of theTitleBarBorderclass.- Since:
- 2.0
 
- 
FrameBorderConstructs a FrameBorder with the title set to the passed String.- Parameters:
- label- label or title of the frame.
- Since:
- 2.0
 
 
- 
- 
Method Details- 
createBordersprotected void createBorders()Creates the necessary borders for this FrameBorder. The inner border is aTitleBarBorder. The outer border is aSchemeBorder.- Since:
- 2.0
 
- 
getLabeledBorderReturns the inner border of this FrameBorder, which contains the label for the FrameBorder.- Returns:
- the border holding the label.
- Since:
- 2.0
 
- 
getLabelDescription copied from interface:LabeledBorderReturns the label for this Border.- Specified by:
- getLabelin interface- LabeledBorder
- Returns:
- the label for this border
 
- 
setLabelSets the label for this border.- Specified by:
- setLabelin interface- LabeledBorder
- Parameters:
- label- the label
 
- 
setFontSets the font for this border's label.- Specified by:
- setFontin interface- LabeledBorder
- Parameters:
- font- the font
 
 
-