public abstract class TiledView
extends java.lang.Object
Constructor and Description |
---|
TiledView() |
Modifier and Type | Method and Description |
---|---|
protected Projector |
getBestHorizontalProjector()
Gets the best horizontal projector for this tiled view.
|
protected Projector |
getBestVerticalProjector()
Gets the best vertical projector for this tiled view.
|
Projector |
getHorizontalProjector()
Gets the horizontal projector of this tiled view.
|
protected float |
getLineWidth(java.awt.Graphics2D g2d)
Gets the line width for the specified graphics context.
|
Tile |
getTile()
Gets the tile that contains this tiled view.
|
Transcaler |
getTranscaler()
Gets the transcaler of this tiled view.
|
Projector |
getVerticalProjector()
Gets the vertical projector of this tiled view.
|
abstract void |
paint(java.awt.Graphics2D g2d)
Paints this tiled view.
|
protected void |
repaint()
Requests a repaint of the tile that contains this tiled view.
|
protected void |
setBestProjectors(Projector bhp,
Projector bvp)
Sets the best projectors for this tiled view.
|
public abstract void paint(java.awt.Graphics2D g2d)
Tiled views should not replace (set) entirely the transform in the specified graphics context. This transform may already have been set by the tile or its mosaic. Therefore, tiled views should modify this transform only by specifying additional scaling, translation, etc.
g2d
- the graphics context in which to paint.public Tile getTile()
public Projector getHorizontalProjector()
public Projector getVerticalProjector()
public Transcaler getTranscaler()
protected void setBestProjectors(Projector bhp, Projector bvp)
protected Projector getBestHorizontalProjector()
protected Projector getBestVerticalProjector()
protected void repaint()
protected float getLineWidth(java.awt.Graphics2D g2d)
g2d
- the graphics context.