public abstract class EdgeHandler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EdgeHandler.Edge |
Constructor and Description |
---|
EdgeHandler() |
Modifier and Type | Method and Description |
---|---|
abstract int |
compare(java.lang.Double pos1,
java.lang.Double pos2)
Compares two edge positions, making the more "extreme" position with respect to this edge the "lower" value.
|
abstract double |
getPosition(java.awt.geom.Rectangle2D rect)
Returns this edge's value for the given Rectangle2D
|
static EdgeHandler |
handler(EdgeHandler.Edge edge) |
abstract void |
move(java.awt.geom.Rectangle2D rect,
double position)
Moves the Rectangle2D to the given edge position
|
public abstract double getPosition(java.awt.geom.Rectangle2D rect)
public abstract void move(java.awt.geom.Rectangle2D rect, double position)
public abstract int compare(java.lang.Double pos1, java.lang.Double pos2)
public static EdgeHandler handler(EdgeHandler.Edge edge)