@Test public void testSetDragBounds() { tested.setDragBounds(Bounds.create(1.5d, 6.4d, 564.78d, 543.84d)); ArgumentCaptor<OptionalBounds> bbCaptor = ArgumentCaptor.forClass(OptionalBounds.class); verify(control, times(1)).setLocationBounds(bbCaptor.capture()); final OptionalBounds bb = bbCaptor.getValue(); assertEquals(1.5d, bb.getMinX(), 0d); assertEquals(6.4d, bb.getMinY(), 0d); assertEquals(564.78d, bb.getMaxX(), 0d); assertEquals(543.84d, bb.getMaxY(), 0d); }
@Override public T setDragBounds(final Bounds bounds) { ifLocationBoundsConstraintsSupported(() -> LienzoShapeUtils.translateBounds(bounds)); return cast(); }
WiresShapeView extends WiresShape implements LienzoShapeView<T>,
                   HasDragBounds<T> { @Override public T setDragBounds(final Bounds bounds) { ifLocationBoundsConstraintsSupported(() -> LienzoShapeUtils.translateBounds(bounds)); return cast(); } }
WiresShapeView extends WiresShape implements LienzoShapeView<T>,
                   HasDragBounds<T> { @Override public T setDragBounds(final Bounds bounds) { ifLocationBoundsConstraintsSupported(() -> LienzoShapeUtils.translateBounds(bounds)); return cast(); } WiresShapeView(final MultiPath path);  WiresShapeView(final MultiPath path,
                          final LayoutContainer layoutContainer); }
WiresShapeView extends WiresShape implements LienzoShapeView<T>,
                   HasDragBounds<T> { @Override public T setDragBounds(final Bounds bounds) { ifLocationBoundsConstraintsSupported(() -> LienzoShapeUtils.translateBounds(bounds)); return cast(); } WiresShapeView(final MultiPath path);  WiresShapeView(final MultiPath path,
                          final LayoutContainer layoutContainer); Shape<?> getShape(); @Override T setUUID(final String uuid); @Override String getUUID(); @Override double getShapeX(); @Override double getShapeY(); @Override T setShapeLocation(final Point2D location); @Override double getAlpha(); @Override T setAlpha(final double alpha); @Override Point2D getShapeAbsoluteLocation(); @Override String getFillColor(); @Override @SuppressWarnings("unchecked") T setFillColor(final String color); @Override double getFillAlpha(); @Override T setFillAlpha(final double alpha); @Override String getStrokeColor(); @Override T setStrokeColor(final String color); @Override double getStrokeAlpha(); @Override T setStrokeAlpha(final double alpha); @Override double getStrokeWidth(); @Override T setStrokeWidth(final double width); @Override T setDragEnabled(boolean draggable); @Override T setDragBounds(final Bounds bounds); @Override T moveToTop(); @Override T moveToBottom(); @Override T moveUp(); @Override T moveDown(); @Override BoundingBox getBoundingBox(); @Override void destroy(); T setListening(final boolean listening); @Override List<Shape<?>> getDecorators(); @Override T setShadow(final String color,
                       final int blur,
                       final double offx,
                       final double offy); @Override T removeShadow(); @Override Object getUserData(); @Override void setUserData(Object userData); }
WiresShapeView extends WiresShape implements LienzoShapeView<T>,
                   HasDragBounds<T> { @Override public T setDragBounds(final Bounds bounds) { ifLocationBoundsConstraintsSupported(() -> LienzoShapeUtils.translateBounds(bounds)); return cast(); } WiresShapeView(final MultiPath path);  WiresShapeView(final MultiPath path,
                          final LayoutContainer layoutContainer); Shape<?> getShape(); @Override T setUUID(final String uuid); @Override String getUUID(); @Override double getShapeX(); @Override double getShapeY(); @Override T setShapeLocation(final Point2D location); @Override double getAlpha(); @Override T setAlpha(final double alpha); @Override Point2D getShapeAbsoluteLocation(); @Override String getFillColor(); @Override @SuppressWarnings("unchecked") T setFillColor(final String color); @Override double getFillAlpha(); @Override T setFillAlpha(final double alpha); @Override String getStrokeColor(); @Override T setStrokeColor(final String color); @Override double getStrokeAlpha(); @Override T setStrokeAlpha(final double alpha); @Override double getStrokeWidth(); @Override T setStrokeWidth(final double width); @Override T setDragEnabled(boolean draggable); @Override T setDragBounds(final Bounds bounds); @Override T moveToTop(); @Override T moveToBottom(); @Override T moveUp(); @Override T moveDown(); @Override BoundingBox getBoundingBox(); @Override void destroy(); T setListening(final boolean listening); @Override List<Shape<?>> getDecorators(); @Override T setShadow(final String color,
                       final int blur,
                       final double offx,
                       final double offy); @Override T removeShadow(); @Override Object getUserData(); @Override void setUserData(Object userData);  }