Package org.eclipse.gef.fx.utils
Class Geometry2Shape
java.lang.Object
org.eclipse.gef.fx.utils.Geometry2Shape
The utility class
Geometry2Shape provides methods for the conversion
of IGeometry implementations to JavaFX Shape implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Arcstatic CubicCurvetoCubicCurve(CubicCurve cubic) Returns aCubicCurvethat visualizes the givenCubicCurve.static Ellipsestatic Linestatic Pathstatic PathElement[]toPathElements(Path path) Converts the givenPathto an array of JavaFXPathElements.static Polygonstatic PolylinetoPolyline(Polyline polyline) static QuadCurvetoQuadCurve(QuadraticCurve quadCurve) Returns aQuadCurvethat visualizes the givenQuadraticCurve.static RectangletoRectangle(Rectangle rect) static RectangletoRectangle(RoundedRectangle roundedRect) Returns aRectanglethat visualizes the givenRoundedRectangle.static Shape
-
Constructor Details
-
Geometry2Shape
public Geometry2Shape()
-
-
Method Details
-
toArc
-
toCubicCurve
Returns aCubicCurvethat visualizes the givenCubicCurve.- Parameters:
cubic- TheCubicCurvefrom which aCubicCurveis constructed.- Returns:
- A newly created
CubicCurvethat visualizes the givenCubicCurve.
-
toEllipse
-
toLine
-
toPath
-
toPathElements
Converts the givenPathto an array of JavaFXPathElements.- Parameters:
path- ThePathto convert.- Returns:
- The new array of
PathElements.
-
toPolygon
-
toPolyline
-
toQuadCurve
Returns aQuadCurvethat visualizes the givenQuadraticCurve.- Parameters:
quadCurve- TheQuadraticCurvefrom which aQuadCurveis constructed.- Returns:
- A newly created
QuadCurvethat visualizes the givenQuadraticCurve.
-
toRectangle
-
toRectangle
Returns aRectanglethat visualizes the givenRoundedRectangle.- Parameters:
roundedRect- TheRoundedRectanglefrom which aRectangleis constructed.- Returns:
- A newly created
Rectanglethat visualizes the givenRoundedRectangle.
-
toShape
-