Package org.eclipse.draw2d
Class GroupBoxBorder
java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.AbstractLabeledBorder
org.eclipse.draw2d.GroupBoxBorder
- All Implemented Interfaces:
- Border,- LabeledBorder
A labeled border intended to house a Figure with a group of children. The
 label should serve as a description of the group.
- 
Field SummaryFields inherited from class org.eclipse.draw2d.AbstractBordertempRect
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a GroupBoxBorder with the name of this class as its label.Constructs a GroupBoxBorder with label s.
- 
Method SummaryModifier and TypeMethodDescriptionprotected InsetscalculateInsets(IFigure figure) Calculates and returns the Insets for this GroupBoxBorder.getPreferredSize(IFigure fig) Returns the preferred width and height that this border would like to display itself properly.voidPaints the border.Methods inherited from class org.eclipse.draw2d.AbstractLabeledBordergetFont, getInsets, getLabel, getTextColor, getTextExtents, invalidate, setFont, setLabel, setTextColorMethods inherited from class org.eclipse.draw2d.AbstractBordergetPaintRectangle, isOpaque
- 
Constructor Details- 
GroupBoxBorderpublic GroupBoxBorder()Constructs a GroupBoxBorder with the name of this class as its label.- Since:
- 2.0
 
- 
GroupBoxBorderConstructs a GroupBoxBorder with label s.- Parameters:
- s- the label
- Since:
- 2.0
 
 
- 
- 
Method Details- 
calculateInsetsCalculates and returns the Insets for this GroupBoxBorder.- Specified by:
- calculateInsetsin class- AbstractLabeledBorder
- Parameters:
- figure- IFigure on which the calculations should be made. Generally this is the IFigure of which this GroupBoxBorder is surrounding.
- Returns:
- the Insets for this GroupBoxBorder.
- Since:
- 2.0
 
- 
getPreferredSizeDescription copied from interface:BorderReturns the preferred width and height that this border would like to display itself properly.- Specified by:
- getPreferredSizein interface- Border
- Overrides:
- getPreferredSizein class- AbstractLabeledBorder
- Parameters:
- fig- The figure
- Returns:
- The preferred size
- See Also:
 
- 
paintDescription copied from interface:BorderPaints the border. The border should paint inside figure'sIFigure.getBounds(), inset by the parameter insets. The border generally should not paint inside its own insets. More specifically, Border b should paint inside the rectangle: figure.getBounds().getCropped(insets) and outside of the rectangle: figure.getBounds().getCropped(insets).getCropped(getInsets()) where inside is defined asRectangle.contains(int, int).- Parameters:
- figure- The figure this border belongs to
- g- The graphics object used for painting
- insets- The insets
- See Also:
 
 
-