Package javafx.scene.paint
Interface Paint
- All Known Implementing Classes:
Color,ImagePattern,LinearGradient,RadialGradient
public interface Paint
- Author:
- Bruno Salmon
-
Method Summary
-
Method Details
-
isOpaque
boolean isOpaque() -
valueOf
Creates a paint value from a string representation. Recognizes strings representingColor,RadialGradientorLinearGradient. String specifying LinearGradient must begin with linear-gradient keyword and string specifying RadialGradient must begin with radial-gradient.- Parameters:
value- the string to convert- Returns:
- a
Color,RadialGradientorLinearGradientobject holding the value represented by the string argument. - Throws:
NullPointerException- ifvalueisnullIllegalArgumentException- ifvaluecannot be parsed- Since:
- JavaFX 2.1
- See Also:
-