public enum StrokeType extends java.lang.Enum<StrokeType>
Shape
Enum Constant and Description |
---|
CENTERED
The stroke is applied by extending the boundary of the
Shape
node by a distance of half of the strokeWidth
on either side (inside and outside) of the boundary. |
INSIDE
The stroke is applied by extending the boundary of the
Shape
node into its interior by a distance specified by the
strokeWidth . |
OUTSIDE
The stroke is applied by extending the boundary of the
Shape
node outside of its interior by a distance specified by the
strokeWidth . |
Modifier and Type | Method and Description |
---|---|
static StrokeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StrokeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StrokeType INSIDE
Shape
node into its interior by a distance specified by the
strokeWidth
.
The image shows a shape without stroke and the same shape with a thick inside stroke applied.
public static final StrokeType OUTSIDE
Shape
node outside of its interior by a distance specified by the
strokeWidth
.
The image shows a shape without stroke and the same shape with a thick outside stroke applied.
public static final StrokeType CENTERED
Shape
node by a distance of half of the strokeWidth
on either side (inside and outside) of the boundary.
The image shows a shape without stroke and the same shape with a thick centered stroke applied.
public static StrokeType[] values()
for (StrokeType c : StrokeType.values()) System.out.println(c);
public static StrokeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.