Paint.Style
public
static
final
enum
Paint.Style
extends Enum<Paint.Style>
| java.lang.Object | ||
| ↳ | java.lang.Enum<android.graphics.Paint.Style> | |
| ↳ | android.graphics.Paint.Style | |
The Style specifies if the primitive being drawn is filled, stroked, or both (in the same color). The default is FILL.
Summary
Enum values | |
|---|---|
Paint.Style |
FILL
Geometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint. |
Paint.Style |
FILL_AND_STROKE
Geometry and text drawn with this style will be both filled and stroked at the same time, respecting the stroke-related fields on the paint. |
Paint.Style |
STROKE
Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint. |
Public methods | |
|---|---|
static
Paint.Style
|
valueOf(String name)
|
static
final
Style[]
|
values()
|
Inherited methods | |
|---|---|
java.lang.Enum
| |
java.lang.Object
| |
java.lang.Comparable
| |
Enum values
FILL
Paint.Style FILL
Geometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint.
FILL_AND_STROKE
Paint.Style FILL_AND_STROKE
Geometry and text drawn with this style will be both filled and stroked at the same time, respecting the stroke-related fields on the paint. This mode can give unexpected results if the geometry is oriented counter-clockwise. This restriction does not apply to either FILL or STROKE.
STROKE
Paint.Style STROKE
Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint.
Public methods
valueOf
Paint.Style valueOf (String name)
| Parameters | |
|---|---|
name |
String
|
| Returns | |
|---|---|
Paint.Style |
|
Interfaces
Classes
- Bitmap
- BitmapFactory
- BitmapFactory.Options
- BitmapRegionDecoder
- BitmapShader
- BlurMaskFilter
- Camera
- Canvas
- Color
- ColorFilter
- ColorMatrix
- ColorMatrixColorFilter
- ComposePathEffect
- ComposeShader
- CornerPathEffect
- DashPathEffect
- DiscretePathEffect
- DrawFilter
- EmbossMaskFilter
- ImageFormat
- Interpolator
- LayerRasterizer
- LightingColorFilter
- LinearGradient
- MaskFilter
- Matrix
- Movie
- NinePatch
- Outline
- Paint
- Paint.FontMetrics
- Paint.FontMetricsInt
- PaintFlagsDrawFilter
- Path
- PathDashPathEffect
- PathEffect
- PathMeasure
- Picture
- PixelFormat
- Point
- PointF
- PorterDuff
- PorterDuffColorFilter
- PorterDuffXfermode
- RadialGradient
- Rasterizer
- Rect
- RectF
- Region
- RegionIterator
- Shader
- SumPathEffect
- SurfaceTexture
- SweepGradient
- Typeface
- Xfermode
- YuvImage
Enums
Exceptions


