Print all slides of a slide sequence and/or all pages of a multipage TIFF
either to a PrintJob (JDK 1.1) or PrinterJob (Java 2) (one of them must be not null).
This callback interface can be used to implement a method that
allows to initiate printing a sequence of slides described by
a "page range" string (page numbers seperated by semicolons and
low - high ranges like 1;2;8-10).
Calculate number of bits per pixel according to mapSize of ColorModel
For IndexColorModels this will be 2 ^ getMapSize(), for other
ColorModels this will be equal to ColorModel.getPixelSize()
calulate real number of bits per pixel according to mapSize of ColorModel
Note: ColorModel.getPixelSize() usually reports 8 even if mapsize < 256
(especially required for JDK 1.2)
Extract memory image region as a new ImageProducer from an EMemImageSource
and scale to new dimension (with automatic gray scaling (antialiasing)
for bilevel images).
If a component implementing ScrollComponent is added to another container,
the add method must use the embedded Scrollbar in order to use its peer.
Example:
Container c = new Container(); TScrollBar tsb = new TScrollBar(1, 0, 10, 0, 100);
c.add(tsb.getEmbeddedComponent());
Retrieve an EMemImageSource (extension of an ImageProducer) for a TIFF image
from an URL or file (either the context or the name parameter must be null).
Try to open a resource as stream using Java 1.1 and 1.0 methods
path is determined from path of related class
if running as applet, ParamUtil.retrieveCodeBase should be run before
The createImageProducer() method of class ImageInfo works
asynchronously and will call the imageProducerUpdate method
of an ImgProdObserver (implemented by this viewer class!).
As this component implements the ImgProdObserver interface, this is the
method which will be called back, when asynchronous loading of an
imageproducer through an ImageInfo thread is finished.
ImgProdObserver.java Copyright (c) 1997, 1998 Helge Hackbarth
An asynchronous update interface for receiving notifications about
ImageProducer information as the ImageProducer is constructed.
Comfortable method to load image (using format autodection);
runs createImageProducer() and asynchronously calls back imageProducerUpdate()
which finally calls showPanel() to display the image.
NavFrame.java
Copyright (C) 2001 Helge Hackbarth, All Rights Reserved
Navigation dialog showing the complete image and a rectangle indicating
the current viewable area.
flag if scrollbars need adjustment of page scroll stepsize (depends on Java VM)
Your application should compare scrollbar value before and after a page step
to determine if an adjustment is required
ScrollComponent.java
Copyright (C) 2000 Helge Hackbarth, All Rights Reserved
Interface for a Component like a Scrollbar that allows to
implement a class used by class SmartScrollPane which is
either based on java.awt.Scrollbar or javax.swing.JScrollBar.
The ImageProducer can deliver the pixels in any order, but * the ImageConsumer may be able to scale or convert the pixels * to the destination ColorModel more efficiently or with higher * quality if it knows some information about how the pixels will * be delivered up front.
Adds an ImageConsumer to the list of consumers interested in
data for this image, and immediately start delivery of the
image data through the ImageConsumer interface.
Adds an ImageConsumer to the list of consumers interested in
data for this image, and immediately start delivery of the
image data through the ImageConsumer interface.
Adds an ImageConsumer to the list of consumers interested in
data for this image, and immediately start delivery of the
image data through the ImageConsumer interface.
Find the topmost shape that contains the given point (the point with these
coordinates is painted by the shape) and tag this shape depending on the tagmode
TEXT -
Static variable in class ach.vectorGraphics.Stamp