Class AbstractGroupStrategy

java.lang.Object
org.eclipse.nebula.widgets.pgroup.AbstractGroupStrategy
Direct Known Subclasses:
FormGroupStrategy, RectangleGroupStrategy, SimpleGroupStrategy

public abstract class AbstractGroupStrategy
extends java.lang.Object
AbstractGroupStrategy is a convenient starting point for all IGroupStrategy's.

The AbstractGroupStrategy handles most behavior for you. All that is required of extending classes, is to implement painting and sizing.

  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractGroupStrategy​(PGroup g)  
  • Method Summary

    Modifier and Type Method 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()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • initialize

      public void initialize()
    • isToggleLocation

      public boolean isToggleLocation​(int x, int y)
      Parameters:
      x -
      y -
      Returns:
    • getToolItemArea

      public org.eclipse.swt.graphics.Rectangle getToolItemArea()
      Returns:
      the area where toolitems can be drawn
    • paint

      public abstract void paint​(org.eclipse.swt.graphics.GC gc)
      Paints the actual group widget. This method is to be implemented by extending classes.
      Parameters:
      gc -
    • dispose

      public abstract void dispose()
    • getGroup

      public PGroup getGroup()
      Returns:
      Returns the PGroup.
    • computeTrim

      public abstract org.eclipse.swt.graphics.Rectangle computeTrim​(int x, int y, int width, int height)
    • getClientArea

      public abstract org.eclipse.swt.graphics.Rectangle getClientArea()
    • update

      public abstract void update()