public class BubbleShader extends ShaderHelper
| Modifier and Type | Class and Description |
|---|---|
static class |
BubbleShader.ArrowPosition |
borderAlpha, borderColor, borderPaint, borderWidth, drawable, imagePaint, matrix, shader, square, viewHeight, viewWidth| Constructor and Description |
|---|
BubbleShader() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculate(int bitmapWidth,
int bitmapHeight,
float width,
float height,
float scale,
float translateX,
float translateY) |
void |
draw(android.graphics.Canvas canvas,
android.graphics.Paint imagePaint,
android.graphics.Paint borderPaint) |
BubbleShader.ArrowPosition |
getArrowPosition() |
int |
getTriangleHeightPx() |
void |
init(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
void |
reset() |
void |
setArrowPosition(BubbleShader.ArrowPosition arrowPosition) |
void |
setTriangleHeightPx(int triangleHeightPx) |
calculateDrawableSizes, createShader, dpToPx, getBitmap, getBorderAlpha, getBorderColor, getBorderWidth, isSquare, onDraw, onImageDrawableReset, onSizeChanged, setBorderAlpha, setBorderColor, setBorderWidth, setSquarepublic void init(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
init in class ShaderHelperpublic void draw(android.graphics.Canvas canvas,
android.graphics.Paint imagePaint,
android.graphics.Paint borderPaint)
draw in class ShaderHelperpublic void calculate(int bitmapWidth,
int bitmapHeight,
float width,
float height,
float scale,
float translateX,
float translateY)
calculate in class ShaderHelperpublic void reset()
reset in class ShaderHelperpublic int getTriangleHeightPx()
public void setTriangleHeightPx(int triangleHeightPx)
public BubbleShader.ArrowPosition getArrowPosition()
public void setArrowPosition(BubbleShader.ArrowPosition arrowPosition)