站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Uses of Class java.awt.Image - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

Uses of Class
java.awt.Image

Packages that use Image
java.applet Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. 
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
java.awt.dnd Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI. 
java.awt.font Provides classes and interface relating to fonts. 
java.awt.image Provides classes for creating and modifying images. 
java.beans Contains classes related to Java Beans development. 
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
 

Uses of Image in java.applet
 

Methods in java.applet that return Image
 Image Applet.getImage(URL url)
          Returns an Image object that can then be painted on the screen.
 Image Applet.getImage(URL url, String name)
          Returns an Image object that can then be painted on the screen.
 Image AppletContext.getImage(URL url)
          Returns an Image object that can then be painted on the screen.
 

Uses of Image in java.awt
 

Methods in java.awt that return Image
 Image Component.createImage(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.getImage(String filename)
          Returns an image which gets pixel data from the specified file.
abstract  Image Toolkit.getImage(URL url)
          Returns an image which gets pixel data from the specified URL.
abstract  Image Toolkit.createImage(String filename)
          Returns an image which gets pixel data from the specified file.
abstract  Image Toolkit.createImage(URL url)
          Returns an image which gets pixel data from the specified URL.
abstract  Image Toolkit.createImage(ImageProducer producer)
          Creates an image with the specified image producer.
 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.
 Image Image.getScaledInstance(int width, int height, int hints)
          Creates a scaled version of this image.
 Image Frame.getIconImage()
          Gets the image to be displayed in the minimized icon for this frame.
 

Methods in java.awt with parameters of type Image
 boolean Component.imageUpdate(Image img, int flags, int x, int y, int w, int h)
          Repaints the component when the image has changed.
 boolean Component.prepareImage(Image image, ImageObserver observer)
          Prepares an image for rendering on this component.
 boolean Component.prepareImage(Image image, int width, int height, ImageObserver observer)
          Prepares an image for rendering on this component at the specified width and height.
 int Component.checkImage(Image image, ImageObserver observer)
          Returns the status of the construction of a screen representation of the specified image.
 int Component.checkImage(Image image, int width, int height, ImageObserver observer)
          Returns the status of the construction of a screen representation of the specified image.
abstract  boolean Graphics.drawImage(Image img, int x, int y, 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, 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, Color bgcolor, 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, 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, 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, Color bgcolor, 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 Toolkit.prepareImage(Image image, int width, int height, ImageObserver observer)
          Prepares an image for rendering.
abstract  int Toolkit.checkImage(Image image, int width, int height, ImageObserver observer)
          Indicates the construction status of a specified image that is being prepared for display.
 Cursor Toolkit.createCustomCursor(Image cursor, Point hotSpot, String name)
          Creates a new custom cursor object.
abstract  boolean Graphics2D.drawImage(Image img, AffineTransform xform, ImageObserver obs)
          Renders an image, applying a transform from image space into user space before drawing.
 void Frame.setIconImage(Image image)
          Sets the image to displayed in the minimized icon for this frame.
 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.
 void MediaTracker.removeImage(Image image)
          Remove the specified image from this media tracker.
 void MediaTracker.removeImage(Image image, int id)
          Remove the specified image from the specified tracking ID of this media tracker.
 void MediaTracker.removeImage(Image image, int id, int width, int height)
          Remove the specified image with the specified width, height, and ID from this media tracker.
 

Uses of Image in java.awt.dnd
 

Methods in java.awt.dnd with parameters of type Image
 void DragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)
          Start a drag, given the DragGestureEvent that initiated the drag, the initial Cursor to use, the Image to drag, the offset of the Image origin from the hotspot of the Cursor at the instant of the trigger, the Transferable subject data of the drag, the DragSourceListener, and the FlavorMap.
 void DragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl)
          Start a drag, given the DragGestureEvent that initiated the drag, the initial Cursor to use, the Image to drag, the offset of the Image origin from the hotspot of the Cursor at the instant of the trigger, the subject data of the drag, and the DragSourceListener.
protected  DragSourceContext DragSource.createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp, DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)
          Create the DragSourceContext to handle this drag.
 void DragGestureEvent.startDrag(Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl)
          Start the drag given the initial Cursor to display, a drag Image, the offset of the Image, the Transferable object, and the DragSourceListener to use.
 

Constructors in java.awt.dnd with parameters of type Image
DragSourceContext.DragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp, DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl)
          Called from DragSource, this constructor creates a new DragSourceContext given the DragSourceContextPeer for this Drag, the DragGestureEvent that triggered the Drag, the initial Cursor to use for the Drag, an (optional) Image to display while the Drag is taking place, the offset of the Image origin from the hotspot at the instant of the triggering event, the Transferable subject data, and the DragSourceListener to use during the Drag and Drop operation.
 

Uses of Image in java.awt.font
 

Constructors in java.awt.font with parameters of type Image
ImageGraphicAttribute.ImageGraphicAttribute(Image image, int alignment)
          Constucts an ImageGraphicAttribute from the specified Image.
ImageGraphicAttribute.ImageGraphicAttribute(Image image, int alignment, float originX, float originY)
          Constructs an ImageGraphicAttribute from the specified Image.
 

Uses of Image in java.awt.image
 

Subclasses of Image in java.awt.image
 class BufferedImage
          The BufferedImage subclass describes an Image with an accessible buffer of image data.
 

Methods in java.awt.image with parameters of type Image
 boolean ImageObserver.imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
          This method is called when information about an image which was previously requested using an asynchronous interface becomes available.
 

Constructors in java.awt.image with parameters of type Image
PixelGrabber.PixelGrabber(Image img, int x, int y, int w, int h, int[] pix, int off, int scansize)
          Create a PixelGrabber object to grab the (x, y, w, h) rectangular section of pixels from the specified image into the given array.
PixelGrabber.PixelGrabber(Image img, int x, int y, int w, int h, boolean forceRGB)
          Create a PixelGrabber object to grab the (x, y, w, h) rectangular section of pixels from the specified image.
 

Uses of Image in java.beans
 

Methods in java.beans that return Image
 Image BeanInfo.getIcon(int iconKind)
          This method returns an image object that can be used to represent the bean in toolboxes, toolbars, etc.
 Image SimpleBeanInfo.getIcon(int iconKind)
          Claim there are no icons available.
 Image SimpleBeanInfo.loadImage(String resourceName)
          This is a utility method to help in loading icon images.
 

Uses of Image in javax.swing
 

Fields in javax.swing declared as Image
protected  Image JViewport.backingStoreImage
          The view image used for a backing store.
 

Methods in javax.swing that return Image
 Image RepaintManager.getOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)
          Return the offscreen buffer that should be used as a double buffer with the component c By default there is a double buffer per RepaintManager.
 Image ImageIcon.getImage()
          Returns the Icon's Image
static Image GrayFilter.createDisabledImage(Image i)
          Creates a disabled image
 

Methods in javax.swing with parameters of type Image
 boolean DebugGraphics.drawImage(Image img, int x, int y, ImageObserver observer)
          Overrides Graphics.drawImage.
 boolean DebugGraphics.drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
          Overrides Graphics.drawImage.
 boolean DebugGraphics.drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
          Overrides Graphics.drawImage.
 boolean DebugGraphics.drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
          Overrides Graphics.drawImage.
 boolean DebugGraphics.drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
          Overrides Graphics.drawImage.
 boolean DebugGraphics.drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
          Overrides Graphics.drawImage.
protected  void ImageIcon.loadImage(Image image)
          Wait for the image to load
 void ImageIcon.setImage(Image image)
          Set the image displayed by this icon.
static Image GrayFilter.createDisabledImage(Image i)
          Creates a disabled image
 

Constructors in javax.swing with parameters of type Image
ImageIcon.ImageIcon(Image image, String description)
          Creates an ImageIcon from the image.
ImageIcon.ImageIcon(Image image)
          Creates an ImageIcon from an image object.
 


JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.