public abstract class Paint
extends java.lang.Object
Constructor and Description |
---|
Paint()
Only allow classes in this package to subclass Paint
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
acc_addListener(AbstractNotifyListener platformChangeListener) |
(package private) abstract java.lang.Object |
acc_getPlatformPaint() |
(package private) boolean |
acc_isMutable() |
(package private) void |
acc_removeListener(AbstractNotifyListener platformChangeListener) |
abstract boolean |
isOpaque()
Gets whether this Paint is completely opaque.
|
static Paint |
valueOf(java.lang.String value)
Creates a paint value from a string representation.
|
boolean acc_isMutable()
abstract java.lang.Object acc_getPlatformPaint()
void acc_addListener(AbstractNotifyListener platformChangeListener)
void acc_removeListener(AbstractNotifyListener platformChangeListener)
public abstract boolean isOpaque()
public static Paint valueOf(java.lang.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.java.lang.NullPointerException
- if value
is null
java.lang.IllegalArgumentException
- if value
cannot be parsedColor.valueOf(String)
,
LinearGradient.valueOf(String)
,
RadialGradient.valueOf(String)