Class FormGroupStrategy
java.lang.Object
org.eclipse.nebula.widgets.pgroup.AbstractGroupStrategy
org.eclipse.nebula.widgets.pgroup.FormGroupStrategy
public class FormGroupStrategy extends AbstractGroupStrategy
FormGroupStrategy makes a PGroup mimic the look and feel of an Eclipse Form
Section.
- Since:
- 1.0
-
Constructor Summary
Constructors Constructor Description FormGroupStrategy()
Deprecated.use constructor with PGroup element insteadFormGroupStrategy(PGroup g)
Creates a FormGroupStrategy 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.Color
getBorderColor()
org.eclipse.swt.graphics.Rectangle
getClientArea()
org.eclipse.swt.graphics.Rectangle
getToolItemArea()
void
initialize()
boolean
isToggleLocation(int x, int y)
void
paint(org.eclipse.swt.graphics.GC gc)
Paints the actual group widget.void
setBorderColor(org.eclipse.swt.graphics.Color borderColor)
void
update()
-
Constructor Details
-
FormGroupStrategy
public FormGroupStrategy()Deprecated.use constructor with PGroup element instead -
FormGroupStrategy
Creates a FormGroupStrategy with the given toggle and style.- Parameters:
toggle
-style
-
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initialize
in classAbstractGroupStrategy
- See Also:
AbstractGroupStrategy.initialize()
-
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)
-
getToolItemArea
public org.eclipse.swt.graphics.Rectangle getToolItemArea()- Overrides:
getToolItemArea
in classAbstractGroupStrategy
- Returns:
- the area where toolitems can be drawn
-
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
-
dispose
public void dispose()- Specified by:
dispose
in classAbstractGroupStrategy
- See Also:
AbstractGroupStrategy.dispose()
-
getBorderColor
public org.eclipse.swt.graphics.Color getBorderColor()- Returns:
- Returns the borderColor.
-
setBorderColor
public void setBorderColor(org.eclipse.swt.graphics.Color borderColor)- Parameters:
borderColor
- The borderColor to set.
-
update
public void update()- Specified by:
update
in classAbstractGroupStrategy
-