Package icyllis.modernui.graphics
Enum Class Paint.Style
- All Implemented Interfaces:
Serializable
,Comparable<Paint.Style>
,Constable
- Enclosing class:
Paint
Set
Style
to fill, stroke, or both fill and stroke geometry.
The stroke and fill share all paint attributes; for instance, they are drawn with the same color.
Use Paint.STROKE_AND_FILL
to avoid hitting the same pixels twice with a stroke draw and
a fill draw. The default is FILL
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionGeometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint.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.Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint. -
Method Summary
Modifier and TypeMethodDescriptionstatic Paint.Style
Returns the enum constant of this class with the specified name.static Paint.Style[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FILL
Geometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint. -
STROKE
Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint. -
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-