Class PointUtils


  • public class PointUtils
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void convertToAbsoluteBounds​(org.kie.workbench.common.stunner.core.graph.Node<?,​?> targetNode)  
      static void convertToRelativeBounds​(org.kie.workbench.common.stunner.core.graph.Node<?,​?> targetNode)  
      static org.kie.workbench.common.stunner.core.graph.content.view.Point2D dmndiPointToPoint2D​(org.kie.dmn.model.api.dmndi.Point dmndiPoint)  
      static double heightOfShape​(org.kie.dmn.model.api.dmndi.DMNShape shape)  
      static org.kie.workbench.common.stunner.core.graph.content.Bound lowerRightBound​(org.kie.workbench.common.stunner.core.graph.content.view.View view)  
      static org.kie.dmn.model.api.dmndi.Point point2dToDMNDIPoint​(org.kie.workbench.common.stunner.core.graph.content.view.Point2D point2d)  
      static org.kie.workbench.common.stunner.core.graph.content.Bound upperLeftBound​(org.kie.workbench.common.stunner.core.graph.content.view.View view)  
      static double widthOfShape​(org.kie.dmn.model.api.dmndi.DMNShape shape)  
      static double xOfBound​(org.kie.workbench.common.stunner.core.graph.content.Bound bound)  
      static double xOfShape​(org.kie.dmn.model.api.dmndi.DMNShape shape)  
      static double yOfBound​(org.kie.workbench.common.stunner.core.graph.content.Bound bound)  
      static double yOfShape​(org.kie.dmn.model.api.dmndi.DMNShape shape)  
    • Method Detail

      • point2dToDMNDIPoint

        public static org.kie.dmn.model.api.dmndi.Point point2dToDMNDIPoint​(org.kie.workbench.common.stunner.core.graph.content.view.Point2D point2d)
      • dmndiPointToPoint2D

        public static org.kie.workbench.common.stunner.core.graph.content.view.Point2D dmndiPointToPoint2D​(org.kie.dmn.model.api.dmndi.Point dmndiPoint)
      • convertToAbsoluteBounds

        public static void convertToAbsoluteBounds​(org.kie.workbench.common.stunner.core.graph.Node<?,​?> targetNode)
      • convertToRelativeBounds

        public static void convertToRelativeBounds​(org.kie.workbench.common.stunner.core.graph.Node<?,​?> targetNode)
      • xOfShape

        public static double xOfShape​(org.kie.dmn.model.api.dmndi.DMNShape shape)
      • yOfShape

        public static double yOfShape​(org.kie.dmn.model.api.dmndi.DMNShape shape)
      • widthOfShape

        public static double widthOfShape​(org.kie.dmn.model.api.dmndi.DMNShape shape)
      • heightOfShape

        public static double heightOfShape​(org.kie.dmn.model.api.dmndi.DMNShape shape)
      • upperLeftBound

        public static org.kie.workbench.common.stunner.core.graph.content.Bound upperLeftBound​(org.kie.workbench.common.stunner.core.graph.content.view.View view)
      • lowerRightBound

        public static org.kie.workbench.common.stunner.core.graph.content.Bound lowerRightBound​(org.kie.workbench.common.stunner.core.graph.content.view.View view)
      • xOfBound

        public static double xOfBound​(org.kie.workbench.common.stunner.core.graph.content.Bound bound)
      • yOfBound

        public static double yOfBound​(org.kie.workbench.common.stunner.core.graph.content.Bound bound)