23 lines
620 B
Java
23 lines
620 B
Java
package com.minres.scviewer.database.ui.swt.sb;
|
|
|
|
import org.eclipse.swt.graphics.Point;
|
|
import org.eclipse.swt.widgets.Composite;
|
|
import org.eclipse.swt.widgets.Layout;
|
|
|
|
class FlatScrollBarLayout extends Layout {
|
|
|
|
private final Direction direction;
|
|
|
|
public FlatScrollBarLayout( Direction orientation ) {
|
|
this.direction = orientation;
|
|
}
|
|
|
|
@Override
|
|
protected void layout( Composite composite, boolean flushCache ) {
|
|
}
|
|
|
|
@Override
|
|
protected Point computeSize( Composite composite, int wHint, int hHint, boolean flushCache ) {
|
|
return direction.computeSize( composite, wHint, hHint, flushCache );
|
|
}
|
|
} |