JHotDraw 6.0b1

org.jhotdraw.framework
Interface PointConstrainer

All Known Implementing Classes:
GridConstrainer

public interface PointConstrainer

Interface to constrain a Point. This can be used to implement different kinds of grids.


Design Patterns

 o Strategy
DrawingView is the StrategyContext.

See Also:
DrawingView

Method Summary
 java.awt.Point constrainPoint(java.awt.Point p)
          Constrains the given point.
 int getStepX()
          Gets the x offset to move an object.
 int getStepY()
          Gets the y offset to move an object.
 

Method Detail

constrainPoint

java.awt.Point constrainPoint(java.awt.Point p)
Constrains the given point.

Returns:
constrained point.

getStepX

int getStepX()
Gets the x offset to move an object.


getStepY

int getStepY()
Gets the y offset to move an object.


JHotDraw 6.0b1