Class PointDestination


  • public class PointDestination
    extends AbstractMouseDestination<java.awt.Point>
    Created with IntelliJ IDEA.
    Since:
    : 2/9/2015 Time : 6:14 PM
    • Constructor Detail

      • PointDestination

        public PointDestination​(java.awt.Point destination)
    • Method Detail

      • getDestinationShape

        public java.awt.Shape getDestinationShape()
        Gets the abstract destination shape.
        Specified by:
        getDestinationShape in class AbstractMouseDestination<java.awt.Point>
        Returns:
        The destination shape.
      • isVisible

        public boolean isVisible()
        Determines whether this destination is visible.
        Specified by:
        isVisible in class AbstractMouseDestination<java.awt.Point>
        Returns:
        Whether this destination is visible.
      • type

        public int type()
        Mouse destination type id.
        Overrides:
        type in class AbstractMouseDestination<java.awt.Point>
        Returns:
        the mouse destination type id.
      • containsMouse

        public boolean containsMouse()
        Determines if the destination shape contains the mouse.
        Overrides:
        containsMouse in class AbstractMouseDestination<java.awt.Point>
        Returns:
        true if destination shape contains mouse, otherwise false.
      • getSuitablePoint

        public java.awt.Point getSuitablePoint()
        Gets a gaussian distributed offset point within the bounding box of this mouse destination.
        Overrides:
        getSuitablePoint in class AbstractMouseDestination<java.awt.Point>
        Returns:
        point within the bounding box of this mouse destination .
      • canInteract

        public boolean canInteract()
        Description copied from class: AbstractMouseDestination
        Evaluates whether an interaction for this mouse destination is allowed to be performed.
        Overrides:
        canInteract in class AbstractMouseDestination<java.awt.Point>
        Returns:
        True if an interaction is allowed to be performed.