Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
Modifier and Type | Field and Description |
---|---|
protected Image |
Component.FlipBufferStrategy.drawBuffer
The drawing buffer
|
Modifier and Type | Method and Description |
---|---|
Image |
Toolkit.createImage(byte[] imagedata)
Creates an image which decodes the image stored in the specified
byte array.
|
abstract Image |
Toolkit.createImage(byte[] imagedata,
int imageoffset,
int imagelength)
Creates an image which decodes the image stored in the specified
byte array, and at the specified offset and length.
|
abstract Image |
Toolkit.createImage(java.awt.image.ImageProducer producer)
Creates an image with the specified image producer.
|
Image |
Component.createImage(java.awt.image.ImageProducer producer)
Creates an image from the specified image producer.
|
Image |
Component.createImage(int width,
int height)
Creates an off-screen drawable image
to be used for double buffering.
|
abstract Image |
Toolkit.createImage(java.lang.String filename)
Returns an image which gets pixel data from the specified file.
|
abstract Image |
Toolkit.createImage(java.net.URL url)
Returns an image which gets pixel data from the specified URL.
|
protected Image |
Component.FlipBufferStrategy.getBackBuffer()
|
Image |
Frame.getIconImage()
Returns the image to be displayed as the icon for this frame.
|
Image |
TrayIcon.getImage()
Returns the current image used for this
TrayIcon . |
abstract Image |
Toolkit.getImage(java.lang.String filename)
Returns an image which gets pixel data from the specified file,
whose format can be either GIF, JPEG or PNG.
|
abstract Image |
Toolkit.getImage(java.net.URL url)
Returns an image which gets pixel data from the specified URL.
|
Image |
Image.getScaledInstance(int width,
int height,
int hints)
Creates a scaled version of this image.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Image> |
Window.getIconImages()
Returns the sequence of images to be displayed as the icon for this window.
|
Modifier and Type | Method and Description |
---|---|
void |
MediaTracker.addImage(Image image,
int id)
Adds an image to the list of images being tracked by this media
tracker.
|
void |
MediaTracker.addImage(Image image,
int id,
int w,
int h)
Adds a scaled image to the list of images being tracked
by this media tracker.
|
int |
Component.checkImage(Image image,
java.awt.image.ImageObserver observer)
Returns the status of the construction of a screen representation
of the specified image.
|
abstract int |
Toolkit.checkImage(Image image,
int width,
int height,
java.awt.image.ImageObserver observer)
Indicates the construction status of a specified image that is
being prepared for display.
|
int |
Component.checkImage(Image image,
int width,
int height,
java.awt.image.ImageObserver observer)
Returns the status of the construction of a screen representation
of the specified image.
|
Cursor |
Toolkit.createCustomCursor(Image cursor,
Point hotSpot,
java.lang.String name)
Creates a new custom cursor object.
|
abstract boolean |
Graphics2D.drawImage(Image img,
java.awt.geom.AffineTransform xform,
java.awt.image.ImageObserver obs)
Renders an image, applying a transform from image space into user space
before drawing.
|
abstract boolean |
Graphics.drawImage(Image img,
int x,
int y,
Color bgcolor,
java.awt.image.ImageObserver observer)
Draws as much of the specified image as is currently available.
|
abstract boolean |
Graphics.drawImage(Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
Draws as much of the specified image as is currently available.
|
abstract boolean |
Graphics.drawImage(Image img,
int x,
int y,
int width,
int height,
Color bgcolor,
java.awt.image.ImageObserver observer)
Draws as much of the specified image as has already been scaled
to fit inside the specified rectangle.
|
abstract boolean |
Graphics.drawImage(Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
Draws as much of the specified image as has already been scaled
to fit inside the specified rectangle.
|
abstract boolean |
Graphics.drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color bgcolor,
java.awt.image.ImageObserver observer)
Draws as much of the specified area of the specified image as is
currently available, scaling it on the fly to fit inside the
specified area of the destination drawable surface.
|
abstract boolean |
Graphics.drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer)
Draws as much of the specified area of the specified image as is
currently available, scaling it on the fly to fit inside the
specified area of the destination drawable surface.
|
boolean |
Component.imageUpdate(Image img,
int infoflags,
int x,
int y,
int w,
int h)
Repaints the component when the image has changed.
|
boolean |
Component.prepareImage(Image image,
java.awt.image.ImageObserver observer)
Prepares an image for rendering on this component.
|
abstract boolean |
Toolkit.prepareImage(Image image,
int width,
int height,
java.awt.image.ImageObserver observer)
Prepares an image for rendering.
|
boolean |
Component.prepareImage(Image image,
int width,
int height,
java.awt.image.ImageObserver observer)
Prepares an image for rendering on this component at the
specified width and height.
|
void |
MediaTracker.removeImage(Image image)
Removes the specified image from this media tracker.
|
void |
MediaTracker.removeImage(Image image,
int id)
Removes the specified image from the specified tracking
ID of this media tracker.
|
void |
MediaTracker.removeImage(Image image,
int id,
int width,
int height)
Removes the specified image with the specified
width, height, and ID from this media tracker.
|
void |
Window.setIconImage(Image image)
Sets the image to be displayed as the icon for this window.
|
void |
Frame.setIconImage(Image image)
Sets the image to be displayed as the icon for this window.
|
void |
TrayIcon.setImage(Image image)
Sets the image for this
TrayIcon . |
Modifier and Type | Method and Description |
---|---|
void |
Window.setIconImages(java.util.List<? extends Image> icons)
Sets the sequence of images to be displayed as the icon
for this window.
|
Constructor and Description |
---|
TrayIcon(Image image)
Creates a
TrayIcon with the specified image. |
TrayIcon(Image image,
java.lang.String tooltip)
Creates a
TrayIcon with the specified image and
tooltip text. |
TrayIcon(Image image,
java.lang.String tooltip,
PopupMenu popup)
Creates a
TrayIcon with the specified image,
tooltip and popup menu. |