android.graphics.drawable
Class PictureDrawable

java.lang.Object
  extended by android.graphics.drawable.Drawable
      extended by android.graphics.drawable.PictureDrawable

public class PictureDrawable
extends Drawable


Nested Class Summary
 
Nested classes/interfaces inherited from class android.graphics.drawable.Drawable
Drawable.Callback, Drawable.ConstantState
 
Constructor Summary
PictureDrawable(Picture picture)
           
 
Method Summary
 void draw(Canvas canvas)
           
 int getIntrinsicHeight()
           
 int getIntrinsicWidth()
           
 int getOpacity()
           
 Picture getPicture()
           
 void setAlpha(int alpha)
           
 void setColorFilter(ColorFilter colorFilter)
           
 void setDither(boolean dither)
           
 void setFilterBitmap(boolean filter)
           
 void setPicture(Picture picture)
           
 
Methods inherited from class android.graphics.drawable.Drawable
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getConstantState, getCurrent, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, inflate, invalidateSelf, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setLevel, setState, setVisible, unscheduleSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PictureDrawable

public PictureDrawable(Picture picture)
Method Detail

getPicture

public Picture getPicture()

setPicture

public void setPicture(Picture picture)

draw

public void draw(Canvas canvas)
Specified by:
draw in class Drawable

getIntrinsicWidth

public int getIntrinsicWidth()
Overrides:
getIntrinsicWidth in class Drawable

getIntrinsicHeight

public int getIntrinsicHeight()
Overrides:
getIntrinsicHeight in class Drawable

getOpacity

public int getOpacity()
Specified by:
getOpacity in class Drawable

setFilterBitmap

public void setFilterBitmap(boolean filter)
Overrides:
setFilterBitmap in class Drawable

setDither

public void setDither(boolean dither)
Overrides:
setDither in class Drawable

setColorFilter

public void setColorFilter(ColorFilter colorFilter)
Specified by:
setColorFilter in class Drawable

setAlpha

public void setAlpha(int alpha)
Specified by:
setAlpha in class Drawable


Copyright © 2008-2012. All Rights Reserved.