Class ScrollBarLayout

java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.ScrollBarLayout
All Implemented Interfaces:
LayoutManager

public class ScrollBarLayout extends AbstractLayout
Lays out the Figures that make up a ScrollBar.
  • Field Details

    • UP_ARROW

      public static final String UP_ARROW
      Used as a constraint for the up arrow figure.
      See Also:
    • DOWN_ARROW

      public static final String DOWN_ARROW
      Used as a constraint for the down arrow figure.
      See Also:
    • THUMB

      public static final String THUMB
      Used as a constraint for the thumb figure.
      See Also:
    • PAGE_UP

      public static final String PAGE_UP
      Used as a constraint for the page up figure.
      See Also:
    • PAGE_DOWN

      public static final String PAGE_DOWN
      Used as a constraint for the page down figure.
      See Also:
    • transposer

      protected final Transposer transposer
      Transposes values if the ScrollBar is horizontally oriented. When used properly, the layout manager just needs to code for one case: vertical orientation.
  • Constructor Details

    • ScrollBarLayout

      public ScrollBarLayout(Transposer t)
      Constructs a ScrollBarLayout. If the given Transposer is enabled, the Scrollbar will be horizontally oriented. Otherwise, the ScrollBar will be vertically oriented.
      Parameters:
      t - the Transposer
      Since:
      2.0
  • Method Details