Class Area


  • public class Area
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Area​(int topLeftX, int topLeftY, int bottomRightX, int bottomRightY)  
      Area​(java.awt.Point topLeft, java.awt.Point bottomRight)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Point getRandomPoint()  
      boolean includes​(java.awt.Point point)  
      • Methods inherited from class java.lang.Object

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

      • topLeftPoint

        public java.awt.Point topLeftPoint
      • bottomRightPoint

        public java.awt.Point bottomRightPoint
    • Constructor Detail

      • Area

        public Area​(java.awt.Point topLeft,
                    java.awt.Point bottomRight)
      • Area

        public Area​(int topLeftX,
                    int topLeftY,
                    int bottomRightX,
                    int bottomRightY)
    • Method Detail

      • getRandomPoint

        public java.awt.Point getRandomPoint()
      • includes

        public boolean includes​(java.awt.Point point)