com.mebigfatguy.polycasso
Enum ImprovementType

java.lang.Object
  extended by java.lang.Enum<ImprovementType>
      extended by com.mebigfatguy.polycasso.ImprovementType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ImprovementType>

public enum ImprovementType
extends java.lang.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

AddPolygon

public static final ImprovementType AddPolygon
add a new polygon to the list being rendered


RemovePolygon

public static final ImprovementType RemovePolygon
remove a polygon from the list being rendered


AddPoint

public static final ImprovementType AddPoint
add a point to a random existing polygon


RemovePoint

public static final ImprovementType RemovePoint
remove a point from a random existing polygon


MovePoint

public static final ImprovementType MovePoint
move a point from a random existing polygon


RectifyPoint

public static final ImprovementType RectifyPoint
pick a point at random and align it horizontally or vertically with a neighboring point for an existing polygon


ReorderPoly

public static final ImprovementType ReorderPoly
change the z order of a random existing polygon


ShrinkPoly

public static final ImprovementType ShrinkPoly
adjust the points of the polygon so they move towards the centroid of the polygon


EnlargePoly

public static final ImprovementType EnlargePoly
adjust the points of the polygon so they move away from the centroid of the polygon


ShiftPoly

public static final ImprovementType ShiftPoly
translate the points of the polygon in an x or y direction


ChangeColor

public static final ImprovementType ChangeColor
adjust a component of the color of a random existing polygon


ChangeAlpha

public static final ImprovementType ChangeAlpha
adjust the transparency of a random existing polygon


White

public static final ImprovementType White
change the color to white


Black

public static final ImprovementType Black
change the color to black


Breed

public static final ImprovementType Breed
combine two sets of polygons


BreedElite

public static final ImprovementType BreedElite
combine two sets of polygons one from an elite


CompleteChange

public static final ImprovementType CompleteChange
completely change all attributes of a random existing polygon

Method Detail

values

public static ImprovementType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ImprovementType c : ImprovementType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ImprovementType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2009-2010 MeBigFatGuy.com. All Rights Reserved.