public class Tiling
extends java.lang.Object
Constructor and Description |
---|
Tiling() |
Tiling(int tileW,
int tileH,
java.awt.geom.Rectangle2D r) |
Modifier and Type | Method and Description |
---|---|
int[] |
calcMaxTileSize(int tileW,
int tileH,
java.awt.geom.Rectangle2D r)
Calcula el tamaño máximo de tile controlando que ningún tile tenga menos de MIN_SIZE
pixeles
|
java.awt.geom.AffineTransform |
getAffineTransform() |
int |
getMaxTileHeight() |
int |
getMaxTileWidth() |
int |
getNumCols() |
int |
getNumRows() |
int |
getNumTiles() |
java.awt.geom.Rectangle2D |
getTile(int num) |
double[] |
getTilePts(int num) |
double[] |
getTilePts(int colNr,
int rowNr) |
java.awt.geom.Rectangle2D |
getTileSz(int colNr,
int rowNr) |
ViewPort |
getTileViewPort(ViewPort viewPort,
int tileNr) |
boolean |
isDebug() |
void |
setAffineTransform(java.awt.geom.AffineTransform mat) |
void |
setDebug(boolean debug) |
public Tiling()
public Tiling(int tileW, int tileH, java.awt.geom.Rectangle2D r)
public int[] calcMaxTileSize(int tileW, int tileH, java.awt.geom.Rectangle2D r)
tileW
- Ancho del tiletileH
- Alto del tiler
- Rectangulo que define el area de la imagenpublic double[] getTilePts(int colNr, int rowNr)
public double[] getTilePts(int num)
public java.awt.geom.Rectangle2D getTileSz(int colNr, int rowNr)
public java.awt.geom.Rectangle2D getTile(int num)
public int getNumCols()
public int getNumRows()
public int getNumTiles()
public int getMaxTileHeight()
public int getMaxTileWidth()
public ViewPort getTileViewPort(ViewPort viewPort, int tileNr) throws java.awt.geom.NoninvertibleTransformException
java.awt.geom.NoninvertibleTransformException
public java.awt.geom.AffineTransform getAffineTransform()
public void setAffineTransform(java.awt.geom.AffineTransform mat)
mat
- The mat to set.public boolean isDebug()
public void setDebug(boolean debug)
debug
- The debug to set.