public abstract class Paint extends Object
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isOpaque()
Gets whether this Paint is completely opaque.
|
static Paint |
valueOf(String value)
Creates a paint value from a string representation.
|
public abstract boolean isOpaque()
public static Paint valueOf(String value)
Color
, RadialGradient
or LinearGradient
.
String specifying LinearGradient must begin with linear-gradient keyword
and string specifying RadialGradient must begin with radial-gradient.value
- the string to convertColor
, RadialGradient
or LinearGradient
object holding the value represented by the string argument.NullPointerException
- if value
is null
IllegalArgumentException
- if value
cannot be parsedColor.valueOf(String)
,
LinearGradient.valueOf(String)
,
RadialGradient.valueOf(String)
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.