this.orientation = orientation;
if(getOrientation() == VERTICAL)
{
preferredGirth = width = GIRTH;
setSize(preferredGirth, 50);
sliderBounds = new Box(0, 0, preferredGirth, 0);
}
else
{
preferredGirth = height = GIRTH;
setSize(50, preferredGirth);
sliderBounds = new Box(0, 0, 0, preferredGirth);
}
getEventHandler().add(MousePressedEvent.class, mouseProcessor);
getEventHandler().add(MouseReleasedEvent.class, mouseProcessor);
getEventHandler().add(MouseDraggedEvent.class, mouseProcessor);