public interface IMapRenderer
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
getImage(IMap map)
Gets a bufferedImage of the current map containing all tile layers.
|
java.awt.image.BufferedImage |
getImage(IMap map,
RenderType... renderTypes)
Gets a bufferedImage of the current map containing all tile layers.
|
MapOrientation |
getSupportedOrientation()
Gets the supported orientation.
|
void |
render(java.awt.Graphics2D g,
IMap map,
double offsetX,
double offsetY,
RenderType... renderTypes)
Renders all layers of the specified
Map onto the graphics object that meet the specified render types. |
void |
render(java.awt.Graphics2D g,
IMap map,
java.awt.geom.Rectangle2D viewport,
RenderType... renderTypes)
Renders all layers of the specified
Map onto the graphics object that meet the specified render types. |
void |
render(java.awt.Graphics2D g,
IMap map,
RenderType... renderTypes)
Renders all layers of the specified
Map onto the graphics object that meet the specified render types. |
java.awt.image.BufferedImage getImage(IMap map, RenderType... renderTypes)
map - the maprenderTypes - the renderTypes we want to be displayed in our imageRenderTypesjava.awt.image.BufferedImage getImage(IMap map)
map - the mapMapOrientation getSupportedOrientation()
void render(java.awt.Graphics2D g,
IMap map,
RenderType... renderTypes)
Map onto the graphics object that meet the specified render types.g - the graphics objectmap - the maprenderTypes - All layers that have one of the specified render types will be rendered.
If nothing is specified, layers will be rendered independently of their render type.ILayer.getRenderType()void render(java.awt.Graphics2D g,
IMap map,
double offsetX,
double offsetY,
RenderType... renderTypes)
Map onto the graphics object that meet the specified render types.g - the graphics objectmap - the mapoffsetX - The horizontal offset in pixels for the map image that is applied
when rendering on the graphics object.offsetY - The vertical offset in pixels for the map image that is applied
when rendering on the graphics object.renderTypes - All layers that have one of the specified render types will be rendered.
If nothing is specified, layers will be rendered independently of their render type.ILayer.getRenderType()void render(java.awt.Graphics2D g,
IMap map,
java.awt.geom.Rectangle2D viewport,
RenderType... renderTypes)
Map onto the graphics object that meet the specified render types.g - the graphics objectmap - the mapviewport - The viewport that defines the bound for the tiles to be rendered.renderTypes - All layers that have one of the specified render types will be rendered.
If nothing is specified, layers will be rendered independently of their render type.ILayer.getRenderType()