Class BoundsTransformation


  • @OpenApiAll
    public class BoundsTransformation
    extends java.lang.Object
    Symbol bounds transformation. It provides only one transformation - bounds growing by some factor. Same as Rectangle.grow(int, int)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int grow  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getGrow()  
      double grow​(double vector)
      Grow length of given vector
      int grow​(int vector)
      Grow length of given vector
      java.awt.geom.RoundRectangle2D.Double grow​(java.awt.geom.RoundRectangle2D.Double r)
      Grow give rectangle
      java.awt.Rectangle grow​(java.awt.Rectangle r)
      Grow give rectangle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • grow

        private int grow
    • Constructor Detail

      • BoundsTransformation

        public BoundsTransformation()
        Constructor with 0 bounds growing factor
      • BoundsTransformation

        public BoundsTransformation​(int grow)
        Constructor
        Parameters:
        grow - bounds growing factor
    • Method Detail

      • getGrow

        public int getGrow()
        Returns:
        bounds growing factor
      • grow

        public java.awt.Rectangle grow​(java.awt.Rectangle r)
        Grow give rectangle
        Parameters:
        r - rectangle
        Returns:
        result rectangle
      • grow

        public java.awt.geom.RoundRectangle2D.Double grow​(java.awt.geom.RoundRectangle2D.Double r)
        Grow give rectangle
        Parameters:
        r - rectangle
        Returns:
        result rectangle
      • grow

        public int grow​(int vector)
        Grow length of given vector
        Parameters:
        vector - vector
        Returns:
        vector vector
      • grow

        public double grow​(double vector)
        Grow length of given vector
        Parameters:
        vector - vector
        Returns:
        vector vector