All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class datarep.common.ImageCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----datarep.common.ImageCanvas

public class ImageCanvas
extends Component
implements AdjustmentListener
ImageCanvas: An image Canvas is a part which displays an image.

Version:
1.2
Author:
Data Representations, Inc.

Constructor Index

 o ImageCanvas()
 o ImageCanvas(File)
 o ImageCanvas(Image)
 o ImageCanvas(String)
Creates a new ImageCanvas with the image displayed set to be the image specified by the given string
 o ImageCanvas(URL)

Method Index

 o addNotify()
 o adjustmentValueChanged(AdjustmentEvent)
 o getImage()
 o getMinimumSize()
 o getPreferredSize()
 o paint(Graphics)
 o removeNotify()
 o setImage(File)
 o setImage(Image)
 o setImage(String)
Sets the image to the image specified by the given string
 o setImage(URL)
 o update(Graphics)

Constructors

 o ImageCanvas
 public ImageCanvas()
 o ImageCanvas
 public ImageCanvas(String filename)
Creates a new ImageCanvas with the image displayed set to be the image specified by the given string

 o ImageCanvas
 public ImageCanvas(URL url)
 o ImageCanvas
 public ImageCanvas(File file)
 o ImageCanvas
 public ImageCanvas(Image image)

Methods

 o setImage
 public void setImage(String filename)
Sets the image to the image specified by the given string

 o setImage
 public void setImage(URL url)
 o setImage
 public void setImage(File file)
 o setImage
 public void setImage(Image image)
 o getImage
 public Image getImage()
 o addNotify
 public void addNotify()
Overrides:
addNotify in class Component
 o removeNotify
 public void removeNotify()
Overrides:
removeNotify in class Component
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Component
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index