public class MaterialShowcaseDrawer extends Object implements ShowcaseDrawer
| Constructor and Description |
|---|
MaterialShowcaseDrawer(android.content.res.Resources resources) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawShowcase(android.graphics.Bitmap buffer,
float x,
float y,
float scaleMultiplier)
Draw the showcase.
|
void |
drawToCanvas(android.graphics.Canvas canvas,
android.graphics.Bitmap bitmapBuffer)
Draw the commands drawn to the canvas.
|
void |
erase(android.graphics.Bitmap bitmapBuffer)
Remove all drawing on the bitmap.
|
float |
getBlockedRadius() |
int |
getShowcaseHeight() |
int |
getShowcaseWidth() |
void |
setBackgroundColour(int backgroundColor)
Set the background color of the showcase.
|
void |
setShowcaseColour(int color)
Sets the value of the showcase color from themes.
|
public MaterialShowcaseDrawer(android.content.res.Resources resources)
public void setShowcaseColour(int color)
ShowcaseDrawerShowcaseDrawer.drawShowcase(Bitmap, float, float, float)setShowcaseColour in interface ShowcaseDrawercolor - the color supplied in the themepublic void drawShowcase(android.graphics.Bitmap buffer,
float x,
float y,
float scaleMultiplier)
ShowcaseDrawerdrawShowcase in interface ShowcaseDrawerbuffer - the bitmap to draw ontox - the x position of the point to showcasey - the y position of the point to showcasescaleMultiplier - a scale factor. Currently unusedpublic int getShowcaseWidth()
getShowcaseWidth in interface ShowcaseDrawerpublic int getShowcaseHeight()
getShowcaseHeight in interface ShowcaseDrawerpublic float getBlockedRadius()
getBlockedRadius in interface ShowcaseDrawerShowcaseView.setBlocksTouches(boolean) is setpublic void setBackgroundColour(int backgroundColor)
ShowcaseDrawerShowcaseDrawer.erase(Bitmap)setBackgroundColour in interface ShowcaseDrawerpublic void erase(android.graphics.Bitmap bitmapBuffer)
ShowcaseDrawerStandardShowcaseDrawer for an exampleerase in interface ShowcaseDrawerbitmapBuffer - the Bitmap to erase drawing frompublic void drawToCanvas(android.graphics.Canvas canvas,
android.graphics.Bitmap bitmapBuffer)
ShowcaseDrawerStandardShowcaseDrawer.drawToCanvas in interface ShowcaseDrawercanvas - canvas to draw tobitmapBuffer - bitmap to draw