Class ConverterToShape
- java.lang.Object
-
- com.nomagic.magicdraw.uml.symbols.ConverterToShape
-
@OpenApiAll public class ConverterToShape extends java.lang.Object
Convert shape bounds toShape
. Optionally can useBoundsTransformation
-
-
Constructor Summary
Constructors Constructor Description ConverterToShape()
ConstructorConverterToShape(BoundsTransformation transformation)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Shape
convert(ContainerShape shape, PresentationElement element)
Convert container to shapejava.awt.Shape
convert(java.awt.geom.Arc2D arc, PresentationElement element)
Convert arc to shapejava.awt.Shape
convert(java.awt.geom.GeneralPath path, PresentationElement element)
Convert path to shapejava.awt.Shape
convert(java.awt.geom.Rectangle2D rectangle, PresentationElement element)
Convert rectangle to shapejava.awt.Shape
convert(java.awt.geom.RoundRectangle2D rectangle, PresentationElement element)
Convert rounded rectangle to shapejava.awt.Shape
convert(java.awt.Polygon polygon, PresentationElement element)
Convert polygon to shapejava.awt.Shape
convert(java.awt.Shape shape, PresentationElement element)
java.awt.Shape
convertToEllipse(java.awt.geom.Rectangle2D ellipse, PresentationElement element)
Convert ellipse to shapeBoundsTransformation
getTransformation()
-
-
-
Constructor Detail
-
ConverterToShape
public ConverterToShape()
Constructor
-
ConverterToShape
public ConverterToShape(BoundsTransformation transformation)
Constructor- Parameters:
transformation
- converting transformation
-
-
Method Detail
-
getTransformation
public BoundsTransformation getTransformation()
- Returns:
- transformation
-
convert
public final java.awt.Shape convert(java.awt.Shape shape, PresentationElement element)
-
convert
public java.awt.Shape convert(java.awt.geom.Rectangle2D rectangle, PresentationElement element)
Convert rectangle to shape- Parameters:
rectangle
- rectangleelement
- symbol- Returns:
- shape
-
convert
public java.awt.Shape convert(java.awt.geom.RoundRectangle2D rectangle, PresentationElement element)
Convert rounded rectangle to shape- Parameters:
rectangle
- rectangleelement
- symbol- Returns:
- shape
-
convert
public java.awt.Shape convert(java.awt.geom.Arc2D arc, PresentationElement element)
Convert arc to shape- Parameters:
arc
- arcelement
- symbol- Returns:
- shape
-
convert
@CheckForNull public java.awt.Shape convert(ContainerShape shape, PresentationElement element)
Convert container to shape- Parameters:
shape
- container shapeelement
- symbol- Returns:
- shape
-
convertToEllipse
public java.awt.Shape convertToEllipse(java.awt.geom.Rectangle2D ellipse, PresentationElement element)
Convert ellipse to shape- Parameters:
ellipse
- ellipseelement
- symbol- Returns:
- shape
-
convert
public java.awt.Shape convert(java.awt.geom.GeneralPath path, PresentationElement element)
Convert path to shape- Parameters:
path
- pathelement
- symbol- Returns:
- shape
-
convert
public java.awt.Shape convert(java.awt.Polygon polygon, PresentationElement element)
Convert polygon to shape- Parameters:
polygon
- polygonelement
- symbol- Returns:
- shape
-
-