Documentation of 'CH.ifa.draw.standard.GridConstrainer' Java class
GridConstrainer
CH.ifa.draw.standard

Class GridConstrainer

    • Constructor Summary

      Constructors 
      Constructor and Description
      GridConstrainer(int x, int y) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GridConstrainer

        public GridConstrainer(int x,
                               int y)
    • Method Detail

      • constrainPoint

        public java.awt.Point constrainPoint(java.awt.Point p)
        Constrains the given point.
        Specified by:
        constrainPoint in interface PointConstrainer
        Returns:
        constrained point.
      • getStepX

        public int getStepX()
        Gets the x offset to move an object.
        Specified by:
        getStepX in interface PointConstrainer
      • getStepY

        public int getStepY()
        Gets the y offset to move an object.
        Specified by:
        getStepY in interface PointConstrainer

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.