Class ConverterToShape


  • @OpenApiAll
    public class ConverterToShape
    extends java.lang.Object
    Convert shape bounds to Shape. Optionally can use BoundsTransformation
    • Constructor Detail

      • ConverterToShape

        public ConverterToShape()
        Constructor
      • ConverterToShape

        public ConverterToShape​(BoundsTransformation transformation)
        Constructor
        Parameters:
        transformation - converting transformation
    • Method Detail

      • convert

        public final java.awt.Shape convert​(java.awt.Shape shape,
                                            PresentationElement element)
      • convert

        public java.awt.Shape convert​(java.awt.geom.Rectangle2D rectangle,
                                      PresentationElement element)
        Convert rectangle to shape
        Parameters:
        rectangle - rectangle
        element - symbol
        Returns:
        shape
      • convert

        public java.awt.Shape convert​(java.awt.geom.RoundRectangle2D rectangle,
                                      PresentationElement element)
        Convert rounded rectangle to shape
        Parameters:
        rectangle - rectangle
        element - symbol
        Returns:
        shape
      • convert

        public java.awt.Shape convert​(java.awt.geom.Arc2D arc,
                                      PresentationElement element)
        Convert arc to shape
        Parameters:
        arc - arc
        element - symbol
        Returns:
        shape
      • convert

        @CheckForNull
        public java.awt.Shape convert​(ContainerShape shape,
                                      PresentationElement element)
        Convert container to shape
        Parameters:
        shape - container shape
        element - symbol
        Returns:
        shape
      • convertToEllipse

        public java.awt.Shape convertToEllipse​(java.awt.geom.Rectangle2D ellipse,
                                               PresentationElement element)
        Convert ellipse to shape
        Parameters:
        ellipse - ellipse
        element - symbol
        Returns:
        shape
      • convert

        public java.awt.Shape convert​(java.awt.geom.GeneralPath path,
                                      PresentationElement element)
        Convert path to shape
        Parameters:
        path - path
        element - symbol
        Returns:
        shape
      • convert

        public java.awt.Shape convert​(java.awt.Polygon polygon,
                                      PresentationElement element)
        Convert polygon to shape
        Parameters:
        polygon - polygon
        element - symbol
        Returns:
        shape