Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.ScrollBarLayout


  protected static final int BUTTON_HEIGHT = 13;

  public TrayScrollBar() {
    super();
   
    setLayoutManager(new ScrollBarLayout(transposer) {
      protected Rectangle layoutButtons(ScrollBar scrollBar) {
        Rectangle bounds = transposer.t(scrollBar.getClientArea());
        Dimension buttonSize = new Dimension(bounds.width, BUTTON_HEIGHT);
        getButtonUp().setBounds(transposer.t(new Rectangle(bounds.getTopLeft(), buttonSize)));
        Rectangle r = new Rectangle (bounds.x, bounds.bottom() - buttonSize.height, buttonSize.width, buttonSize.height);
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.ScrollBarLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.