Interface BoxTransformer.BBox

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean above​(CoordinateID c)
      Returns true if the coordinate is above this box (larger y value).
      int getMaxx()
      Returns the maximum x value for this box.
      int getMaxy()
      Returns the maximum y value for this box.
      int getMinx()
      Returns the minimum x value for this box.
      int getMiny()
      Returns the minimum y value for this box.
      boolean isInside​(CoordinateID c)
      Returns true if the coordinate is inside the box.
      boolean isOnBorder​(CoordinateID c)
      Returns true if the coordinate is on the border of the Box, i.e., if an adjacent coordinate is not in the box.
      boolean leftOf​(CoordinateID c)
      Returns true if the coordinate is left of this box (smaller x value).
      CoordinateID putInBox​(CoordinateID c)
      Shifts the coordinate by the box's dimension (x- and y- separately) until it is inside and returns the result.
      boolean rightOf​(CoordinateID c)
      Returns true if the coordinate is right of this box (larger x value).
      void setX​(int minx2, int maxx2)
      Changes the box's x-dimensions.
      void setY​(int maxValue, int minValue)
      Changes the box's y-dimensions.
      boolean under​(CoordinateID c)
      Returns true if the coordinate is below this box (smaller y value).
    • Method Detail

      • getMaxx

        int getMaxx()
        Returns the maximum x value for this box. Note that this does not mean that all coordinate in the box have x
      • getMinx

        int getMinx()
        Returns the minimum x value for this box. Note that this does not mean that all coordinate in the box have x>getMinx.
      • getMiny

        int getMiny()
        Returns the minimum y value for this box. Note that this does not mean that all coordinate in the box have y>getMiny.
      • getMaxy

        int getMaxy()
        Returns the maximum y value for this box. Note that this does not mean that all coordinate in the box have y
      • setX

        void setX​(int minx2,
                  int maxx2)
        Changes the box's x-dimensions.
      • setY

        void setY​(int maxValue,
                  int minValue)
        Changes the box's y-dimensions.
      • isInside

        boolean isInside​(CoordinateID c)
        Returns true if the coordinate is inside the box.
      • isOnBorder

        boolean isOnBorder​(CoordinateID c)
        Returns true if the coordinate is on the border of the Box, i.e., if an adjacent coordinate is not in the box.
      • putInBox

        CoordinateID putInBox​(CoordinateID c)
        Shifts the coordinate by the box's dimension (x- and y- separately) until it is inside and returns the result.
      • leftOf

        boolean leftOf​(CoordinateID c)
        Returns true if the coordinate is left of this box (smaller x value).
      • rightOf

        boolean rightOf​(CoordinateID c)
        Returns true if the coordinate is right of this box (larger x value).
      • under

        boolean under​(CoordinateID c)
        Returns true if the coordinate is below this box (smaller y value).
      • above

        boolean above​(CoordinateID c)
        Returns true if the coordinate is above this box (larger y value).