|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ImprovementType>
com.mebigfatguy.polycasso.ImprovementType
public enum ImprovementType
an enumeration of all the different improvement types that an ImageGenerator can attempt to make to an image.
Enum Constant Summary | |
---|---|
AddPoint
add a point to a random existing polygon |
|
AddPolygon
add a new polygon to the list being rendered |
|
Black
change the color to black |
|
Breed
combine two sets of polygons |
|
BreedElite
combine two sets of polygons one from an elite |
|
ChangeAlpha
adjust the transparency of a random existing polygon |
|
ChangeColor
adjust a component of the color of a random existing polygon |
|
CompleteChange
completely change all attributes of a random existing polygon |
|
EnlargePoly
adjust the points of the polygon so they move away from the centroid of the polygon |
|
MovePoint
move a point from a random existing polygon |
|
RectifyPoint
pick a point at random and align it horizontally or vertically with a neighboring point for an existing polygon |
|
RemovePoint
remove a point from a random existing polygon |
|
RemovePolygon
remove a polygon from the list being rendered |
|
ReorderPoly
change the z order of a random existing polygon |
|
ShiftPoly
translate the points of the polygon in an x or y direction |
|
ShrinkPoly
adjust the points of the polygon so they move towards the centroid of the polygon |
|
White
change the color to white |
Method Summary | |
---|---|
static ImprovementType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ImprovementType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ImprovementType AddPolygon
public static final ImprovementType RemovePolygon
public static final ImprovementType AddPoint
public static final ImprovementType RemovePoint
public static final ImprovementType MovePoint
public static final ImprovementType RectifyPoint
public static final ImprovementType ReorderPoly
public static final ImprovementType ShrinkPoly
public static final ImprovementType EnlargePoly
public static final ImprovementType ShiftPoly
public static final ImprovementType ChangeColor
public static final ImprovementType ChangeAlpha
public static final ImprovementType White
public static final ImprovementType Black
public static final ImprovementType Breed
public static final ImprovementType BreedElite
public static final ImprovementType CompleteChange
Method Detail |
---|
public static ImprovementType[] values()
for (ImprovementType c : ImprovementType.values()) System.out.println(c);
public static ImprovementType 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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |