public class BoundsConstraint extends java.lang.Object implements PointConstraint
Constructor and Description |
---|
BoundsConstraint(java.awt.geom.Rectangle2D bounds)
Create a new BoundsConstraint with the given bounds.
|
Modifier and Type | Method and Description |
---|---|
void |
constrain(java.awt.geom.Point2D point)
Ask the bounds constraint to constrain this point.
|
java.awt.geom.Rectangle2D |
getBounds()
Get the bounds
|
void |
setBounds(java.awt.geom.Rectangle2D bounds)
Set the bounds
|
boolean |
snapped()
Return false.
|
public BoundsConstraint(java.awt.geom.Rectangle2D bounds)
public void constrain(java.awt.geom.Point2D point)
constrain
in interface PointConstraint
public java.awt.geom.Rectangle2D getBounds()
public boolean snapped()
snapped
in interface PointConstraint
public void setBounds(java.awt.geom.Rectangle2D bounds)