private Vector2f dimensions, offset;
private DragListener dragListener;
public SimpleDraggable(Shape s) {
shape = s;
dimensions = new Vector2f();
dimensions.x = s.getMaxX() - s.getX();
dimensions.y = s.getMaxY() - s.getY();
setShape(s);
offset = new Vector2f(s.getX(), s.getY());
super.addListener((DragListener) this);
dragListener = NullListener.getSingleton();
}