Class MouseVisualizer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BOTTOM
      A constant used to inform that window activating click needs to performed on the botton side of frame.
      static int LEFT
      A constant used to inform that window activating click needs to performed on the left side of frame.
      static int RIGHT
      A constant used to inform that window activating click needs to performed on the right side of frame.
      static int TOP
      A constant used to inform that window activating click needs to performed on the top side of frame.
    • Constructor Summary

      Constructors 
      Constructor Description
      MouseVisualizer()
      Creates a visualizer which clicks on (0, 0) window coords.
      MouseVisualizer​(int place, double pointLocation, int depth, boolean checkMouse)
      Creates a visualizer which clicks on window boder.
    • Field Detail

      • TOP

        public static int TOP
        A constant used to inform that window activating click needs to performed on the top side of frame.
        See Also:
        MouseVisualizer()
      • BOTTOM

        public static int BOTTOM
        A constant used to inform that window activating click needs to performed on the botton side of frame.
        See Also:
        MouseVisualizer()
      • LEFT

        public static int LEFT
        A constant used to inform that window activating click needs to performed on the left side of frame.
        See Also:
        MouseVisualizer()
      • RIGHT

        public static int RIGHT
        A constant used to inform that window activating click needs to performed on the right side of frame.
        See Also:
        MouseVisualizer()
    • Constructor Detail

      • MouseVisualizer

        public MouseVisualizer()
        Creates a visualizer which clicks on (0, 0) window coords.
      • MouseVisualizer

        public MouseVisualizer​(int place,
                               double pointLocation,
                               int depth,
                               boolean checkMouse)
        Creates a visualizer which clicks on window boder. In case if place == BOTTOM, for example clicks on (width * pointLocation, height - depth) coordinates.
        Parameters:
        place - One of the predefined value: TOP, BOTTOM, LEFT, RIGHT
        pointLocation - Proportial coordinates to click.
        depth - Distance from the border.
        checkMouse - Check if there is any java component under mouse
    • Method Detail

      • isWindowActive

        protected boolean isWindowActive​(WindowOperator winOper)
        Description copied from class: DefaultVisualizer
        Returns true if window is active.
        Overrides:
        isWindowActive in class DefaultVisualizer
        Parameters:
        winOper - an operator representing the window.
        Returns:
        true is window is active.
      • makeWindowActive

        protected void makeWindowActive​(WindowOperator winOper)
        Description copied from class: DefaultVisualizer
        Performs an atomic window-activization precedure. A window is sopposed to be prepared for the activization (i.e. put "to front").
        Overrides:
        makeWindowActive in class DefaultVisualizer
        Parameters:
        winOper - an operator representing the window.