com.hdcookbook.grin.mosaic
Class MosaicPart

java.lang.Object
  extended by com.hdcookbook.grin.mosaic.MosaicPart

public class MosaicPart
extends java.lang.Object

A part of a mosaic. When a small image is put into a mosaic, it is represented as a part. A part knows the name of the original image, its placement on the mosaic, and the mosaic it's placed in.

Author:
Bill Foote (http://jovial.com)

Constructor Summary
MosaicPart(ManagedImage image, Mosaic mosaic, int maxWidth, int maxHeight)
           
 
Method Summary
 ManagedImage getImage()
           
 Mosaic getMosaic()
          Get the mosaic we're contained within.
 java.lang.String getName()
          Get the name of the original image for this part
 java.awt.Rectangle getPlacement()
          Get the area where the original image was placed within the mosaic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MosaicPart

public MosaicPart(ManagedImage image,
                  Mosaic mosaic,
                  int maxWidth,
                  int maxHeight)
Method Detail

getName

public java.lang.String getName()
Get the name of the original image for this part


getPlacement

public java.awt.Rectangle getPlacement()
Get the area where the original image was placed within the mosaic.


getImage

public ManagedImage getImage()

getMosaic

public Mosaic getMosaic()
Get the mosaic we're contained within.