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 int
betweenSpacing
private int
fontHeight
private int
heightWithoutLine
private int
hMargin
private int
lineBetweenSpacing
private int
lineMargin
private int
separatorHeight
private int
textWidth
private int
titleHeight
private int
titleTextMargin
private int
vMargin
-
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.Rectangle
computeTrim(int x, int y, int width, int height)
void
dispose()
org.eclipse.swt.graphics.Rectangle
getClientArea()
private org.eclipse.swt.graphics.Rectangle
getTextBounds()
boolean
isToggleLocation(int x, int y)
void
paint(org.eclipse.swt.graphics.GC gc)
Paints the actual group widget.void
update()
-
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:AbstractGroupStrategy
Paints the actual group widget. This method is to be implemented by extending classes.- Specified by:
paint
in classAbstractGroupStrategy
- See Also:
AbstractGroupStrategy.paint(org.eclipse.swt.graphics.GC)
-
isToggleLocation
public boolean isToggleLocation(int x, int y)
- Overrides:
isToggleLocation
in 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:
getClientArea
in classAbstractGroupStrategy
- See Also:
AbstractGroupStrategy.getClientArea()
-
computeTrim
public org.eclipse.swt.graphics.Rectangle computeTrim(int x, int y, int width, int height)
- Specified by:
computeTrim
in classAbstractGroupStrategy
- See Also:
AbstractGroupStrategy.computeTrim(int, int, int, int)
-
dispose
public void dispose()
- Specified by:
dispose
in classAbstractGroupStrategy
- See Also:
AbstractGroupStrategy.dispose()
-
update
public void update()
- Specified by:
update
in classAbstractGroupStrategy
- See Also:
AbstractGroupStrategy.update()
-
-