PATH |
EOImageView
- Inherits from:
- javax.swing.JComponent : java.awt.Container : java.awt.Component : Object
- Implements:
- java.io.Serializable
- java.awt.image.ImageObserver
- java.awt.MenuContainer
- Package:
- com.webobjects.eointerface.swing
Class Description
The EOImageView class is used to display images (java.awt.Image objects) in Swing applications.
Constants
EOImageView defines the following int
constants to specify the scaling behavior of an EOImageView:
Interfaces Implemented
- java.io.Serializable
- java.awt.image.ImageObserver
- imageUpdate
- java.awt.MenuContainer
Method Types
- All methods
- EOImageView
- image
- imageScaling
- paint
- scalingHints
- setBorder
- setBounds
- setImage
- setImageScaling
- setScalingHints
Constructors
EOImageView
public EOImageView()
Instance Methods
image
public java.awt.Image image()
imageScaling
public int imageScaling()
imageUpdate
public boolean imageUpdate( java.awt.Image image, int flags, int x, int y, int width, int height)
paint
public void paint(java.awt.Graphics aGraphics)
scalingHints
public int scalingHints()
setBorder
public void setBorder(javax.swing.border.Border aBorder)
setBounds
public void setBounds( int x, int y, int width, int height)
setImage
public void setImage(java.awt.Image image)
setImageScaling
public void setImageScaling(int imageScaling)
The default scaling behavior is ScaleProportionallyIfTooLarge
. For more information on these constants, see "Constants" (page 22).
setScalingHints
public void setScalingHints(int scalingHints)
SCALE_DEFAULT
SCALE_FAST
SCALE_SMOOTH
SCALE_REPLICATE
SCALE_AREA_AVERAGING
The default is SCALE_SMOOTH
. For more information on the algorithms identified by these constants, see Sun's Image class documentation.
© 2001 Apple Computer, Inc. (Last Published April 21, 2001)