Top Fields Constructors Methods
com.sun.activation.viewers

public Class ImageViewer

extends Panel
implements CommandObject
Class Inheritance
All Implemented Interfaces
javax.activation.CommandObject
Imports
java.awt.*, java.io.*, java.beans.*, javax.activation.*

Field Summary

Modifier and TypeField and Description
private DataHandler
private ImageViewerCanvas
private boolean
private Image

Constructor Summary

AccessConstructor and Description
public
ImageViewer()

Constructor

Method Summary

Modifier and TypeMethod and Description
public void
addNotify()

Overrides java.awt.Panel.addNotify.

Creates the Panel's peer.
public Dimension
getPreferredSize()

Overrides java.awt.Container.getPreferredSize.

Returns the preferred size of this container.
public void
setCommandContext(String
the DataHandler
verb
,
DataHandler
The DataHandler.
dh
)

Implements javax.activation.CommandObject.setCommandContext.

Set the DataHandler for this CommandObject
private void
setInputStream(InputStream ins)

Set the data stream, component to assume it is ready to be read.

Inherited from java.awt.Panel:
getAccessibleContext

Field Detail

_dhback to summary
private DataHandler _dh
canvasback to summary
private ImageViewerCanvas canvas
DEBUGback to summary
private boolean DEBUG
imageback to summary
private Image image

Constructor Detail

ImageViewerback to summary
public ImageViewer()

Constructor

Method Detail

addNotifyback to summary
public void addNotify()

Overrides java.awt.Panel.addNotify.

Doc from java.awt.Panel.addNotify.

Creates the Panel's peer. The peer allows you to modify the appearance of the panel without changing its functionality.

getPreferredSizeback to summary
public Dimension getPreferredSize()

Overrides java.awt.Container.getPreferredSize.

Doc from java.awt.Container.getPreferredSize.

Returns the preferred size of this container. If the preferred size has not been set explicitly by Component#setPreferredSize(Dimension) and this Container has a non-null LayoutManager, then LayoutManager#preferredLayoutSize(Container) is used to calculate the preferred size.

Note

some implementations may cache the value returned from the LayoutManager. Implementations that cache need not invoke preferredLayoutSize on the LayoutManager every time this method is invoked, rather the LayoutManager will only be queried after the Container becomes invalid.

Returns:Dimension

an instance of Dimension that represents the preferred size of this container.

setCommandContextback to summary
public void setCommandContext(String verb, DataHandler dh) throws IOException

Implements javax.activation.CommandObject.setCommandContext.

Set the DataHandler for this CommandObject

Parameters
verb:String

the DataHandler

dh:DataHandler

Doc from javax.activation.CommandObject.setCommandContext.

The DataHandler.

Exceptions
IOException:

Doc from javax.activation.CommandObject.setCommandContext.

for failures accessing data

setInputStreamback to summary
private void setInputStream(InputStream ins) throws IOException

Set the data stream, component to assume it is ready to be read.