Package org.mapsforge.map.awt.graphics
Class AwtGraphicFactory
java.lang.Object
org.mapsforge.map.awt.graphics.AwtGraphicFactory
- All Implemented Interfaces:
org.mapsforge.core.graphics.GraphicFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.mapsforge.core.graphics.GraphicFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidorg.mapsforge.core.graphics.BitmapcreateBitmap(int width, int height) org.mapsforge.core.graphics.BitmapcreateBitmap(int width, int height, boolean isTransparent) org.mapsforge.core.graphics.CanvasintcreateColor(int alpha, int red, int green, int blue) intcreateColor(org.mapsforge.core.graphics.Color color) static org.mapsforge.core.graphics.GraphicContextcreateGraphicContext(Graphics graphics) org.mapsforge.core.graphics.MatrixcreateMonoBitmap(int width, int height, byte[] buffer, int padding, org.mapsforge.core.model.BoundingBox area) org.mapsforge.core.graphics.Paintorg.mapsforge.core.graphics.PaintcreatePaint(org.mapsforge.core.graphics.Paint paint) org.mapsforge.core.graphics.Pathorg.mapsforge.core.mapelements.PointTextContainercreatePointTextContainer(org.mapsforge.core.model.Point xy, org.mapsforge.core.graphics.Display display, int priority, 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.ResourceBitmapcreateResourceBitmap(InputStream inputStream, float scaleFactor, int width, int height, int percent, int hash) org.mapsforge.core.graphics.TileBitmapcreateTileBitmap(int tileSize, boolean hasAlpha) org.mapsforge.core.graphics.TileBitmapcreateTileBitmap(InputStream inputStream, int tileSize, boolean hasAlpha) static BufferedImagegetBitmap(org.mapsforge.core.graphics.Bitmap bitmap) Returns the internal image representation.static Graphics2DgetGraphics(org.mapsforge.core.graphics.Canvas canvas) static AwtPaintgetPaint(org.mapsforge.core.graphics.Paint paint) platformSpecificSources(String relativePathPrefix, String src) org.mapsforge.core.graphics.ResourceBitmaprenderSvg(InputStream inputStream, float scaleFactor, int width, int height, int percent, int hash)
-
Field Details
-
INSTANCE
public static final org.mapsforge.core.graphics.GraphicFactory INSTANCE
-
-
Constructor Details
-
AwtGraphicFactory
public AwtGraphicFactory()
-
-
Method Details
-
createGraphicContext
-
getGraphics
-
getPaint
-
clearResourceFileCache
public static void clearResourceFileCache() -
clearResourceMemoryCache
public static void clearResourceMemoryCache() -
createBitmap
public org.mapsforge.core.graphics.Bitmap createBitmap(int width, int height) - Specified by:
createBitmapin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
createBitmap
public org.mapsforge.core.graphics.Bitmap createBitmap(int width, int height, boolean isTransparent) - Specified by:
createBitmapin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
getBitmap
Returns the internal image representation.- Parameters:
bitmap- Mapsforge Bitmap- Returns:
- platform specific image.
-
createCanvas
public org.mapsforge.core.graphics.Canvas createCanvas()- Specified by:
createCanvasin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
createColor
public int createColor(org.mapsforge.core.graphics.Color color) - Specified by:
createColorin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
createColor
public int createColor(int alpha, int red, int green, int blue) - Specified by:
createColorin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
createMatrix
public org.mapsforge.core.graphics.Matrix createMatrix()- Specified by:
createMatrixin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
createMonoBitmap
public AwtHillshadingBitmap createMonoBitmap(int width, int height, byte[] buffer, int padding, org.mapsforge.core.model.BoundingBox area) - Specified by:
createMonoBitmapin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
createPaint
public org.mapsforge.core.graphics.Paint createPaint()- Specified by:
createPaintin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
createPaint
public org.mapsforge.core.graphics.Paint createPaint(org.mapsforge.core.graphics.Paint paint) - Specified by:
createPaintin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
createPath
public org.mapsforge.core.graphics.Path createPath()- Specified by:
createPathin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
createPointTextContainer
public org.mapsforge.core.mapelements.PointTextContainer createPointTextContainer(org.mapsforge.core.model.Point xy, org.mapsforge.core.graphics.Display display, int priority, 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) - Specified by:
createPointTextContainerin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
createResourceBitmap
public org.mapsforge.core.graphics.ResourceBitmap createResourceBitmap(InputStream inputStream, float scaleFactor, int width, int height, int percent, int hash) throws IOException - Specified by:
createResourceBitmapin interfaceorg.mapsforge.core.graphics.GraphicFactory- Throws:
IOException
-
createTileBitmap
public org.mapsforge.core.graphics.TileBitmap createTileBitmap(InputStream inputStream, int tileSize, boolean hasAlpha) throws IOException - Specified by:
createTileBitmapin interfaceorg.mapsforge.core.graphics.GraphicFactory- Throws:
IOException
-
createTileBitmap
public org.mapsforge.core.graphics.TileBitmap createTileBitmap(int tileSize, boolean hasAlpha) - Specified by:
createTileBitmapin interfaceorg.mapsforge.core.graphics.GraphicFactory
-
platformSpecificSources
public InputStream platformSpecificSources(String relativePathPrefix, String src) throws IOException - Specified by:
platformSpecificSourcesin interfaceorg.mapsforge.core.graphics.GraphicFactory- Throws:
IOException
-
renderSvg
public org.mapsforge.core.graphics.ResourceBitmap renderSvg(InputStream inputStream, float scaleFactor, int width, int height, int percent, int hash) throws IOException - Specified by:
renderSvgin interfaceorg.mapsforge.core.graphics.GraphicFactory- Throws:
IOException
-