Interface Paint

All Known Implementing Classes:
Color, ImagePattern, LinearGradient, RadialGradient

public interface Paint
Author:
Bruno Salmon
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static Paint
    valueOf(String value)
    Creates a paint value from a string representation.
  • Method Details

    • isOpaque

      boolean isOpaque()
    • valueOf

      static Paint valueOf(String value)
      Creates a paint value from a string representation. Recognizes strings representing Color, RadialGradient or LinearGradient. 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, RadialGradient or LinearGradient object holding the value represented by the string argument.
      Throws:
      NullPointerException - if value is null
      IllegalArgumentException - if value cannot be parsed
      Since:
      JavaFX 2.1
      See Also: