Class OutlinedComposite

All Implemented Interfaces:
Drawable

public class OutlinedComposite extends Composite
Creates an outlined composite.
Author:
Christopher Mindus
  • Constructor Details

    • OutlinedComposite

      public OutlinedComposite(Composite parent)
      Constructor.
  • Method Details

    • addLine

      public void addLine(int location, int line1, int line2)
      Adds a line with the colors (0=dark, 1=light, -1=none) at a location.
      Parameters:
      location - Location in composite: SWT.TOP, SWT.BOTTOM, SWT.LEFT or SWT.RIGHT.
      line1 - Color for first line.
      line2 - Color for second line.
      Throws:
      IllegalArgumentException - If location is not TOP, BOTTOM, LEFT or RIGHT.
    • createCenterArea

      public Composite createCenterArea()
      Gets the center area.
      Returns:
      The center composite.
    • setCenterArea

      public void setCenterArea(Control center)
      Sets the center area.
      Parameters:
      center - The center area, the BorderLayout.CENTER layout data is applied to the control.
    • setFirstChildAsCenterArea

      public void setFirstChildAsCenterArea()
      Sets the first control added in this composite as the center area.