Back to index

moin  1.9.0~rc2
Public Member Functions
CH.ifa.draw.framework.PointConstrainer Interface Reference

Interface to constrain a Point. More...

Inheritance diagram for CH.ifa.draw.framework.PointConstrainer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Point constrainPoint (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.

Detailed Description

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

Definition at line 23 of file PointConstrainer.java.


Member Function Documentation

Constrains the given point.

Returns:
constrained point.

Implemented in CH.ifa.draw.standard.GridConstrainer.

Here is the caller graph for this function:

Gets the x offset to move an object.

Implemented in CH.ifa.draw.standard.GridConstrainer.

Here is the caller graph for this function:

Gets the y offset to move an object.

Implemented in CH.ifa.draw.standard.GridConstrainer.

Here is the caller graph for this function:


The documentation for this interface was generated from the following file: