public abstract class AbstractGroupStrategy
extends java.lang.Object
The AbstractGroupStrategy handles most behavior for you. All that is required of extending classes, is to implement painting and sizing.
Constructor and Description |
---|
AbstractGroupStrategy(PGroup g) |
Modifier and Type | Method and Description |
---|---|
abstract org.eclipse.swt.graphics.Rectangle |
computeTrim(int x,
int y,
int width,
int height) |
abstract void |
dispose() |
abstract org.eclipse.swt.graphics.Rectangle |
getClientArea() |
PGroup |
getGroup() |
org.eclipse.swt.graphics.Rectangle |
getToolItemArea() |
void |
initialize() |
boolean |
isToggleLocation(int x,
int y) |
abstract void |
paint(org.eclipse.swt.graphics.GC gc)
Paints the actual group widget.
|
abstract void |
update() |
public AbstractGroupStrategy(PGroup g)
public void initialize()
public boolean isToggleLocation(int x, int y)
x
- y
- public org.eclipse.swt.graphics.Rectangle getToolItemArea()
public abstract void paint(org.eclipse.swt.graphics.GC gc)
gc
- public abstract void dispose()
public PGroup getGroup()
public abstract org.eclipse.swt.graphics.Rectangle computeTrim(int x, int y, int width, int height)
public abstract org.eclipse.swt.graphics.Rectangle getClientArea()
public abstract void update()