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.

    • Field Detail

    • Constructor Detail

      • AbstractGroupStrategy

        public AbstractGroupStrategy​(PGroup g)
    • Method Detail

      • 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()