Package org.oscim.awt
Class AwtGraphics
java.lang.Object
org.oscim.backend.CanvasAdapter
org.oscim.awt.AwtGraphics
public class AwtGraphics
extends org.oscim.backend.CanvasAdapter
-
Field Summary
Fields inherited from class org.oscim.backend.CanvasAdapter
DEFAULT_DPI, dpi, platform, PREFIX_FILE, symbolScale, textScale, userScale -
Method Summary
Modifier and TypeMethodDescriptionorg.oscim.backend.canvas.BitmapdecodeBitmapImpl(InputStream inputStream) org.oscim.backend.canvas.BitmapdecodeBitmapImpl(InputStream inputStream, int width, int height, int percent) org.oscim.backend.canvas.BitmapdecodeSvgBitmapImpl(InputStream inputStream, int width, int height, int percent) static BufferedImagegetBitmap(org.oscim.backend.canvas.Bitmap bitmap) static voidinit()org.oscim.backend.canvas.BitmaploadBitmapAssetImpl(String relativePathPrefix, String src, org.oscim.theme.XmlThemeResourceProvider resourceProvider, int width, int height, int percent) org.oscim.backend.canvas.BitmapnewBitmapImpl(int width, int height, int format) org.oscim.backend.canvas.Canvasorg.oscim.backend.canvas.PaintMethods inherited from class org.oscim.backend.CanvasAdapter
createBitmap, decodeBitmap, decodeBitmap, decodeSvgBitmap, getAbsoluteFile, getBitmapAsset, getBitmapAsset, getDeviceScale, getScale, init, newBitmap, newCanvas, newPaint
-
Method Details
-
init
public static void init() -
getBitmap
-
newPaintImpl
public org.oscim.backend.canvas.Paint newPaintImpl()- Specified by:
newPaintImplin classorg.oscim.backend.CanvasAdapter
-
newBitmapImpl
public org.oscim.backend.canvas.Bitmap newBitmapImpl(int width, int height, int format) - Specified by:
newBitmapImplin classorg.oscim.backend.CanvasAdapter
-
newCanvasImpl
public org.oscim.backend.canvas.Canvas newCanvasImpl()- Specified by:
newCanvasImplin classorg.oscim.backend.CanvasAdapter
-
decodeBitmapImpl
- Specified by:
decodeBitmapImplin classorg.oscim.backend.CanvasAdapter- Throws:
IOException
-
decodeBitmapImpl
public org.oscim.backend.canvas.Bitmap decodeBitmapImpl(InputStream inputStream, int width, int height, int percent) throws IOException - Specified by:
decodeBitmapImplin classorg.oscim.backend.CanvasAdapter- Throws:
IOException
-
decodeSvgBitmapImpl
public org.oscim.backend.canvas.Bitmap decodeSvgBitmapImpl(InputStream inputStream, int width, int height, int percent) throws IOException - Specified by:
decodeSvgBitmapImplin classorg.oscim.backend.CanvasAdapter- Throws:
IOException
-
loadBitmapAssetImpl
public org.oscim.backend.canvas.Bitmap loadBitmapAssetImpl(String relativePathPrefix, String src, org.oscim.theme.XmlThemeResourceProvider resourceProvider, int width, int height, int percent) throws IOException - Specified by:
loadBitmapAssetImplin classorg.oscim.backend.CanvasAdapter- Throws:
IOException
-