com.cosylab.vdct.graphics.objects
Class ZoomPane

java.lang.Object
  extended by com.cosylab.vdct.graphics.objects.ZoomPane
All Implemented Interfaces:
java.awt.image.ImageObserver

public final class ZoomPane
extends java.lang.Object
implements java.awt.image.ImageObserver

ZoomPane enables blowing up zoomed objects. It provides the image containing zoomed objects in scale 1.0;

Since:
VERSION
Version:
$Id: ZoomPane.java,v 1.4 2008-06-12 14:09:46 ssah Exp $
Author:
Jaka Bobnar

Field Summary
static ZoomPane panel
           
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Method Summary
 int getHeight()
          Returns the height of the image.
static ZoomPane getInstance()
           
 int getLeftOffset()
          Returns the left offset - distance from the left border to the most left object.
 int getRightOffset()
          Returns the right offset - distance from the right border to the most right object.
 int getTopOffset()
          Returns the top offset - distance from the top border to the object that is the closest to the top.
 int getWidth()
          Returns the width of the image.
 boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
           
 java.awt.Image startZooming(VisibleObject obj, boolean clearImage)
          Starts drawing objects and returns drawn image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

panel

public static ZoomPane panel
Method Detail

getInstance

public static ZoomPane getInstance()

getLeftOffset

public int getLeftOffset()
Returns the left offset - distance from the left border to the most left object.

Returns:

getRightOffset

public int getRightOffset()
Returns the right offset - distance from the right border to the most right object.

Returns:

getTopOffset

public int getTopOffset()
Returns the top offset - distance from the top border to the object that is the closest to the top.

Returns:

startZooming

public java.awt.Image startZooming(VisibleObject obj,
                                   boolean clearImage)
Starts drawing objects and returns drawn image.

Parameters:
obj -
clearImage -
Returns:

getWidth

public int getWidth()
Returns the width of the image.

Returns:

getHeight

public int getHeight()
Returns the height of the image.

Returns:

imageUpdate

public boolean imageUpdate(java.awt.Image img,
                           int infoflags,
                           int x,
                           int y,
                           int width,
                           int height)
Specified by:
imageUpdate in interface java.awt.image.ImageObserver