Documentation of 'CH.ifa.draw.framework.PointConstrainer' Java class
PointConstrainer
CH.ifa.draw.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 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.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.