public class QuadrantConstraint extends java.lang.Object implements PointConstraint
Constructor and Description |
---|
QuadrantConstraint(java.awt.geom.Point2D origin,
int quadrant)
Create a new QuadrantConstraint with the given origin and
quadrant.
|
Modifier and Type | Method and Description |
---|---|
void |
constrain(java.awt.geom.Point2D point)
Ask the bounds constraint to constrain this point.
|
java.awt.geom.Point2D |
getOrigin()
Get the origin
|
int |
getQuadrant()
Get the quadrant
|
void |
setOrigin(java.awt.geom.Point2D origin)
Set the origin
|
void |
setQuadrant(int quadrant)
Set the quadrant
|
boolean |
snapped()
Return false.
|
public QuadrantConstraint(java.awt.geom.Point2D origin, int quadrant)
public void constrain(java.awt.geom.Point2D point)
constrain
in interface PointConstraint
public java.awt.geom.Point2D getOrigin()
public int getQuadrant()
public void setOrigin(java.awt.geom.Point2D origin)
public void setQuadrant(int quadrant)
public boolean snapped()
snapped
in interface PointConstraint