public class Canvas extends Object
Modifier and Type | Field and Description |
---|---|
int |
absoluteX
Deprecated.
|
int |
absoluteY
Deprecated.
|
Rectangle |
bounds
Deprecated.
|
Graphics |
g
Deprecated.
|
Constructor and Description |
---|
Canvas()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
drawArc(Rectangle2D oval,
float currentAngle,
float sweepAngle,
boolean useCenter,
Paint paint)
Deprecated.
|
void |
drawArcWithGradient(Rectangle2D oval,
float currentAngle,
float sweepAngle,
boolean useCenter,
Paint paint,
GradientDrawable gradient)
Deprecated.
|
void |
drawBitmap(Image img,
float left,
float top,
Paint paint)
Deprecated.
|
void |
drawCircle(float cx,
float cy,
float r,
Paint paint)
Deprecated.
|
void |
drawLine(float x1,
float y1,
float x2,
float y2,
Paint paint)
Deprecated.
|
void |
drawPath(Shape p,
Paint paint)
Deprecated.
|
void |
drawPoint(Float get,
Float get0,
Paint paint)
Deprecated.
|
void |
drawRect(float left,
float top,
float right,
float bottom,
Paint paint)
Deprecated.
|
void |
drawRoundRect(Rectangle2D rect,
float rx,
float ry,
Paint mPaint)
Deprecated.
|
void |
drawText(String string,
float x,
float y,
Paint paint)
Deprecated.
|
void |
getClipBounds(Rectangle mRect)
Deprecated.
|
int |
getHeight()
Deprecated.
|
int |
getWidth()
Deprecated.
|
boolean |
isShapeClipSupported()
Deprecated.
|
void |
rotate(float angle,
float x,
float y)
Deprecated.
|
void |
scale(float x,
float y)
Deprecated.
|
void |
translate(float x,
float y)
Deprecated.
|
public Graphics g
public Rectangle bounds
public int absoluteX
public int absoluteY
public void getClipBounds(Rectangle mRect)
public void drawRect(float left, float top, float right, float bottom, Paint paint)
public int getHeight()
public int getWidth()
public void drawLine(float x1, float y1, float x2, float y2, Paint paint)
public void rotate(float angle, float x, float y)
public void scale(float x, float y)
public void translate(float x, float y)
public void drawCircle(float cx, float cy, float r, Paint paint)
public void drawArc(Rectangle2D oval, float currentAngle, float sweepAngle, boolean useCenter, Paint paint)
public void drawArcWithGradient(Rectangle2D oval, float currentAngle, float sweepAngle, boolean useCenter, Paint paint, GradientDrawable gradient)
public void drawRoundRect(Rectangle2D rect, float rx, float ry, Paint mPaint)
public boolean isShapeClipSupported()