public LienzoShape(final V view, final ShapeStateHandler shapeStateHelper) { this.wrapped = new ShapeImpl<>(view, shapeStateHelper); }
@Override public void applyState(final ShapeState shapeState) { getShape().applyState(shapeState); } }
private boolean isSelected() { return ShapeState.SELECTED.equals(getShape().getShapeStateHandler().getShapeState()); } }
public ConnectorShape(final D shapeDef, final V view, final ShapeStateHandler shapeStateHelper) { super(shapeDef); this.shape = new ShapeImpl<>(view, shapeStateHelper); }
@SuppressWarnings("unchecked") public LienzoShape(final V view) { this.wrapped = new ShapeImpl<>(view, new ShapeStateAttributeAnimationHandler<>() .getAttributesHandler() .useAttributes(ShapeStateAttributesFactory::buildStrokeAttributes) .setView(() -> view)); }