org.eclipse.actf.accservice.core.win32.ia2
Class IA2AccessibleImage

java.lang.Object
  extended by org.eclipse.actf.accservice.core.win32.ia2.IA2AccessibleImage
All Implemented Interfaces:
IAccessibleImageElement

public class IA2AccessibleImage
extends Object
implements IAccessibleImageElement

implementation of IAccessibleImageElement for GUI controls that implement IAccessible2/IBM interfaces.

This class is a wrapper for an IAccessible2 pointer, a pointer that Provides access to a native Windows object that provides assistive technologies (ATs) with properties of GUI components that allow the AT to offer an alternative interface to the control. This class relies upon JCAccessible.dll for most of its implementation. The documentation for the Microsoft COM library and, in particular, for IAccessible2/IBM will be helpful.

Author:
Mike Smith

Constructor Summary
IA2AccessibleImage(int image, IA2Accessible parent)
          Constructor used to create an accessible image object
 
Method Summary
 String getDescription()
          get the description for the accessible image
 int getHeight()
          get the height for the accessible image
 Point getImagePosition()
           
 int getWidth()
          get the width for the accessible image
protected  String internalGetImageDescription()
           
protected  int internalGetImageHeight()
           
protected  Point internalGetImagePosition(int type)
           
protected  int internalGetImageWidth()
           
 int internalRef()
          used by native code only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IA2AccessibleImage

public IA2AccessibleImage(int image,
                          IA2Accessible parent)
Constructor used to create an accessible image object

Parameters:
image - reference pointer to the IA2Accessible image object
parent - IA2Accessible parent of this object
Method Detail

internalRef

public int internalRef()
used by native code only. Clients should not call directly.

Returns:
ptr address for native object

getDescription

public String getDescription()
                      throws InvalidComponentException
get the description for the accessible image

Specified by:
getDescription in interface IAccessibleImageElement
Returns:
image description or an empty string if no description is provided
Throws:
InvalidComponentException

internalGetImageDescription

protected String internalGetImageDescription()

getHeight

public int getHeight()
              throws InvalidComponentException
get the height for the accessible image

Specified by:
getHeight in interface IAccessibleImageElement
Returns:
image height or zero if no height is provided
Throws:
InvalidComponentException

internalGetImageHeight

protected int internalGetImageHeight()

getWidth

public int getWidth()
             throws InvalidComponentException
get the width for the accessible image

Specified by:
getWidth in interface IAccessibleImageElement
Returns:
image width or zerog if no width is provided
Throws:
InvalidComponentException

internalGetImageWidth

protected int internalGetImageWidth()

getImagePosition

public Point getImagePosition()
                       throws InvalidComponentException
Throws:
InvalidComponentException

internalGetImagePosition

protected Point internalGetImagePosition(int type)