public class TileAnchor extends java.lang.Object
It may represent a reprojected tile, i.e. the tile is rotated / deformed in an arbitrary way. In general, the tile origin cannot be expected to be the upper left corner of the rectangle that is spanned by the 2 points.
The coordinate space may be
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.geom.Point2D |
nextTileOrigin |
protected java.awt.geom.Point2D |
tileOrigin |
| Constructor and Description |
|---|
TileAnchor(IProjected tileOrigin,
IProjected nextTileOrigin)
Constructs a new
TileAnchor. |
TileAnchor(java.awt.geom.Point2D tileOrigin,
java.awt.geom.Point2D nextTileOrigin)
Create a new tile anchor.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.AffineTransform |
convert(TileAnchor other)
Create a transformation that converts points from this coordinate space
to another coordinate space.
|
java.awt.geom.Point2D |
getNextTileOrigin()
Returns the position of the opposite tile corner.
|
java.awt.geom.Point2D |
getTileOrigin()
Returns the position of the tile origin.
|
java.lang.String |
toString() |
protected final java.awt.geom.Point2D tileOrigin
protected final java.awt.geom.Point2D nextTileOrigin
public TileAnchor(java.awt.geom.Point2D tileOrigin, java.awt.geom.Point2D nextTileOrigin)
tileOrigin - position of the tile originnextTileOrigin - position of the opposite tile corner, i.e. the
origin of the tile with index (x+1,y+1), when current tile has index (x,y)public TileAnchor(IProjected tileOrigin, IProjected nextTileOrigin)
TileAnchor.tileOrigin - position of the tile originnextTileOrigin - position of the opposite tile corner, i.e. the
origin of the tile with index (x+1,y+1), when current tile has index (x,y)public java.awt.geom.Point2D getTileOrigin()
public java.awt.geom.Point2D getNextTileOrigin()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.awt.geom.AffineTransform convert(TileAnchor other)
other - tile anchor of the tile in the target coordinate space