Package arc.packer
Enum Class MaxRectsPacker.FreeRectChoiceHeuristic
java.lang.Object
java.lang.Enum<MaxRectsPacker.FreeRectChoiceHeuristic>
arc.packer.MaxRectsPacker.FreeRectChoiceHeuristic
- All Implemented Interfaces:
Serializable
,Comparable<MaxRectsPacker.FreeRectChoiceHeuristic>
,Constable
- Enclosing class:
- MaxRectsPacker
public static enum MaxRectsPacker.FreeRectChoiceHeuristic
extends Enum<MaxRectsPacker.FreeRectChoiceHeuristic>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBAF: Positions the rectangle into the smallest free rect into which it fits.BLSF: Positions the rectangle against the long side of a free rectangle into which it fits the best.BSSF: Positions the rectangle against the short side of a free rectangle into which it fits the best.BL: Does the Tetris placement.CP: Choosest the placement where the rectangle touches other rects as much as possible. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BestShortSideFit
BSSF: Positions the rectangle against the short side of a free rectangle into which it fits the best. -
BestLongSideFit
BLSF: Positions the rectangle against the long side of a free rectangle into which it fits the best. -
BestAreaFit
BAF: Positions the rectangle into the smallest free rect into which it fits. -
BottomLeftRule
BL: Does the Tetris placement. -
ContactPointRule
CP: Choosest the placement where the rectangle touches other rects as much as possible.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-