public class QuadrantConstraint extends Object implements PointConstraint
Constructor and Description |
---|
QuadrantConstraint(Point2D origin,
int quadrant)
Create a new QuadrantConstraint with the given origin and
quadrant.
|
Modifier and Type | Method and Description |
---|---|
void |
constrain(Point2D point)
Ask the bounds constraint to constrain this point.
|
Point2D |
getOrigin()
Get the origin
|
int |
getQuadrant()
Get the quadrant
|
void |
setOrigin(Point2D origin)
Set the origin
|
void |
setQuadrant(int quadrant)
Set the quadrant
|
boolean |
snapped()
Return false.
|
public QuadrantConstraint(Point2D origin, int quadrant)
public void constrain(Point2D point)
constrain
in interface PointConstraint
public Point2D getOrigin()
public int getQuadrant()
public void setOrigin(Point2D origin)
public void setQuadrant(int quadrant)
public boolean snapped()
snapped
in interface PointConstraint
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.