Class ConverterToShape
java.lang.Object
com.nomagic.magicdraw.uml.symbols.ConverterToShape
Convert shape bounds to
Shape
. Optionally can use BoundsTransformation
-
Constructor Summary
ConstructorDescriptionConstructorConverterToShape
(BoundsTransformation transformation) Constructor -
Method Summary
Modifier and TypeMethodDescriptionconvert
(ContainerShape shape, PresentationElement element) Convert container to shapeconvert
(Arc2D arc, PresentationElement element) Convert arc to shapeconvert
(GeneralPath path, PresentationElement element) Convert path to shapeconvert
(Rectangle2D rectangle, PresentationElement element) Convert rectangle to shapeconvert
(RoundRectangle2D rectangle, PresentationElement element) Convert rounded rectangle to shapeconvert
(Polygon polygon, PresentationElement element) Convert polygon to shapefinal Shape
convert
(Shape shape, PresentationElement element) convertToEllipse
(Rectangle2D ellipse, PresentationElement element) Convert ellipse to shape
-
Constructor Details
-
ConverterToShape
public ConverterToShape()Constructor -
ConverterToShape
Constructor- Parameters:
transformation
- converting transformation
-
-
Method Details
-
getTransformation
- Returns:
- transformation
-
convert
-
convert
Convert rectangle to shape- Parameters:
rectangle
- rectangleelement
- symbol- Returns:
- shape
-
convert
Convert rounded rectangle to shape- Parameters:
rectangle
- rectangleelement
- symbol- Returns:
- shape
-
convert
Convert arc to shape- Parameters:
arc
- arcelement
- symbol- Returns:
- shape
-
convert
Convert container to shape- Parameters:
shape
- container shapeelement
- symbol- Returns:
- shape
-
convertToEllipse
Convert ellipse to shape- Parameters:
ellipse
- ellipseelement
- symbol- Returns:
- shape
-
convert
Convert path to shape- Parameters:
path
- pathelement
- symbol- Returns:
- shape
-
convert
Convert polygon to shape- Parameters:
polygon
- polygonelement
- symbol- Returns:
- shape
-