Class LienzoShapeUtils
- java.lang.Object
-
- org.kie.workbench.common.stunner.client.lienzo.util.LienzoShapeUtils
-
public class LienzoShapeUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description LienzoShapeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.ait.lienzo.client.core.types.LinearGradientgetLinearGradient(String startColor, String endColor, Double width, Double height)static double[]getScaleFactor(double width, double height, double targetWidth, double targetHeight)static com.ait.lienzo.client.core.shape.wires.LayoutContainer.LayoutgetWiresLayout(org.kie.workbench.common.stunner.core.client.shape.HasChildren.Layout layout)static voidscale(com.ait.lienzo.client.core.shape.Shape shape, double width, double height)static com.ait.lienzo.client.core.shape.wires.OptionalBoundstranslateBounds(org.kie.workbench.common.stunner.core.graph.content.Bounds bounds)
-
-
-
Method Detail
-
scale
public static void scale(com.ait.lienzo.client.core.shape.Shape shape, double width, double height)
-
getScaleFactor
public static double[] getScaleFactor(double width, double height, double targetWidth, double targetHeight)
-
getWiresLayout
public static com.ait.lienzo.client.core.shape.wires.LayoutContainer.Layout getWiresLayout(org.kie.workbench.common.stunner.core.client.shape.HasChildren.Layout layout)
-
getLinearGradient
public static com.ait.lienzo.client.core.types.LinearGradient getLinearGradient(String startColor, String endColor, Double width, Double height)
-
translateBounds
public static com.ait.lienzo.client.core.shape.wires.OptionalBounds translateBounds(org.kie.workbench.common.stunner.core.graph.content.Bounds bounds)
-
-