Uses of Class
java.awt.Image
-
Packages that use Image Package Description 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.im.spi Provides interfaces that enable the development of input methods that can be used with any Java runtime environment.java.awt.image Provides classes for creating and modifying images.java.beans Contains classes related to developing beans -- components based on the JavaBeans™ architecture.javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.javax.swing.text.html Provides the classHTMLEditorKitand supporting classes for creating HTML text editors. -
-
Uses of Image in java.applet
Methods in java.applet that return Image Modifier and Type Method Description ImageApplet. getImage(URL url)Deprecated.Returns anImageobject that can then be painted on the screen.ImageApplet. getImage(URL url, String name)Deprecated.Returns anImageobject that can then be painted on the screen.ImageAppletContext. getImage(URL url)Deprecated.Returns anImageobject that can then be painted on the screen. -
Uses of Image in java.awt
Fields in java.awt declared as Image Modifier and Type Field Description protected ImageComponent.FlipBufferStrategy. drawBufferThe drawing bufferMethods in java.awt that return Image Modifier and Type Method Description ImageComponent. createImage(int width, int height)Creates an off-screen drawable image to be used for double buffering.ImageComponent. createImage(ImageProducer producer)Creates an image from the specified image producer.ImageToolkit. createImage(byte[] imagedata)Creates an image which decodes the image stored in the specified byte array.abstract ImageToolkit. 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 ImageToolkit. createImage(ImageProducer producer)Creates an image with the specified image producer.abstract ImageToolkit. createImage(String filename)Returns an image which gets pixel data from the specified file.abstract ImageToolkit. createImage(URL url)Returns an image which gets pixel data from the specified URL.protected ImageComponent.FlipBufferStrategy. getBackBuffer()ImageFrame. getIconImage()Returns the image to be displayed as the icon for this frame.ImageTaskbar. getIconImage()Obtains an image of this application's icon.abstract ImageToolkit. getImage(String filename)Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG.abstract ImageToolkit. getImage(URL url)Returns an image which gets pixel data from the specified URL.ImageTrayIcon. getImage()Returns the current image used for thisTrayIcon.ImageImage. getScaledInstance(int width, int height, int hints)Creates a scaled version of this image.Methods in java.awt that return types with arguments of type Image Modifier and Type Method Description List<Image>Window. getIconImages()Returns the sequence of images to be displayed as the icon for this window.Methods in java.awt with parameters of type Image Modifier and Type Method Description voidMediaTracker. addImage(Image image, int id)Adds an image to the list of images being tracked by this media tracker.voidMediaTracker. addImage(Image image, int id, int w, int h)Adds a scaled image to the list of images being tracked by this media tracker.intComponent. checkImage(Image image, int width, int height, ImageObserver observer)Returns the status of the construction of a screen representation of the specified image.intComponent. checkImage(Image image, ImageObserver observer)Returns the status of the construction of a screen representation of the specified image.abstract intToolkit. checkImage(Image image, int width, int height, ImageObserver observer)Indicates the construction status of a specified image that is being prepared for display.CursorToolkit. createCustomCursor(Image cursor, Point hotSpot, String name)Creates a new custom cursor object.abstract booleanGraphics. 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 booleanGraphics. 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 booleanGraphics. 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 booleanGraphics. 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 booleanGraphics. drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)Draws as much of the specified image as is currently available.abstract booleanGraphics. drawImage(Image img, int x, int y, ImageObserver observer)Draws as much of the specified image as is currently available.abstract booleanGraphics2D. drawImage(Image img, AffineTransform xform, ImageObserver obs)Renders an image, applying a transform from image space into user space before drawing.booleanComponent. imageUpdate(Image img, int infoflags, int x, int y, int w, int h)Repaints the component when the image has changed.booleanComponent. prepareImage(Image image, int width, int height, ImageObserver observer)Prepares an image for rendering on this component at the specified width and height.booleanComponent. prepareImage(Image image, ImageObserver observer)Prepares an image for rendering on this component.abstract booleanToolkit. prepareImage(Image image, int width, int height, ImageObserver observer)Prepares an image for rendering.voidMediaTracker. removeImage(Image image)Removes the specified image from this media tracker.voidMediaTracker. removeImage(Image image, int id)Removes the specified image from the specified tracking ID of this media tracker.voidMediaTracker. removeImage(Image image, int id, int width, int height)Removes the specified image with the specified width, height, and ID from this media tracker.voidTaskbar. setIconImage(Image image)Changes this application's icon to the provided image.voidWindow. setIconImage(Image image)Sets the image to be displayed as the icon for this window.voidTrayIcon. setImage(Image image)Sets the image for thisTrayIcon.voidTaskbar. setWindowIconBadge(Window w, Image badge)Affixes a small badge to this application's icon in the task area for the specified window.Method parameters in java.awt with type arguments of type Image Modifier and Type Method Description voidWindow. setIconImages(List<? extends Image> icons)Sets the sequence of images to be displayed as the icon for this window.Constructors in java.awt with parameters of type Image Constructor Description TrayIcon(Image image)Creates aTrayIconwith the specified image.TrayIcon(Image image, String tooltip)Creates aTrayIconwith the specified image and tooltip text.TrayIcon(Image image, String tooltip, PopupMenu popup)Creates aTrayIconwith the specified image, tooltip and popup menu. -
Uses of Image in java.awt.dnd
Methods in java.awt.dnd with parameters of type Image Modifier and Type Method Description protected DragSourceContextDragSource. createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)Creates theDragSourceContextto handle the current drag operation.voidDragGestureEvent. startDrag(Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl)Start the drag given the initialCursorto display, a dragImage, the offset of theImage, theTransferableobject, and theDragSourceListenerto use.voidDragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl)Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theImageto drag, the offset of theImageorigin from the hotspot of theCursorat the instant of the trigger, the subject data of the drag, and theDragSourceListener.voidDragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theImageto drag, the offset of theImageorigin from the hotspot of theCursorat the instant of the trigger, theTransferablesubject data of the drag, theDragSourceListener, and theFlavorMap.Constructors in java.awt.dnd with parameters of type Image Constructor Description DragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl)Called fromDragSource, this constructor creates a newDragSourceContextgiven theDragSourceContextPeerfor this Drag, theDragGestureEventthat triggered the Drag, the initialCursorto use for the Drag, an (optional)Imageto display while the Drag is taking place, the offset of theImageorigin from the hotspot at the instant of the triggering event, theTransferablesubject data, and theDragSourceListenerto use during the Drag and Drop operation. -
Uses of Image in java.awt.font
Constructors in java.awt.font with parameters of type Image Constructor Description ImageGraphicAttribute(Image image, int alignment)Constructs anImageGraphicAttributefrom the specifiedImage.ImageGraphicAttribute(Image image, int alignment, float originX, float originY)Constructs anImageGraphicAttributefrom the specifiedImage. -
Uses of Image in java.awt.im.spi
Methods in java.awt.im.spi that return Image Modifier and Type Method Description ImageInputMethodDescriptor. getInputMethodIcon(Locale inputLocale)Returns an icon for the corresponding input method. -
Uses of Image in java.awt.image
Subclasses of Image in java.awt.image Modifier and Type Class Description classAbstractMultiResolutionImageThis class provides default implementations of severalImagemethods for classes that want to implement theMultiResolutionImageinterface.classBaseMultiResolutionImageThis class is an array-based implementation of theAbstractMultiResolutionImageclass.classBufferedImageTheBufferedImagesubclass describes anImagewith an accessible buffer of image data.classVolatileImageVolatileImage is an image which can lose its contents at any time due to circumstances beyond the control of the application (e.g., situations caused by the operating system or by other applications).Methods in java.awt.image that return Image Modifier and Type Method Description protected abstract ImageAbstractMultiResolutionImage. getBaseImage()Return the base image representing the best version of the image for rendering at the default width and height.ImageMultiResolutionImage. getResolutionVariant(double destImageWidth, double destImageHeight)Gets a specific image that is the best variant to represent this logical image at the indicated size.Methods in java.awt.image that return types with arguments of type Image Modifier and Type Method Description List<Image>MultiResolutionImage. getResolutionVariants()Gets a readable list of all resolution variants.Methods in java.awt.image with parameters of type Image Modifier and Type Method Description booleanImageObserver. 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 Constructor Description BaseMultiResolutionImage(int baseImageIndex, Image... resolutionVariants)Creates a multi-resolution image with the given base image index and resolution variants.BaseMultiResolutionImage(Image... resolutionVariants)Creates a multi-resolution image with the given resolution variants.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.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. -
Uses of Image in java.beans
Methods in java.beans that return Image Modifier and Type Method Description ImageBeanInfo. getIcon(int iconKind)Returns an image that can be used to represent the bean in toolboxes or toolbars.ImageSimpleBeanInfo. getIcon(int iconKind)Claim there are no icons available.ImageSimpleBeanInfo. 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 Modifier and Type Field Description protected ImageJViewport. backingStoreImageThe view image used for a backing store.Methods in javax.swing that return Image Modifier and Type Method Description static ImageGrayFilter. createDisabledImage(Image i)Creates a disabled imageImageTransferHandler. getDragImage()Returns the drag image.ImageImageIcon. getImage()Returns this icon'sImage.ImageRepaintManager. getOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)Return the offscreen buffer that should be used as a double buffer with the componentc.ImageRepaintManager. getVolatileOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)Return a volatile offscreen buffer that should be used as a double buffer with the specified componentc.Methods in javax.swing with parameters of type Image Modifier and Type Method Description static ImageGrayFilter. createDisabledImage(Image i)Creates a disabled imagebooleanDebugGraphics. drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)OverridesGraphics.drawImage.booleanDebugGraphics. drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)OverridesGraphics.drawImage.booleanDebugGraphics. drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)OverridesGraphics.drawImage.booleanDebugGraphics. drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)OverridesGraphics.drawImage.booleanDebugGraphics. drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)OverridesGraphics.drawImage.booleanDebugGraphics. drawImage(Image img, int x, int y, ImageObserver observer)OverridesGraphics.drawImage.booleanAbstractButton. imageUpdate(Image img, int infoflags, int x, int y, int w, int h)This is overridden to return false if the currentIcon'sImageis not equal to the passed inImageimg.booleanJLabel. imageUpdate(Image img, int infoflags, int x, int y, int w, int h)This is overridden to return false if the current Icon's Image is not equal to the passed in Imageimg.booleanJLayer. imageUpdate(Image img, int infoflags, int x, int y, int w, int h)Delegates its functionality to theLayerUI.imageUpdate(java.awt.Image, int, int, int, int, int, JLayer)method, if theLayerUIis set.booleanJSlider. imageUpdate(Image img, int infoflags, int x, int y, int w, int h)Repaints the component when the image has changed.protected voidImageIcon. loadImage(Image image)Loads the image, returning only when the image is loaded.voidTransferHandler. setDragImage(Image img)Sets the drag image parameter.voidImageIcon. setImage(Image image)Sets the image displayed by this icon.Constructors in javax.swing with parameters of type Image Constructor Description ImageIcon(Image image)Creates an ImageIcon from an image object.ImageIcon(Image image, String description)Creates an ImageIcon from the image. -
Uses of Image in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type Image Modifier and Type Method Description booleanLayerUI. imageUpdate(Image img, int infoflags, int x, int y, int w, int h, JLayer<? extends V> l)Delegates its functionality to the default implementation of theJLayer.imageUpdatemethod which is inherited fromJLayer's base classes. -
Uses of Image in javax.swing.text.html
Methods in javax.swing.text.html that return Image Modifier and Type Method Description ImageImageView. getImage()Returns the image to render.
-