public enum ShapeFactory extends Enum<ShapeFactory>
Modifier and Type | Method and Description |
---|---|
abstract Shape |
create(DAC dac,
World world,
Vector center,
int radius,
int height) |
static ShapeFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShapeFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShapeFactory Cuboid
public static final ShapeFactory Cylinder
public static final ShapeFactory Sphere
public static final ShapeFactory Arbitrary
public static ShapeFactory[] values()
for (ShapeFactory c : ShapeFactory.values()) System.out.println(c);
public static ShapeFactory 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 nullCopyright © 2012. All Rights Reserved.