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()); } }
private Rectangle toRectangle(WRectF rect) { return new Rectangle( (int) rect.getX(), (int) rect.getY(), (int) rect.getWidth(), (int) rect.getHeight()); }