|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines operations for a UI element that supports capturing of its image.
Method Summary | |
java.awt.Rectangle |
getBounds()
Returns the dimensions of the bounding rectangle of the specified screenable object. |
java.awt.image.BufferedImage |
getImage()
Returns the image that represents the screen shot of the current object. |
java.awt.Point |
getLocation()
Gets the location of this component. |
java.awt.Dimension |
getSize()
Returns the size of this component of a Dimension object. |
Method Detail |
public java.awt.Rectangle getBounds()
public java.awt.Point getLocation()
Point
representing
the top-left corner of the component's bounds in
the coordinate space of the component's parentpublic java.awt.Dimension getSize()
Dimension
object. The height
field of the Dimension
object contains
this component's height, and the width
field of the Dimension
object contains
this component's width.
Dimension
object that indicates the
size of this componentpublic java.awt.image.BufferedImage getImage() throws java.lang.IllegalStateException
java.awt.IllegalComponentStateException
- if an error occurs during creation of the image
java.lang.IllegalStateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |