public enum NodeShape extends Enum<NodeShape>
Modifier and Type | Method and Description |
---|---|
SVGShape |
getShape(int x,
int y,
int width,
int height) |
static NodeShape |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeShape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeShape RECTANGLE
public static final NodeShape ELLIPSE
public static NodeShape[] values()
for (NodeShape c : NodeShape.values()) System.out.println(c);
public static NodeShape valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic SVGShape getShape(int x, int y, int width, int height)
Copyright © 2005–2020. All rights reserved.