Class Fill
- All Implemented Interfaces:
JsonSerializable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic FillfromJson(com.google.gson.JsonObject obj) @Nullable IntegergetColor()Get the fill color of this fill rule.@Nullable Fill.TypegetType()Get the fill type of this fill rule.inthashCode()booleanCheck whether all options are defaults (all are null)@Nullable BooleanWhether to fill the path with color.Set a new color for this fill rule.setEnabled(@Nullable Boolean enabled) Set whether to fill the path with color.Set a new fill type for this fill rule.com.google.gson.JsonObjecttoJson()Jsonify this object.toString()
-
Constructor Details
-
Fill
public Fill()Create a fill rule with default options. -
Fill
public Fill(boolean enabled) Create a fill rule. -
Fill
public Fill(int color) Create a fill rule.- Parameters:
color- argb color
-
-
Method Details
-
isEnabled
Whether to fill the path with color.Defaults to '
true' if null.- Returns:
- true if fill is enabled
-
setEnabled
-
getType
Get the fill type of this fill rule.Defaults to '
' if null.Fill.Type.EVENODD- Returns:
- fill type
- See Also:
-
setType
Set a new fill type for this fill rule.Defaults to '
' if null.Fill.Type.EVENODD- Parameters:
type- new fill type- Returns:
- this fill rule
- See Also:
-
getColor
Get the fill color of this fill rule.Defaults to '
' if null.Stroke.getColor()- Returns:
- argb color
-
setColor
Set a new color for this fill rule.Defaults to '
' if null.Stroke.getColor()- Parameters:
color- new argb color- Returns:
- this fill rule
-
isDefault
-
toJson
public com.google.gson.JsonObject toJson()Description copied from interface:JsonSerializableJsonify this object.- Returns:
- object as json element
-
fromJson
-
equals
-
hashCode
-
toString
-