@Test public void testRasterLayout(){ RasterLayout rasterLayout = new RasterLayout(10, 10, 100, 100); assertEquals(rasterLayout.getHeight(), 100); assertEquals(rasterLayout.getWidth(), 100); assertEquals(rasterLayout.getMinX(), 10); assertEquals(rasterLayout.getMinY(), 10); assertEquals(rasterLayout.getTileGridXOffset(), 0); assertEquals(rasterLayout.getTileGridYOffset(), 0); assertEquals(rasterLayout.getTileWidth(), 0); assertEquals(rasterLayout.getTileHeight(), 0); SampleModel sm = new BandedSampleModel(DataBuffer.TYPE_BYTE, 50, 50, 3); ColorModel cm = new ComponentColorModel(ColorSpace.getInstance(ColorSpace.CS_sRGB), false, false, Transparency.OPAQUE, DataBuffer.TYPE_BYTE); TiledImage ri = new TiledImage(10, 10, 50, 50, 5, 5, sm, cm); RasterLayout rasterLayoutToBeCloned = new RasterLayout(ri); RasterLayout rasterLayout3 = new RasterLayout(ri); RasterLayout rasterLayout2 = (RasterLayout) rasterLayoutToBeCloned.clone(); assertTrue(rasterLayout2.equals(rasterLayout3)); assertEquals(rasterLayout2.getHeight(), 50); assertEquals(rasterLayout2.getWidth(), 50); assertEquals(rasterLayout2.getMinX(), 10); assertEquals(rasterLayout2.getMinY(), 10); assertEquals(rasterLayout2.getTileGridXOffset(), 5); assertEquals(rasterLayout2.getTileGridYOffset(), 5); assertEquals(rasterLayout2.getTileWidth(), 50); assertEquals(rasterLayout2.getTileHeight(), 50); rasterLayout2.toString(); Map <RenderedImage, RasterLayout> map = new HashMap<RenderedImage, RasterLayout>(); map.put(ri, rasterLayout2); assertTrue(map.containsKey(ri)); }
public RasterLayout() {}
RasterLayout extends Object implements Cloneable, Serializable { public RasterLayout() {} }
RasterLayout extends Object implements Cloneable, Serializable { public RasterLayout() {} RasterLayout();  RasterLayout(int minX,
                       int minY,
                       int width,
                       int height,
                       int tileGridXOffset,
                       int tileGridYOffset,
                       int tileWidth,
                       int tileHeight);  RasterLayout(int minX,
                       int minY,
                       int width,
                       int height);  RasterLayout(RenderedImage im); }
RasterLayout extends Object implements Cloneable, Serializable { public RasterLayout() {} RasterLayout();  RasterLayout(int minX,
                       int minY,
                       int width,
                       int height,
                       int tileGridXOffset,
                       int tileGridYOffset,
                       int tileWidth,
                       int tileHeight);  RasterLayout(int minX,
                       int minY,
                       int width,
                       int height);  RasterLayout(RenderedImage im); int getMinX(); void setMinX(int minX); int getMinY(); void setMinY(int minY); int getWidth(); void setWidth(int width); int getHeight(); void setHeight(int height); int getTileGridXOffset(); void setTileGridXOffset(int tileGridXOffset); int getTileGridYOffset(); void setTileGridYOffset(int tileGridYOffset); int getTileWidth(); void setTileWidth(int tileWidth); int getTileHeight(); void setTileHeight(int tileHeight); String toString(); Object clone(); boolean equals(Object obj); int hashCode(); }
RasterLayout extends Object implements Cloneable, Serializable { public RasterLayout() {} RasterLayout();  RasterLayout(int minX,
                       int minY,
                       int width,
                       int height,
                       int tileGridXOffset,
                       int tileGridYOffset,
                       int tileWidth,
                       int tileHeight);  RasterLayout(int minX,
                       int minY,
                       int width,
                       int height);  RasterLayout(RenderedImage im); int getMinX(); void setMinX(int minX); int getMinY(); void setMinY(int minY); int getWidth(); void setWidth(int width); int getHeight(); void setHeight(int height); int getTileGridXOffset(); void setTileGridXOffset(int tileGridXOffset); int getTileGridYOffset(); void setTileGridYOffset(int tileGridYOffset); int getTileWidth(); void setTileWidth(int tileWidth); int getTileHeight(); void setTileHeight(int tileHeight); String toString(); Object clone(); boolean equals(Object obj); int hashCode();  }