All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface CH.ifa.draw.framework.PointConstrainer

public interface 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 Index

 o constrainPoint(Point)
Constrains the given point.
 o getStepX()
Gets the x offset to move an object.
 o getStepY()
Gets the y offset to move an object.

Methods

 o constrainPoint
 public abstract Point constrainPoint(Point p)
Constrains the given point.

Returns:
constrained point.
 o getStepX
 public abstract int getStepX()
Gets the x offset to move an object.

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index