public class Geometry2Shape
extends java.lang.Object
Geometry2Shape
provides methods for the conversion
of IGeometry
implementations to JavaFX Shape
implementations.Constructor and Description |
---|
Geometry2Shape() |
Modifier and Type | Method and Description |
---|---|
static javafx.scene.shape.Arc |
toArc(Arc arc)
Returns a
Arc that visualizes the given
Arc . |
static javafx.scene.shape.CubicCurve |
toCubicCurve(CubicCurve cubic)
Returns a
CubicCurve that visualizes the given
CubicCurve . |
static javafx.scene.shape.Ellipse |
toEllipse(Ellipse ellipse)
Returns a
Ellipse that visualizes the given
Ellipse . |
static javafx.scene.shape.Line |
toLine(Line line)
Returns a
Line that visualizes the given
Line . |
static javafx.scene.shape.Path |
toPath(Path path)
Converts the given
Path to a JavaFX
Path . |
static javafx.scene.shape.PathElement[] |
toPathElements(Path path)
Converts the given
Path to an array of JavaFX PathElement
s. |
static javafx.scene.shape.Polygon |
toPolygon(Polygon polygon)
Returns a
Polygon that visualizes the given
Polygon . |
static javafx.scene.shape.Polyline |
toPolyline(Polyline polyline)
Returns a
Polyline that visualizes the given
Polyline . |
static javafx.scene.shape.QuadCurve |
toQuadCurve(QuadraticCurve quadCurve)
Returns a
QuadCurve that visualizes the given
QuadraticCurve . |
static javafx.scene.shape.Rectangle |
toRectangle(Rectangle rect)
Returns a
Rectangle that visualizes the given
Rectangle . |
static javafx.scene.shape.Rectangle |
toRectangle(RoundedRectangle roundedRect)
Returns a
Rectangle that visualizes the given
RoundedRectangle . |
static javafx.scene.shape.Shape |
toShape(IGeometry geometry)
Creates a
Shape that visualizes the passed-in IGeometry . |
public static javafx.scene.shape.Arc toArc(Arc arc)
Arc
that visualizes the given
Arc
.public static javafx.scene.shape.CubicCurve toCubicCurve(CubicCurve cubic)
CubicCurve
that visualizes the given
CubicCurve
.cubic
- The CubicCurve
from which a
CubicCurve
is constructed.CubicCurve
that
visualizes the given CubicCurve
.public static javafx.scene.shape.Ellipse toEllipse(Ellipse ellipse)
Ellipse
that visualizes the given
Ellipse
.public static javafx.scene.shape.Line toLine(Line line)
Line
that visualizes the given
Line
.public static javafx.scene.shape.Path toPath(Path path)
Path
to a JavaFX
Path
.path
- The Path
to convert.Path
.public static javafx.scene.shape.PathElement[] toPathElements(Path path)
Path
to an array of JavaFX PathElement
s.path
- The Path
to convert.PathElement
s.public static javafx.scene.shape.Polygon toPolygon(Polygon polygon)
Polygon
that visualizes the given
Polygon
.public static javafx.scene.shape.Polyline toPolyline(Polyline polyline)
Polyline
that visualizes the given
Polyline
.public static javafx.scene.shape.QuadCurve toQuadCurve(QuadraticCurve quadCurve)
QuadCurve
that visualizes the given
QuadraticCurve
.quadCurve
- The QuadraticCurve
from which a
QuadCurve
is constructed.QuadCurve
that
visualizes the given QuadraticCurve
.public static javafx.scene.shape.Rectangle toRectangle(Rectangle rect)
Rectangle
that visualizes the given
Rectangle
.public static javafx.scene.shape.Rectangle toRectangle(RoundedRectangle roundedRect)
Rectangle
that visualizes the given
RoundedRectangle
.roundedRect
- The RoundedRectangle
from which a
Rectangle
is constructed.Rectangle
that
visualizes the given RoundedRectangle
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.