public class BoundsConstraint extends Object implements PointConstraint
| Constructor and Description |
|---|
BoundsConstraint(Rectangle2D bounds)
Create a new BoundsConstraint with the given bounds.
|
| Modifier and Type | Method and Description |
|---|---|
void |
constrain(Point2D point)
Ask the bounds constraint to constrain this point.
|
Rectangle2D |
getBounds()
Get the bounds
|
void |
setBounds(Rectangle2D bounds)
Set the bounds
|
boolean |
snapped()
Return false.
|
public BoundsConstraint(Rectangle2D bounds)
public void constrain(Point2D point)
constrain in interface PointConstraintpublic Rectangle2D getBounds()
public boolean snapped()
snapped in interface PointConstraintpublic void setBounds(Rectangle2D bounds)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.