- All Known Implementing Classes:
PathElement.ClosePath
,PathElement.CurveTo
,PathElement.LineTo
,PathElement.MoveTo
public sealed interface PathElement
permits PathElement.MoveTo, PathElement.LineTo, PathElement.CurveTo, PathElement.ClosePath
The PathElement interface is a sealed type that models Path elements. It permits four records:
PathElement.MoveTo
that corresponds withContext.moveTo(double, double)
PathElement.LineTo
that corresponds withContext.lineTo(double, double)
PathElement.CurveTo
that corresponds withContext.curveTo(double, double, double, double, double, double)
PathElement.ClosePath
that corresponds withContext.closePath()
Path
for more information about working with paths.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
APathDataType.CLOSE_PATH
path elementstatic final record
APathDataType.CURVE_TO
path elementstatic final record
APathDataType.LINE_TO
path elementstatic final record
APathDataType.MOVE_TO
path element