Class LineWidget

All Implemented Interfaces:
Drawable

public class LineWidget extends Canvas
Draws a vertical or horizontal line.
Author:
Christopher Mindus
  • Constructor Details

    • LineWidget

      public LineWidget(Composite parent, boolean horz0, int first0, int second0)
      The constructor.
      Parameters:
      parent - The parent component.
      horz0 - Horizontal or vertical.
      first0 - First line (topmost or leftmost) -1=none,0=dark,1=light,2=middle.
      second0 - Second line (topmost or leftmost) -1=none,0=dark,1=light,2=middle.
  • Method Details

    • setWishSize

      public void setWishSize(int size)
      Sets the wish-size in X or Y depending on orientation.
    • computeSize

      public Point computeSize(int wHint, int hHint, boolean changed)
      The best size.
      Overrides:
      computeSize in class Composite