public interface LocalAppCapable extends LocalDesktopCapable
T-Plan Robot Enterprise, (C) 2009-2025 T-Plan Limited. All rights reserved.
Modifier and Type | Method and Description |
---|---|
boolean |
canRotate()
Indicate if the screen can rotate or not.
|
Rectangle |
checkAppPosition()
Check position of the target application window and move it eventually to
a new position where the window fits the screen or minimizes the
invisible areas.
|
Insets |
getInsets()
Get the custom insets.
|
com.tplan.robot.remoteclient.nativeutils.NativeWindow |
getTargetApplicationWindow()
Get the target locally running application window.
|
boolean |
isLocalKeyboardIO()
Indicate whether the client automates the local keyboard.
|
boolean |
isLocalMouseIO()
Indicate whether the client automates the local mouse.
|
Point |
rotateIfNeeded(Point p)
Convert a coordinate if needed.
|
void |
setInsets(Insets in,
boolean blend)
Set the app insets.
|
Point |
unrotateIfNeeded(Point p)
Perform a reverse operation to
rotateIfNeeded(java.awt.Point) . |
getImageCopy, shouldWaitForImageEvent
com.tplan.robot.remoteclient.nativeutils.NativeWindow getTargetApplicationWindow()
NativeUtils
class.boolean isLocalMouseIO()
Indicate whether the client automates the local mouse. A classic local desktop client returns true. Clients which automate remote devices through the combination of local screen mirroring and a VNC driven mouse should return false.
The flag controls whether the Robot's UI pauses the executed script when a user mouse activity is detected. This feature is enabled only if this method returns true.
boolean isLocalKeyboardIO()
boolean canRotate()
Indicate if the screen can rotate or not. When the method returns true the UI size gets calculated to fit both the portrait and landscape views. Also, when the local desktop resolution is not large enough to fit the application size the user gets warned.
Point rotateIfNeeded(Point p)
p
- screen coordinates.Point unrotateIfNeeded(Point p)
rotateIfNeeded(java.awt.Point)
.p
- a point.Insets getInsets()
Get the custom insets. This method allows to define custom insets specifying how to crop the application window in the desktop view. This is in most cases used to limit the automation just to a part of the application window, for example to remove the OS or theme specific window title bar and borders.
This applies just to the automation of an application window running on the local desktop. Other clients may return null.
void setInsets(Insets in, boolean blend)
in
- the new insets. The value of null or empty insets are
interpreted as insets reset.blend
- true to merge the previous insets with the new one or false
to discard the old ones and apply the new ones.Rectangle checkAppPosition()