PATH |
- 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
The EOImageView class is used to display images (java.awt.Image objects) in Swing applications.
EOImageView defines the following int
constants to specify the scaling behavior of an EOImageView:
- java.io.Serializable
- java.awt.image.ImageObserver
- imageUpdate
- java.awt.MenuContainer
- All methods
- EOImageView
- image
- imageScaling
- paint
- scalingHints
- setBorder
- setBounds
- setImage
- setImageScaling
- setScalingHints
public EOImageView()
public java.awt.Image image()
public int imageScaling()
public boolean imageUpdate( java.awt.Image image, int flags, int x, int y, int width, int height)
public void paint(java.awt.Graphics aGraphics)
public int scalingHints()
public void setBorder(javax.swing.border.Border aBorder)
public void setBounds( int x, int y, int width, int height)
public void setImage(java.awt.Image image)
public void setImageScaling(int imageScaling)
The default scaling behavior is ScaleProportionallyIfTooLarge
. For more information on these constants, see "Constants" (page 22).
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)