@OpenApiAll
public class ConverterToShape
extends java.lang.Object
Shape
. Optionally can use BoundsTransformation
Constructor and Description |
---|
ConverterToShape()
Constructor
|
ConverterToShape(BoundsTransformation transformation)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.awt.Shape |
convert(java.awt.geom.Arc2D arc,
PresentationElement element)
Convert arc to shape
|
java.awt.Shape |
convert(ContainerShape shape,
PresentationElement element)
Convert container to shape
|
java.awt.Shape |
convert(java.awt.geom.GeneralPath path,
PresentationElement element)
Convert path to shape
|
java.awt.Shape |
convert(java.awt.Polygon polygon,
PresentationElement element)
Convert polygon to shape
|
java.awt.Shape |
convert(java.awt.geom.Rectangle2D rectangle,
PresentationElement element)
Convert rectangle to shape
|
java.awt.Shape |
convert(java.awt.geom.RoundRectangle2D rectangle,
PresentationElement element)
Convert rounded rectangle to shape
|
java.awt.Shape |
convert(java.awt.Shape shape,
PresentationElement element) |
java.awt.Shape |
convertToEllipse(java.awt.geom.Rectangle2D ellipse,
PresentationElement element)
Convert ellipse to shape
|
BoundsTransformation |
getTransformation() |
public ConverterToShape()
public ConverterToShape(BoundsTransformation transformation)
transformation
- converting transformationpublic BoundsTransformation getTransformation()
public final java.awt.Shape convert(java.awt.Shape shape, PresentationElement element)
public java.awt.Shape convert(java.awt.geom.Rectangle2D rectangle, PresentationElement element)
rectangle
- rectangleelement
- symbolpublic java.awt.Shape convert(java.awt.geom.RoundRectangle2D rectangle, PresentationElement element)
rectangle
- rectangleelement
- symbolpublic java.awt.Shape convert(java.awt.geom.Arc2D arc, PresentationElement element)
arc
- arcelement
- symbol@CheckForNull public java.awt.Shape convert(ContainerShape shape, PresentationElement element)
shape
- container shapeelement
- symbolpublic java.awt.Shape convertToEllipse(java.awt.geom.Rectangle2D ellipse, PresentationElement element)
ellipse
- ellipseelement
- symbolpublic java.awt.Shape convert(java.awt.geom.GeneralPath path, PresentationElement element)
path
- pathelement
- symbolpublic java.awt.Shape convert(java.awt.Polygon polygon, PresentationElement element)
polygon
- polygonelement
- symbol