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
Strategy
DrawingView is the StrategyContext.
- See Also:
- DrawingView
-
constrainPoint(Point)
- Constrains the given point.
-
getStepX()
- Gets the x offset to move an object.
-
getStepY()
- Gets the y offset to move an object.
constrainPoint
public abstract Point constrainPoint(Point p)
- Constrains the given point.
- Returns:
- constrained point.
getStepX
public abstract int getStepX()
- Gets the x offset to move an object.
getStepY
public abstract int getStepY()
- Gets the y offset to move an object.
All Packages Class Hierarchy This Package Previous Next Index