Class ZoomPane

  • All Implemented Interfaces:
    ImageObserver

    public final class ZoomPane
    extends Object
    implements ImageObserver
    ZoomPane enables blowing up zoomed objects. It provides the image containing zoomed objects in scale 1.0;
    Since:
    VERSION
    Version:
    $Id$
    Author:
    Jaka Bobnar
    • Field Detail

    • 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 - obj
        clearImage - 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:
        imageUpdate in interface ImageObserver