Methods Summary |
---|
public void | draw(android.graphics.Canvas canvas)
if (canvas instanceof BridgeCanvas) {
BridgeCanvas bridgeCanvas = (BridgeCanvas)canvas;
Rect r = getBounds();
m9Patch.draw(bridgeCanvas.getGraphics2d(), r.left, r.top, r.width(), r.height());
return;
}
throw new UnsupportedOperationException();
|
public int | getIntrinsicHeight()Return the intrinsic height of the underlying drawable object. Returns
-1 if it has no intrinsic height, such as with a solid color.
return m9Patch.getHeight();
|
public int | getIntrinsicWidth()Return the intrinsic width of the underlying drawable object. Returns
-1 if it has no intrinsic width, such as with a solid color.
return m9Patch.getWidth();
|
public int | getMinimumHeight()
return m9Patch.getHeight();
|
public int | getMinimumWidth()
return m9Patch.getWidth();
|
public int | getOpacity()
// FIXME
return 0xFF;
|
public boolean | getPadding(android.graphics.Rect padding)Return in padding the insets suggested by this Drawable for placing
content inside the drawable's bounds. Positive values move toward the
center of the Drawable (set Rect.inset). Returns true if this drawable
actually has a padding, else false. When false is returned, the padding
is always set to 0.
int[] padd = new int[4];
m9Patch.getPadding(padd);
padding.left = padd[0];
padding.top = padd[1];
padding.right = padd[2];
padding.bottom = padd[3];
return true;
|
public void | setAlpha(int arg0)
// FIXME !
|
public void | setColorFilter(android.graphics.ColorFilter arg0)
// FIXME
|