public abstract class PrDrawable extends PrTexture<RTTexture> implements PoolFilterable
Modifier and Type | Field and Description |
---|---|
private java.lang.ref.WeakReference<ImagePool> |
pool |
Modifier | Constructor and Description |
---|---|
protected |
PrDrawable(RTTexture rtt) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static PrDrawable |
create(FilterContext fctx,
RTTexture rtt) |
abstract Graphics |
createGraphics() |
ImagePool |
getImagePool() |
int |
getMaxContentHeight() |
int |
getMaxContentWidth() |
float |
getPixelScale() |
void |
setContentHeight(int contentH) |
void |
setContentWidth(int contentW) |
void |
setImagePool(ImagePool pool) |
getNativeBounds, getTextureObject, isLost, lock, unlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flush, getContentHeight, getContentWidth, getData, getPhysicalHeight, getPhysicalWidth
isLost, lock, unlock
private java.lang.ref.WeakReference<ImagePool> pool
protected PrDrawable(RTTexture rtt)
public static PrDrawable create(FilterContext fctx, RTTexture rtt)
public void setImagePool(ImagePool pool)
setImagePool
in interface PoolFilterable
public ImagePool getImagePool()
getImagePool
in interface PoolFilterable
public float getPixelScale()
getPixelScale
in interface Filterable
public int getMaxContentWidth()
getMaxContentWidth
in interface Filterable
public int getMaxContentHeight()
getMaxContentHeight
in interface Filterable
public void setContentWidth(int contentW)
setContentWidth
in interface Filterable
public void setContentHeight(int contentH)
setContentHeight
in interface Filterable
public abstract Graphics createGraphics()
public void clear()