- 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.MoveTothat corresponds withContext.moveTo(double, double)PathElement.LineTothat corresponds withContext.lineTo(double, double)PathElement.CurveTothat corresponds withContext.curveTo(double, double, double, double, double, double)PathElement.ClosePaththat corresponds withContext.closePath()
Path for more information about working with paths.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAPathDataType.CLOSE_PATHpath elementstatic final recordAPathDataType.CURVE_TOpath elementstatic final recordAPathDataType.LINE_TOpath elementstatic final recordAPathDataType.MOVE_TOpath element