@Test public void testSetBackgroundShape() { tested.setBackgroundShape(() -> backgroundShape); verifyShapeTypeAttributeWasSet(backgroundShape, "shapeType=BACKGROUND"); }
public ShapeStateDefaultHandler setBackgroundShape(final Supplier<LienzoShapeView<?>> shapeSupplier) { backgroundShapeSupplier = shapeSupplier; shapeViewDataEncoder.applyShapeViewType(shapeSupplier, ShapeType.BACKGROUND); return this; }
ShapeStateDefaultHandler implements ShapeStateHandler { public ShapeStateDefaultHandler setBackgroundShape(final Supplier<LienzoShapeView<?>> shapeSupplier) { backgroundShapeSupplier = shapeSupplier; shapeViewDataEncoder.applyShapeViewType(shapeSupplier, ShapeType.BACKGROUND); return this; } }
ShapeStateDefaultHandler implements ShapeStateHandler { public ShapeStateDefaultHandler setBackgroundShape(final Supplier<LienzoShapeView<?>> shapeSupplier) { backgroundShapeSupplier = shapeSupplier; shapeViewDataEncoder.applyShapeViewType(shapeSupplier, ShapeType.BACKGROUND); return this; } ShapeStateDefaultHandler();   ShapeStateDefaultHandler(final ShapeStateAttributeAnimationHandler<LienzoShapeView<?>> handler); }
ShapeStateDefaultHandler implements ShapeStateHandler { public ShapeStateDefaultHandler setBackgroundShape(final Supplier<LienzoShapeView<?>> shapeSupplier) { backgroundShapeSupplier = shapeSupplier; shapeViewDataEncoder.applyShapeViewType(shapeSupplier, ShapeType.BACKGROUND); return this; } ShapeStateDefaultHandler();   ShapeStateDefaultHandler(final ShapeStateAttributeAnimationHandler<LienzoShapeView<?>> handler); ShapeStateDefaultHandler setRenderType(final RenderType renderType); ShapeStateDefaultHandler setBorderShape(final Supplier<LienzoShapeView<?>> shapeSupplier); ShapeStateDefaultHandler setBackgroundShape(final Supplier<LienzoShapeView<?>> shapeSupplier); ShapeStateDefaultHandler setContainerShape(final Supplier<LienzoShapeView<?>> shapeSupplier); @Override void applyState(final ShapeState shapeState); @Override ShapeStateHandler shapeAttributesChanged(); @Override ShapeState reset(); @Override ShapeState getShapeState(); }
ShapeStateDefaultHandler implements ShapeStateHandler { public ShapeStateDefaultHandler setBackgroundShape(final Supplier<LienzoShapeView<?>> shapeSupplier) { backgroundShapeSupplier = shapeSupplier; shapeViewDataEncoder.applyShapeViewType(shapeSupplier, ShapeType.BACKGROUND); return this; } ShapeStateDefaultHandler();   ShapeStateDefaultHandler(final ShapeStateAttributeAnimationHandler<LienzoShapeView<?>> handler); ShapeStateDefaultHandler setRenderType(final RenderType renderType); ShapeStateDefaultHandler setBorderShape(final Supplier<LienzoShapeView<?>> shapeSupplier); ShapeStateDefaultHandler setBackgroundShape(final Supplier<LienzoShapeView<?>> shapeSupplier); ShapeStateDefaultHandler setContainerShape(final Supplier<LienzoShapeView<?>> shapeSupplier); @Override void applyState(final ShapeState shapeState); @Override ShapeStateHandler shapeAttributesChanged(); @Override ShapeState reset(); @Override ShapeState getShapeState();  }