public class PathShape extends BaseShape
mBoundsRect, mPivotX, mPivotY, mRotation, mScaleX, mScaleY, mStdHeight, mStdHeight2, mStdWidth, mStdWidth2, TAG| Constructor and Description |
|---|
PathShape(android.graphics.Path path,
float stdWidth,
float stdHeight)
PathShape constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PathShape |
clone() |
protected void |
doDraw(android.graphics.Canvas canvas,
android.graphics.Paint paint)
Shapeの実際の描画処理 BaseShapeでは四角を描画する。
|
android.graphics.Path |
getPath()
設定されているPathを返す
|
void |
setPath(android.graphics.Path path)
Shape表示内容を定義するPathを設定する
|
boundsRect, draw, getOutline, getRotation, getScaleX, getScaleY, onResize, setRotationpublic PathShape(android.graphics.Path path,
float stdWidth,
float stdHeight)
path - Shape表示内容を定義するPath。Pathの座標値はShape内描画座標系で
Shapeの描画内容の位置関係を示すだけなので実際の表示サイズとは異なる。stdWidth - Shape内座標系の最大幅stdHeight - Shape内座標系の最大高さprotected void doDraw(android.graphics.Canvas canvas,
android.graphics.Paint paint)
BaseShapepublic PathShape clone() throws java.lang.CloneNotSupportedException
public void setPath(android.graphics.Path path)
path - public android.graphics.Path getPath()