Lines Matching refs:graphics

26             <li><a href="{@docRoot}guide/topics/graphics/2d-graphics.html">
45 android.view.View#onDraw(android.graphics.Canvas) onDraw()} method. The parameter to {@link
46 android.view.View#onDraw(android.graphics.Canvas) onDraw()} is a {@link
47 android.graphics.Canvas Canvas} object that the view can use to draw itself. The {@link
48 android.graphics.Canvas Canvas}
49 class defines methods for drawing text, lines, bitmaps, and many other graphics primitives. You can
52 android.view.View#onDraw(android.graphics.Canvas) onDraw()} to create your custom user interface (U…
55 android.graphics.Paint Paint}
56 object. The next section discusses {@link android.graphics.Paint Paint} in more detail.</p>
60 <p>The {@link android.graphics} framework divides drawing into two areas:</p>
63 <li><i>What</i> to draw, handled by {@link android.graphics.Canvas Canvas}</li>
64 <li><i>How</i> to draw, handled by {@link android.graphics.Paint}.</li>
67 <p>For instance, {@link android.graphics.Canvas Canvas} provides a method to draw a line, while
69 android.graphics.Paint Paint} provides methods to define that line's color. {@link
70 android.graphics.Canvas Canvas} has a
71 method to draw a rectangle, while {@link android.graphics.Paint Paint} defines whether to fill that
73 color or leave it empty. Simply put, {@link android.graphics.Canvas Canvas} defines shapes that you
75 screen, while {@link android.graphics.Paint Paint} defines the color, style, font, and so forth of
79 <p>So, before you draw anything, you need to create one or more {@link android.graphics.Paint Paint}
109 android.view.View#onDraw(android.graphics.Canvas) onDraw()}
220 android.view.View#onDraw(android.graphics.Canvas) onDraw()}. Every view
222 android.view.View#onDraw(android.graphics.Canvas) onDraw()}
227 <li>Draw text using {@link android.graphics.Canvas#drawText drawText()}. Specify the typeface by
229 android.graphics.Paint#setTypeface setTypeface()}, and the text color by calling {@link
230 android.graphics.Paint#setColor setColor()}.
232 <li>Draw primitive shapes using {@link android.graphics.Canvas#drawRect drawRect()}, {@link
233 android.graphics.Canvas#drawOval drawOval()}, and {@link android.graphics.Canvas#drawArc
236 android.graphics.Paint#setStyle(android.graphics.Paint.Style) setStyle()}.
238 <li>Draw more complex shapes using the {@link android.graphics.Path} class.
241 android.graphics.Path} object, then draw the shape using {@link
242 android.graphics.Canvas#drawPath drawPath()}.
244 {@link android.graphics.Paint#setStyle
248 Define gradient fills by creating {@link android.graphics.LinearGradient} objects. Call {@link
249 android.graphics.Paint#setShader setShader()} to use your
250 {@link android.graphics.LinearGradient} on filled
252 <li>Draw bitmaps using {@link android.graphics.Canvas#drawBitmap drawBitmap()}.</li>