public class Tiling extends Object
Constructor and Description |
---|
Tiling() |
Tiling(int tileW,
int tileH,
Rectangle2D r) |
Modifier and Type | Method and Description |
---|---|
int[] |
calcMaxTileSize(int tileW,
int tileH,
Rectangle2D r)
Calcula el tamaño máximo de tile controlando que ningún tile tenga menos de MIN_SIZE
pixeles
|
AffineTransform |
getAffineTransform() |
int |
getMaxTileHeight() |
int |
getMaxTileWidth() |
int |
getNumCols() |
int |
getNumRows() |
int |
getNumTiles() |
Rectangle2D |
getTile(int num) |
double[] |
getTilePts(int num) |
double[] |
getTilePts(int colNr,
int rowNr) |
Rectangle2D |
getTileSz(int colNr,
int rowNr) |
ViewPort |
getTileViewPort(ViewPort viewPort,
int tileNr) |
boolean |
isDebug() |
void |
setAffineTransform(AffineTransform mat) |
void |
setDebug(boolean debug) |
public Tiling()
public Tiling(int tileW, int tileH, Rectangle2D r)
public int[] calcMaxTileSize(int tileW, int tileH, 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 Rectangle2D getTileSz(int colNr, int rowNr)
public 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 NoninvertibleTransformException
NoninvertibleTransformException
public AffineTransform getAffineTransform()
public void setAffineTransform(AffineTransform mat)
mat
- The mat to set.public boolean isDebug()
public void setDebug(boolean debug)
debug
- The debug to set.