Class BoundsTransformation
java.lang.Object
com.nomagic.magicdraw.uml.symbols.BoundsTransformation
Symbol bounds transformation.
It provides only one transformation - bounds growing by some factor. Same as
Rectangle.grow(int, int)
-
Constructor Summary
ConstructorDescriptionConstructor with 0 bounds growing factorBoundsTransformation
(int grow) Constructor -
Method Summary
-
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
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
-