Class BoundsTransformation

java.lang.Object
com.nomagic.magicdraw.uml.symbols.BoundsTransformation

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

    • BoundsTransformation

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

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

    • getGrow

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

      public Rectangle grow(Rectangle r)
      Grow give rectangle
      Parameters:
      r - rectangle
      Returns:
      result rectangle
    • grow

      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