Class MouseArea

  • All Implemented Interfaces:
    java.awt.Shape, java.io.Serializable, java.lang.Cloneable

    public class MouseArea
    extends java.awt.Rectangle
    This class represents a rectangular area on the screen that can be used for mouse operations.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D

        java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
    • Field Summary

      • Fields inherited from class java.awt.Rectangle

        height, width, x, y
      • Fields inherited from class java.awt.geom.Rectangle2D

        OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
    • Constructor Summary

      Constructors 
      Constructor Description
      MouseArea​(int x1, int y1, int x2, int y2)  
      MouseArea​(java.awt.Point topleft, java.awt.Point bottomright)  
      MouseArea​(java.awt.Rectangle rectangle)  
      MouseArea​(net.eternalclient.api.data.Point topleft, net.eternalclient.api.data.Point bottomright)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Point getRandomGaussianPoint()  
      java.awt.Point getRandomGaussianPoint​(boolean forceInside)  
      java.awt.Point getRandomPoint()  
      • Methods inherited from class java.awt.Rectangle

        add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union
      • Methods inherited from class java.awt.geom.Rectangle2D

        add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
      • Methods inherited from class java.awt.geom.RectangularShape

        clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.awt.Shape

        contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
    • Constructor Detail

      • MouseArea

        public MouseArea​(java.awt.Rectangle rectangle)
      • MouseArea

        public MouseArea​(int x1,
                         int y1,
                         int x2,
                         int y2)
      • MouseArea

        public MouseArea​(java.awt.Point topleft,
                         java.awt.Point bottomright)
      • MouseArea

        public MouseArea​(net.eternalclient.api.data.Point topleft,
                         net.eternalclient.api.data.Point bottomright)
    • Method Detail

      • getRandomPoint

        public java.awt.Point getRandomPoint()
      • getRandomGaussianPoint

        public java.awt.Point getRandomGaussianPoint()
      • getRandomGaussianPoint

        public java.awt.Point getRandomGaussianPoint​(boolean forceInside)