com.java4less.rchart.gc.android
Class ChartAndroidImage

java.lang.Object
  extended by com.java4less.rchart.gc.ChartImage
      extended by com.java4less.rchart.gc.android.ChartAndroidImage

public class ChartAndroidImage
extends ChartImage


Field Summary
static AssetManager assets
           
 
Constructor Summary
ChartAndroidImage(int w, int h)
          create a new image of a given size
ChartAndroidImage(int w, int h, ChartColor transparent)
          create a new transparent image of a given size
ChartAndroidImage(java.lang.Object o)
          create image from android image
 
Method Summary
 ChartGraphics getGraphics()
          get graphic context of the image
 ChartGraphics getGraphics(int rotationDegrees, int pivotx, int pivoty)
          get graphic context of the image
 int getHeight()
          get height of the image
 Bitmap getImage()
          get android image object
 int getWidth()
          get width of the image
 boolean saveToStream(java.lang.String sFormat, java.io.OutputStream os)
          saves image to an output stream
 
Methods inherited from class com.java4less.rchart.gc.ChartImage
dispose, saveToFile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assets

public static AssetManager assets
Constructor Detail

ChartAndroidImage

public ChartAndroidImage(java.lang.Object o)
create image from android image

Parameters:
o -

ChartAndroidImage

public ChartAndroidImage(int w,
                         int h,
                         ChartColor transparent)
create a new transparent image of a given size

Parameters:
w - width
h - height
transparent - background color which will be transparent

ChartAndroidImage

public ChartAndroidImage(int w,
                         int h)
create a new image of a given size

Parameters:
w - width
h - height
Method Detail

getGraphics

public ChartGraphics getGraphics()
get graphic context of the image

Overrides:
getGraphics in class ChartImage
Returns:

getGraphics

public ChartGraphics getGraphics(int rotationDegrees,
                                 int pivotx,
                                 int pivoty)
Description copied from class: ChartImage
get graphic context of the image

Overrides:
getGraphics in class ChartImage
Returns:

getWidth

public int getWidth()
get width of the image

Overrides:
getWidth in class ChartImage
Returns:

getHeight

public int getHeight()
get height of the image

Overrides:
getHeight in class ChartImage
Returns:

getImage

public Bitmap getImage()
get android image object

Returns:

saveToStream

public boolean saveToStream(java.lang.String sFormat,
                            java.io.OutputStream os)
saves image to an output stream

Overrides:
saveToStream in class ChartImage
Parameters:
sFormat - GIF,PNG or JPEG
file -
Returns: