Class ShapeViewUserDataEncoder
- java.lang.Object
-
- org.kie.workbench.common.stunner.client.lienzo.util.ShapeViewUserDataEncoder
-
public class ShapeViewUserDataEncoder extends Object
This class is responsible to encode theShapeViewproperties within theShapeView.getUserData()that is used by the Diagram SVG generation.example: &shapeType=BORDER&renderType=FILL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyShapeViewRenderType(Supplier<LienzoShapeView<?>> shapeSupplier, ShapeStateDefaultHandler.RenderType renderType)voidapplyShapeViewType(Supplier<LienzoShapeView<?>> shapeSupplier, ShapeStateDefaultHandler.ShapeType shapeType)voidapplyShapeViewUserData(Supplier<LienzoShapeView<?>> shapeSupplier, String key, String value)static ShapeViewUserDataEncoderget()voidsetShapeViewChildrenIds(String uuid, com.ait.lienzo.client.core.shape.IContainer container)
-
-
-
Method Detail
-
get
public static final ShapeViewUserDataEncoder get()
-
applyShapeViewType
public void applyShapeViewType(Supplier<LienzoShapeView<?>> shapeSupplier, ShapeStateDefaultHandler.ShapeType shapeType)
-
applyShapeViewRenderType
public void applyShapeViewRenderType(Supplier<LienzoShapeView<?>> shapeSupplier, ShapeStateDefaultHandler.RenderType renderType)
-
applyShapeViewUserData
public void applyShapeViewUserData(Supplier<LienzoShapeView<?>> shapeSupplier, String key, String value)
-
setShapeViewChildrenIds
public void setShapeViewChildrenIds(String uuid, com.ait.lienzo.client.core.shape.IContainer container)
-
-