public int getHeight() { if (region == null) { return delegate.getHeight(); } return region.getBottom() - region.getTop() + 1; }