Class ZoomPane
- java.lang.Object
-
- com.cosylab.vdct.graphics.objects.ZoomPane
-
- All Implemented Interfaces:
ImageObserver
public final class ZoomPane extends Object implements ImageObserver
ZoomPaneenables blowing up zoomed objects. It provides the image containing zoomed objects in scale 1.0;- Since:
- VERSION
- Version:
- $Id$
- Author:
- Jaka Bobnar
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHeight()Returns the height of the image.static ZoomPanegetInstance()intgetLeftOffset()Returns the left offset - distance from the left border to the most left object.intgetRightOffset()Returns the right offset - distance from the right border to the most right object.intgetTopOffset()Returns the top offset - distance from the top border to the object that is the closest to the top.intgetWidth()Returns the width of the image.booleanimageUpdate(Image img, int infoflags, int x, int y, int width, int height)ImagestartZooming(VisibleObject obj, boolean clearImage)Starts drawing objects and returns drawn image.
-
-
-
Field Detail
-
panel
public static ZoomPane panel
-
-
Method Detail
-
getInstance
public static ZoomPane getInstance()
- Returns:
- something
-
getLeftOffset
public int getLeftOffset()
Returns the left offset - distance from the left border to the most left object.- Returns:
- something
-
getRightOffset
public int getRightOffset()
Returns the right offset - distance from the right border to the most right object.- Returns:
- something
-
getTopOffset
public int getTopOffset()
Returns the top offset - distance from the top border to the object that is the closest to the top.- Returns:
- something
-
startZooming
public Image startZooming(VisibleObject obj, boolean clearImage)
Starts drawing objects and returns drawn image.- Parameters:
obj- objclearImage- clearImage- Returns:
- something
-
getWidth
public int getWidth()
Returns the width of the image.- Returns:
- something
-
getHeight
public int getHeight()
Returns the height of the image.- Returns:
- something
-
imageUpdate
public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
- Specified by:
imageUpdatein interfaceImageObserver
-
-