public class SparkImage extends SparkObject
Modifier | Constructor and Description |
---|---|
protected |
SparkImage(JtfObjectHandle handle,
Desktop desktop)
Creates a new SparkImage with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
double |
getBytesLoaded()
Gets the number of bytes of the image already loaded.
|
double |
getBytesTotal()
Gets the total image data in bytes loaded or pending load.
|
String |
getContentLoaderGrouping()
Gets the optional content grouping identifier to pass to the an associated IContentLoader instance's load() method.
|
String |
getFillMode()
Gets a value how the bitmap fills in the dimensions.
|
String |
getHorizontalAlign()
Gets the horizontal alignment of the content when it does not have a one-to-one aspect ratio and scaleMode is set to BitmapScaleMode.LETTERBOX.
|
double |
getPreliminaryHeight()
Gets an estimate to use for height when the "measured" bounds of the image is requested by layout, but the image data has yet to complete loading.
|
double |
getPreliminaryWidth()
Gets an estimate to use for width when the "measured" bounds of the image is requested by layout, but the image data has yet to complete loading.
|
String |
getScaleMode()
Gets whether the image is scaled when fillMode is set to BitmapFillMode.SCALE.
|
String |
getSource()
Gets the content location.
|
double |
getSourceHeight()
Gets the unscaled height of the original image data.
|
double |
getSourceWidth()
Gets the unscaled width of the original image data.
|
String |
getVerticalAlign()
Gets the vertical alignment of the content when it does not have a one-to-one aspect ratio and scaleMode is set to BitmapScaleMode.LETTERBOX.
|
boolean |
isClearOnLoad()
Gets whether or not to clear previous image content prior to loading new content.
|
boolean |
isSmooth()
Gets whether to apply a smoothing algorithm to the bitmap image.
|
boolean |
isTrustedSource()
Gets a flag denoting whether the currently loaded content is considered loaded from a source whose security policy allows for cross domain image access.
|
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
- the handle that identifies the SparkImagedesktop
- the desktop on which this object livespublic 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.