Class BoundsTransformation
- java.lang.Object
-
- com.nomagic.magicdraw.uml.symbols.BoundsTransformation
-
@OpenApiAll public class BoundsTransformation extends java.lang.Object
Symbol bounds transformation. It provides only one transformation - bounds growing by some factor. Same asRectangle.grow(int, int)
-
-
Constructor Summary
Constructors Constructor Description BoundsTransformation()
Constructor with 0 bounds growing factorBoundsTransformation(int grow)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGrow()
double
grow(double vector)
Grow length of given vectorint
grow(int vector)
Grow length of given vectorjava.awt.geom.RoundRectangle2D.Double
grow(java.awt.geom.RoundRectangle2D.Double r)
Grow give rectanglejava.awt.Rectangle
grow(java.awt.Rectangle r)
Grow give rectangle
-
-
-
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
-
-