public class SparkImage extends SparkObject
Modifier | Constructor and Description |
---|---|
protected |
SparkImage(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SparkImage。
|
Modifier and Type | Method and Description |
---|---|
double |
getBytesLoaded()
获取 已加载的图像的字节数。
|
double |
getBytesTotal()
获取 已加载或正加载的全部图像数据(字节)。
|
String |
getContentLoaderGrouping()
获取 可传递至关联 IContentLoader 实例 load() 方法的可选内容分组标识符。
|
String |
getFillMode()
获取 位图如何填写的值(维度)。
|
String |
getHorizontalAlign()
获取 内容无一比一纵横比并且 scaleMode 设为 BitmapScaleMode.LETTERBOX 时,水平对齐内容。
|
double |
getPreliminaryHeight()
获取 布局需要图像的“测量”范围时估计使用高度,但图像数据有待完成加载。
|
double |
getPreliminaryWidth()
获取 布局需要图像的“测量”范围时估计使用宽度,但图像数据有待完成加载。
|
String |
getScaleMode()
获取 fillMode 设为 BitmapFillMode.SCALE 时是否缩放图像。
|
String |
getSource()
获取 内容位置。
|
double |
getSourceHeight()
获取 原始图像数据的未缩放高度。
|
double |
getSourceWidth()
获取 原始图像数据的未缩放宽度。
|
String |
getVerticalAlign()
获取 内容无一比一纵横比并且 scaleMode 设为 BitmapScaleMode.LETTERBOX 时,垂直对齐内容。
|
boolean |
isClearOnLoad()
获取 加载新内容之前是否清除之前的图像。
|
boolean |
isSmooth()
获取 是否将平滑算法应用于位图图像。
|
boolean |
isTrustedSource()
获取 指示当前已加载内容是否是从源加载的标记,此源的安全策略允许跨域访问图像。
|
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocus
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected SparkImage(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 SparkImage 的句柄desktop
- 此对象所在的桌面public double getBytesLoaded()
public double getBytesTotal()
public boolean isClearOnLoad()
public String getContentLoaderGrouping()
public String getFillMode()
public String getHorizontalAlign()
public double getPreliminaryHeight()
public double getPreliminaryWidth()
public String getScaleMode()
public boolean isSmooth()
public String getSource()
public double getSourceHeight()
public double getSourceWidth()
public boolean isTrustedSource()
public String getVerticalAlign()
Copyright 2009-2012 Micro Focus. All Rights Reserved.