Class SimpleGroupStrategy
- java.lang.Object
-
- org.eclipse.nebula.widgets.pgroup.AbstractGroupStrategy
-
- org.eclipse.nebula.widgets.pgroup.SimpleGroupStrategy
-
public class SimpleGroupStrategy extends AbstractGroupStrategy
SimpleGroupStrategy adds a seperator to the normal PGroup's image and text.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private intbetweenSpacingprivate intfontHeightprivate intheightWithoutLineprivate inthMarginprivate intlineBetweenSpacingprivate intlineMarginprivate intseparatorHeightprivate inttextWidthprivate inttitleHeightprivate inttitleTextMarginprivate intvMargin
-
Constructor Summary
Constructors Constructor Description SimpleGroupStrategy()Deprecated.use constructor with PGroup element insteadSimpleGroupStrategy(PGroup g)Creates a SimpleGroupStrategy with the given toggle and style.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.RectanglecomputeTrim(int x, int y, int width, int height)voiddispose()org.eclipse.swt.graphics.RectanglegetClientArea()private org.eclipse.swt.graphics.RectanglegetTextBounds()booleanisToggleLocation(int x, int y)voidpaint(org.eclipse.swt.graphics.GC gc)Paints the actual group widget.voidupdate()-
Methods inherited from class org.eclipse.nebula.widgets.pgroup.AbstractGroupStrategy
getGroup, getToolItemArea, initialize
-
-
-
-
Field Detail
-
separatorHeight
private int separatorHeight
-
heightWithoutLine
private int heightWithoutLine
-
lineMargin
private int lineMargin
-
lineBetweenSpacing
private int lineBetweenSpacing
-
titleTextMargin
private int titleTextMargin
-
betweenSpacing
private int betweenSpacing
-
vMargin
private int vMargin
-
hMargin
private int hMargin
-
titleHeight
private int titleHeight
-
textWidth
private int textWidth
-
fontHeight
private int fontHeight
-
-
Constructor Detail
-
SimpleGroupStrategy
public SimpleGroupStrategy()
Deprecated.use constructor with PGroup element instead
-
SimpleGroupStrategy
public SimpleGroupStrategy(PGroup g)
Creates a SimpleGroupStrategy with the given toggle and style.- Parameters:
ts-style-
-
-
Method Detail
-
paint
public void paint(org.eclipse.swt.graphics.GC gc)
Description copied from class:AbstractGroupStrategyPaints the actual group widget. This method is to be implemented by extending classes.- Specified by:
paintin classAbstractGroupStrategy- See Also:
AbstractGroupStrategy.paint(org.eclipse.swt.graphics.GC)
-
isToggleLocation
public boolean isToggleLocation(int x, int y)- Overrides:
isToggleLocationin classAbstractGroupStrategy- Returns:
- See Also:
AbstractGroupStrategy.isToggleLocation(int, int)
-
getTextBounds
private org.eclipse.swt.graphics.Rectangle getTextBounds()
-
getClientArea
public org.eclipse.swt.graphics.Rectangle getClientArea()
- Specified by:
getClientAreain classAbstractGroupStrategy- See Also:
AbstractGroupStrategy.getClientArea()
-
computeTrim
public org.eclipse.swt.graphics.Rectangle computeTrim(int x, int y, int width, int height)- Specified by:
computeTrimin classAbstractGroupStrategy- See Also:
AbstractGroupStrategy.computeTrim(int, int, int, int)
-
dispose
public void dispose()
- Specified by:
disposein classAbstractGroupStrategy- See Also:
AbstractGroupStrategy.dispose()
-
update
public void update()
- Specified by:
updatein classAbstractGroupStrategy- See Also:
AbstractGroupStrategy.update()
-
-