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
-
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
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()
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
-
Constructor Details
-
SimpleGroupStrategy
public SimpleGroupStrategy()Deprecated.use constructor with PGroup element instead -
SimpleGroupStrategy
Creates a SimpleGroupStrategy with the given toggle and style.- Parameters:
ts
-style
-
-
-
Method Details
-
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)
-
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()
-