private WRectF hv(final WRectF rect) { boolean horizontal = this.chart_.getOrientation() == Orientation.Vertical; if (horizontal) { return rect; } else { return new WRectF( this.getWidth().getValue() - rect.getY() - rect.getHeight(), rect.getX(), rect.getHeight(), rect.getWidth()); } }