public class BubbleShader extends ShaderHelper
| 限定符和类型 | 类和说明 |
|---|---|
static class |
BubbleShader.ArrowDirection |
borderAlpha, borderColor, borderPaint, borderWidth, drawable, imagePaint, matrix, shader, square, viewHeight, viewWidth| 构造器和说明 |
|---|
BubbleShader() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.ArrowDirection |
getArrowDirection() |
int |
getTriangleHeightPx() |
void |
init(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
void |
reset() |
void |
setArrowDirection(BubbleShader.ArrowDirection arrowDirection) |
void |
setTriangleHeightPx(int triangleHeightPx) |
calculateDrawableSizes, createShader, dpToPx, getBitmap, getBitmapFromDrawable, getBorderAlpha, getBorderColor, getBorderWidth, isSquare, onDraw, onImageDrawableReset, onSizeChanged, setBorderAlpha, setBorderColor, setBorderWidth, setSquarepublic void init(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
init 在类中 ShaderHelperpublic void draw(android.graphics.Canvas canvas,
android.graphics.Paint imagePaint,
android.graphics.Paint borderPaint)
draw 在类中 ShaderHelperpublic void calculate(int bitmapWidth,
int bitmapHeight,
float width,
float height,
float scale,
float translateX,
float translateY)
calculate 在类中 ShaderHelperpublic void reset()
reset 在类中 ShaderHelperpublic int getTriangleHeightPx()
public void setTriangleHeightPx(int triangleHeightPx)
public BubbleShader.ArrowDirection getArrowDirection()
public void setArrowDirection(BubbleShader.ArrowDirection arrowDirection)