org.eclipse.actf.accservice.javapp
Class JavaAccessibleImage

java.lang.Object
  extended by org.eclipse.actf.accservice.javapp.JavaAccessibleImage
All Implemented Interfaces:
IAccessibleImageElement

public class JavaAccessibleImage
extends Object
implements IAccessibleImageElement

implementation of the IAccessibleImageElement object for the Java Accesibility API's AccessibleIcon.

Author:
Mike Smith
See Also:
AccessibleIcon

Constructor Summary
JavaAccessibleImage(AccessibleIcon image)
          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
 int getWidth()
          get the width for the accessible image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaAccessibleImage

public JavaAccessibleImage(AccessibleIcon image)
Constructor used to create an accessible image object. This constructor will usually be invoked from JavaAccessible and is not typically called by clients.

Parameters:
image - - AccessibleIcon object
Method Detail

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

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

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