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