Class LienzoShapeUtils


  • public class LienzoShapeUtils
    extends Object
    • Constructor Detail

      • LienzoShapeUtils

        public LienzoShapeUtils()
    • 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)