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 Type
    Method
    Description
    org.oscim.backend.canvas.Bitmap
     
    org.oscim.backend.canvas.Bitmap
    decodeBitmapImpl(InputStream inputStream, int width, int height, int percent)
     
    org.oscim.backend.canvas.Bitmap
    decodeSvgBitmapImpl(InputStream inputStream, int width, int height, int percent)
     
    getBitmap(org.oscim.backend.canvas.Bitmap bitmap)
     
    static void
     
    org.oscim.backend.canvas.Bitmap
    loadBitmapAssetImpl(String relativePathPrefix, String src, org.oscim.theme.XmlThemeResourceProvider resourceProvider, int width, int height, int percent)
     
    org.oscim.backend.canvas.Bitmap
    newBitmapImpl(int width, int height, int format)
     
    org.oscim.backend.canvas.Canvas
     
    org.oscim.backend.canvas.Paint
     

    Methods inherited from class org.oscim.backend.CanvasAdapter

    createBitmap, decodeBitmap, decodeBitmap, decodeSvgBitmap, getAbsoluteFile, getBitmapAsset, getBitmapAsset, getDeviceScale, getScale, init, newBitmap, newCanvas, newPaint

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • init

      public static void init()
    • getBitmap

      public static BufferedImage getBitmap(org.oscim.backend.canvas.Bitmap bitmap)
    • newPaintImpl

      public org.oscim.backend.canvas.Paint newPaintImpl()
      Specified by:
      newPaintImpl in class org.oscim.backend.CanvasAdapter
    • newBitmapImpl

      public org.oscim.backend.canvas.Bitmap newBitmapImpl(int width, int height, int format)
      Specified by:
      newBitmapImpl in class org.oscim.backend.CanvasAdapter
    • newCanvasImpl

      public org.oscim.backend.canvas.Canvas newCanvasImpl()
      Specified by:
      newCanvasImpl in class org.oscim.backend.CanvasAdapter
    • decodeBitmapImpl

      public org.oscim.backend.canvas.Bitmap decodeBitmapImpl(InputStream inputStream) throws IOException
      Specified by:
      decodeBitmapImpl in class org.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:
      decodeBitmapImpl in class org.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:
      decodeSvgBitmapImpl in class org.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:
      loadBitmapAssetImpl in class org.oscim.backend.CanvasAdapter
      Throws:
      IOException