public class AwtGraphicFactory
extends java.lang.Object
implements org.mapsforge.core.graphics.GraphicFactory
Modifier and Type | Field and Description |
---|---|
static org.mapsforge.core.graphics.GraphicFactory |
INSTANCE |
Constructor and Description |
---|
AwtGraphicFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
clearResourceFileCache() |
static void |
clearResourceMemoryCache() |
org.mapsforge.core.graphics.Bitmap |
createBitmap(int width,
int height) |
org.mapsforge.core.graphics.Bitmap |
createBitmap(int width,
int height,
boolean isTransparent) |
org.mapsforge.core.graphics.Canvas |
createCanvas() |
int |
createColor(org.mapsforge.core.graphics.Color color) |
int |
createColor(int alpha,
int red,
int green,
int blue) |
static org.mapsforge.core.graphics.GraphicContext |
createGraphicContext(java.awt.Graphics graphics) |
org.mapsforge.core.graphics.Matrix |
createMatrix() |
AwtHillshadingBitmap |
createMonoBitmap(int width,
int height,
byte[] buffer,
int padding,
org.mapsforge.core.model.BoundingBox area) |
org.mapsforge.core.graphics.Paint |
createPaint() |
org.mapsforge.core.graphics.Paint |
createPaint(org.mapsforge.core.graphics.Paint paint) |
org.mapsforge.core.graphics.Path |
createPath() |
org.mapsforge.core.mapelements.PointTextContainer |
createPointTextContainer(org.mapsforge.core.model.Point xy,
org.mapsforge.core.graphics.Display display,
int priority,
java.lang.String text,
org.mapsforge.core.graphics.Paint paintFront,
org.mapsforge.core.graphics.Paint paintBack,
org.mapsforge.core.mapelements.SymbolContainer symbolContainer,
org.mapsforge.core.graphics.Position position,
int maxTextWidth) |
org.mapsforge.core.graphics.ResourceBitmap |
createResourceBitmap(java.io.InputStream inputStream,
int hash) |
org.mapsforge.core.graphics.TileBitmap |
createTileBitmap(java.io.InputStream inputStream,
int tileSize,
boolean hasAlpha) |
org.mapsforge.core.graphics.TileBitmap |
createTileBitmap(int tileSize,
boolean hasAlpha) |
static java.awt.image.BufferedImage |
getBitmap(org.mapsforge.core.graphics.Bitmap bitmap)
Returns the internal image representation.
|
static java.awt.Graphics2D |
getGraphics(org.mapsforge.core.graphics.Canvas canvas) |
static AwtPaint |
getPaint(org.mapsforge.core.graphics.Paint paint) |
java.io.InputStream |
platformSpecificSources(java.lang.String relativePathPrefix,
java.lang.String src) |
org.mapsforge.core.graphics.ResourceBitmap |
renderSvg(java.io.InputStream inputStream,
float scaleFactor,
int width,
int height,
int percent,
int hash) |
public static org.mapsforge.core.graphics.GraphicContext createGraphicContext(java.awt.Graphics graphics)
public static java.awt.Graphics2D getGraphics(org.mapsforge.core.graphics.Canvas canvas)
public static AwtPaint getPaint(org.mapsforge.core.graphics.Paint paint)
public static void clearResourceFileCache()
public static void clearResourceMemoryCache()
public org.mapsforge.core.graphics.Bitmap createBitmap(int width, int height)
createBitmap
in interface org.mapsforge.core.graphics.GraphicFactory
public org.mapsforge.core.graphics.Bitmap createBitmap(int width, int height, boolean isTransparent)
createBitmap
in interface org.mapsforge.core.graphics.GraphicFactory
public static java.awt.image.BufferedImage getBitmap(org.mapsforge.core.graphics.Bitmap bitmap)
bitmap
- Mapsforge Bitmappublic org.mapsforge.core.graphics.Canvas createCanvas()
createCanvas
in interface org.mapsforge.core.graphics.GraphicFactory
public int createColor(org.mapsforge.core.graphics.Color color)
createColor
in interface org.mapsforge.core.graphics.GraphicFactory
public int createColor(int alpha, int red, int green, int blue)
createColor
in interface org.mapsforge.core.graphics.GraphicFactory
public org.mapsforge.core.graphics.Matrix createMatrix()
createMatrix
in interface org.mapsforge.core.graphics.GraphicFactory
public AwtHillshadingBitmap createMonoBitmap(int width, int height, byte[] buffer, int padding, org.mapsforge.core.model.BoundingBox area)
createMonoBitmap
in interface org.mapsforge.core.graphics.GraphicFactory
public org.mapsforge.core.graphics.Paint createPaint()
createPaint
in interface org.mapsforge.core.graphics.GraphicFactory
public org.mapsforge.core.graphics.Paint createPaint(org.mapsforge.core.graphics.Paint paint)
createPaint
in interface org.mapsforge.core.graphics.GraphicFactory
public org.mapsforge.core.graphics.Path createPath()
createPath
in interface org.mapsforge.core.graphics.GraphicFactory
public org.mapsforge.core.mapelements.PointTextContainer createPointTextContainer(org.mapsforge.core.model.Point xy, org.mapsforge.core.graphics.Display display, int priority, java.lang.String text, org.mapsforge.core.graphics.Paint paintFront, org.mapsforge.core.graphics.Paint paintBack, org.mapsforge.core.mapelements.SymbolContainer symbolContainer, org.mapsforge.core.graphics.Position position, int maxTextWidth)
createPointTextContainer
in interface org.mapsforge.core.graphics.GraphicFactory
public org.mapsforge.core.graphics.ResourceBitmap createResourceBitmap(java.io.InputStream inputStream, int hash) throws java.io.IOException
createResourceBitmap
in interface org.mapsforge.core.graphics.GraphicFactory
java.io.IOException
public org.mapsforge.core.graphics.TileBitmap createTileBitmap(java.io.InputStream inputStream, int tileSize, boolean hasAlpha) throws java.io.IOException
createTileBitmap
in interface org.mapsforge.core.graphics.GraphicFactory
java.io.IOException
public org.mapsforge.core.graphics.TileBitmap createTileBitmap(int tileSize, boolean hasAlpha)
createTileBitmap
in interface org.mapsforge.core.graphics.GraphicFactory
public java.io.InputStream platformSpecificSources(java.lang.String relativePathPrefix, java.lang.String src) throws java.io.IOException
platformSpecificSources
in interface org.mapsforge.core.graphics.GraphicFactory
java.io.IOException
public org.mapsforge.core.graphics.ResourceBitmap renderSvg(java.io.InputStream inputStream, float scaleFactor, int width, int height, int percent, int hash) throws java.io.IOException
renderSvg
in interface org.mapsforge.core.graphics.GraphicFactory
java.io.IOException