Interface ITransformProvider

All Superinterfaces:
IInitable

public interface ITransformProvider extends IInitable
Provides access to controls that can be moved, resized, and/or rotated within a two-dimensional space.

Implemented on a Microsoft UI Automation provider that must support the Transform control pattern. Support for this control pattern is not limited to objects on the desktop. This control pattern must also be implemented by the children of a container object as long as the children can be moved, resized, or rotated freely within the boundaries of the container.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    context object for ITransformProvider.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether the control can be moved.
    boolean
    Indicates whether the control can be rotated.
    boolean
    Indicates whether the control can be resized.
    void
    Move(double x, double y)
    Moves the control.
    void
    Resize(double width, double height)
    Resizes the control.
    void
    Rotate(double degrees)
    Rotates the control.

    Methods inherited from interface at.bestsolution.uia.IInitable

    initialize
  • Method Details

    • get_CanRotate

      boolean get_CanRotate()
      Indicates whether the control can be resized.
      Returns:
      true if control can be rotated
    • get_CanResize

      boolean get_CanResize()
      Indicates whether the control can be rotated.
      Returns:
      true if control can be resized
    • get_CanMove

      boolean get_CanMove()
      Indicates whether the control can be moved.
      Returns:
      true if control can be moved
    • Move

      void Move(double x, double y)
      Moves the control.

      An object cannot be moved, resized or rotated such that its resulting screen location would be completely outside the coordinates of its container and inaccessible to keyboard or mouse. For example, when a top-level window is moved completely off-screen or a child object is moved outside the boundaries of the container's viewport. In these cases the object is placed as close to the requested screen coordinates as possible with the top or left coordinates overridden to be within the container boundaries.

      Parameters:
      x - The absolute screen coordinates of the left side of the control.
      y - The absolute screen coordinates of the top of the control.
    • Resize

      void Resize(double width, double height)
      Resizes the control.

      When called on a control supporting split panes, this method might have the side effect of resizing other contiguous panes. An object cannot be moved, resized, or rotated such that its resulting screen location would be completely outside the coordinates of its container and inaccessible to keyboard or mouse. For example, a top-level window moved completely off-screen or a child object moved outside the boundaries of the container's viewport. In these cases the object is placed as close to the requested screen coordinates as possible with the top or left coordinates overridden to be within the container boundaries.

      Parameters:
      width - The new width of the window in pixels.
      height - The new height of the window in pixels.
    • Rotate

      void Rotate(double degrees)
      Rotates the control.

      An object cannot be moved, resized, or rotated such that its resulting screen location would be completely outside the coordinates of its container and inaccessible to keyboard or mouse. For example, a top-level window moved completely off-screen or a child object moved outside the boundaries of the container's viewport. In these cases the object is placed as close to the requested screen coordinates as possible with the top or left coordinates overridden to be within the container boundaries.

      Parameters:
      degrees - The number of degrees to rotate the control. A positive number rotates clockwise; a negative number rotates counterclockwise.