public float getPreferredSpan(int axis) {
		int extra = 2*(getBorder()+getSpace(axis));
		switch (axis) {
		case View.X_AXIS:
			return fWidth+extra;
		case View.Y_AXIS:
			return fHeight+extra;
		default:
			throw new IllegalArgumentException("Invalid axis: " + axis);
		}
	}