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 nullIllegalArgumentException - if value cannot be parsedColor.valueOf(String),
LinearGradient.valueOf(String),
RadialGradient.valueOf(String)Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.