Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final enum

Paint.Style

extends Enum <E extends  Enum <E>>
java.lang.Object
   ↳ java.lang.Enum <E extends  java.lang.Enum <E>>
     ↳ android.graphics.Paint.Style

Class Overview

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)
final static Style[] values ()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final Paint.Style FILL

Added in API level 1

Geometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint.

public static final Paint.Style FILL_AND_STROKE

Added in API level 1

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.

public static final Paint.Style STROKE

Added in API level 1

Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint.

Public Methods

public static Paint.Style valueOf ( String name)

Added in API level 1

public static final Style[] values ()

Added in API level 1