Top Description Fields Constructors Methods
javafx.scene.shape

public final Enum StrokeType

extends Enum<StrokeType>
Class Inheritance

Defines where to draw the stroke around the boundary of a Shape node.
Since
JavaFX 2.0
See Also
Shape

Field Summary

Modifier and TypeField and Description
public static final StrokeType
CENTERED

The stroke is applied by thickening the boundary of the Shape node by a distance of half of the strokeWidth on either side of the boundary.

public static final StrokeType
INSIDE

The stroke is applied by extending the boundary of a closed Shape node into its interior by a distance specified by the strokeWidth.

public static final StrokeType
OUTSIDE

The stroke is applied by extending the boundary of a closed Shape node outside of its interior by a distance specified by the strokeWidth.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static StrokeType
public static StrokeType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CENTEREDback to summary
public static final StrokeType CENTERED

The stroke is applied by thickening the boundary of the Shape node by a distance of half of the strokeWidth on either side of the boundary. Since the definition of CENETERED is symmetric and agnostic as to the location of any interior of a shape, it can be used for either closed or unclosed shapes.

The image shows a shape without stroke and the same shape with a thick centered stroke applied.

A visual rendering
of StrokeType.CENTERED

INSIDEback to summary
public static final StrokeType INSIDE

The stroke is applied by extending the boundary of a closed Shape node into its interior by a distance specified by the strokeWidth. Since the definition of INSIDE depends on the filled interior of the shape, this StrokeType is undefined for unclosed shapes.

The image shows a shape without stroke and the same shape with a thick inside stroke applied.

A visual rendering
of StrokeType.INSIDE

OUTSIDEback to summary
public static final StrokeType OUTSIDE

The stroke is applied by extending the boundary of a closed Shape node outside of its interior by a distance specified by the strokeWidth. Since the definition of OUTSIDE depends on the filled interior of the shape, this StrokeType is undefined for unclosed shapes.

The image shows a shape without stroke and the same shape with a thick outside stroke applied.

A visual rendering
of StrokeType.OUTSIDE

Constructor Detail

StrokeTypeback to summary
private StrokeType()

Method Detail

valueOfback to summary
public static StrokeType valueOf(String name)
valuesback to summary
public static StrokeType[] values()