int state = MT_NORMAL;
int orientation = (scrollbar.getOrientation() == JScrollBar.VERTICAL)? MT_VERTICAL : MT_HORIZONTAL;
if (isThumbRollover()) state |= MT_HOVER;
//if (isThumbRollover()) state |= MT_HOVER;
if (isDragging()) state |= MT_ACTIVE;
engine.drawWidget(g, MT_SCROLLBAR_HANDLE, state, r.x, r.y, r.width, r.height, 0, orientation);
return 0;
}
/*
protected JButton createScrollButton(int direction) {
int type;
return new MetaThemeScrollButton(type, this);
*/
public int getTabAreaHeight() {
return calculateTabAreaHeight(tabPane.getTabPlacement(), runCount, maxTabHeight);