Class 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

    Constructor Description
    AbstractGroupStrategy​(PGroup g)  
  • Method Summary

    Modifier and Type Method Description
    abstract computeTrim​(int x, int y, int width, int height)  
    abstract void dispose()  
    abstract getClientArea()  
    PGroup getGroup() getToolItemArea()  
    void initialize()  
    boolean isToggleLocation​(int x, int y)  
    abstract void paint​( 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)
      x -
      y -
    • getToolItemArea

      public getToolItemArea()
      the area where toolitems can be drawn
    • paint

      public abstract void paint​( gc)
      Paints the actual group widget. This method is to be implemented by extending classes.
      gc -
    • dispose

      public abstract void dispose()
    • getGroup

      public PGroup getGroup()
      Returns the PGroup.
    • computeTrim

      public abstract computeTrim​(int x, int y, int width, int height)
    • getClientArea

      public abstract getClientArea()
    • update

      public abstract void update()