Class ShapeStateAttributeHandler<V extends org.kie.workbench.common.stunner.core.client.shape.view.ShapeView>
- java.lang.Object
-
- org.kie.workbench.common.stunner.core.client.shape.impl.ShapeStateAttributeHandler<V>
-
- All Implemented Interfaces:
org.kie.workbench.common.stunner.core.client.shape.HasShapeState,ShapeStateHandler
public class ShapeStateAttributeHandler<V extends org.kie.workbench.common.stunner.core.client.shape.view.ShapeView> extends Object implements ShapeStateHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShapeStateAttributeHandler.ShapeStateAttributestatic classShapeStateAttributeHandler.ShapeStateAttributes
-
Constructor Summary
Constructors Constructor Description ShapeStateAttributeHandler()ShapeStateAttributeHandler(BiConsumer<V,ShapeStateAttributeHandler.ShapeStateAttributes> stateAttributesApplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyState(org.kie.workbench.common.stunner.core.client.shape.ShapeState shapeState)org.kie.workbench.common.stunner.core.client.shape.ShapeStategetShapeState()VgetShapeView()static <V extends org.kie.workbench.common.stunner.core.client.shape.view.ShapeView>
BiConsumer<V,ShapeStateAttributeHandler.ShapeStateAttributes>newDefaultStateApplier()org.kie.workbench.common.stunner.core.client.shape.ShapeStatereset()ShapeStateAttributeHandler<V>setView(Supplier<V> viewSupplier)ShapeStateAttributeHandler<V>shapeAttributesChanged()ShapeStateAttributeHandler<V>useAttributes(Function<org.kie.workbench.common.stunner.core.client.shape.ShapeState,ShapeStateAttributeHandler.ShapeStateAttributes> stateAttributesProvider)
-
-
-
Constructor Detail
-
ShapeStateAttributeHandler
public ShapeStateAttributeHandler()
-
ShapeStateAttributeHandler
public ShapeStateAttributeHandler(BiConsumer<V,ShapeStateAttributeHandler.ShapeStateAttributes> stateAttributesApplier)
-
-
Method Detail
-
newDefaultStateApplier
public static <V extends org.kie.workbench.common.stunner.core.client.shape.view.ShapeView> BiConsumer<V,ShapeStateAttributeHandler.ShapeStateAttributes> newDefaultStateApplier()
-
useAttributes
public ShapeStateAttributeHandler<V> useAttributes(Function<org.kie.workbench.common.stunner.core.client.shape.ShapeState,ShapeStateAttributeHandler.ShapeStateAttributes> stateAttributesProvider)
-
setView
public ShapeStateAttributeHandler<V> setView(Supplier<V> viewSupplier)
-
shapeAttributesChanged
public ShapeStateAttributeHandler<V> shapeAttributesChanged()
- Specified by:
shapeAttributesChangedin interfaceShapeStateHandler
-
applyState
public void applyState(org.kie.workbench.common.stunner.core.client.shape.ShapeState shapeState)
- Specified by:
applyStatein interfaceorg.kie.workbench.common.stunner.core.client.shape.HasShapeState
-
reset
public org.kie.workbench.common.stunner.core.client.shape.ShapeState reset()
- Specified by:
resetin interfaceShapeStateHandler
-
getShapeState
public org.kie.workbench.common.stunner.core.client.shape.ShapeState getShapeState()
- Specified by:
getShapeStatein interfaceShapeStateHandler
-
getShapeView
public V getShapeView()
-
-