ShapeConverter (JavaFX 27)
Description: declaration: module: javafx.graphics, package: javafx.css.converter, class: ShapeConverter

# Class ShapeConverter

java.lang.Object
javafx.css.StyleConverter<String,Shape>
javafx.css.converter.ShapeConverter

public class ShapeConverter extends StyleConverter<String,Shape>
Converter to convert a SVG shape string into a `Shape` object.

Since:
  9

- ## Nested Class Summary

  ### Nested classes/interfaces declared in class StyleConverter

  `StyleConverter.StringStore`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `clearCache()`
  Clears the `ShapeConverter` cache.
  `static StyleConverter<String,Shape>`
  `getInstance()`
  Gets the `ShapeConverter` instance.

  ### Methods declared in class StyleConverter

  `cacheValue, convert, convert, getBooleanConverter, getCachedValue, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverter, readBinary, writeBinary`

  ### Methods declared in class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getInstance

    public static StyleConverter<String,Shape> getInstance()
    Gets the `ShapeConverter` instance.
    Returns:
      the `ShapeConverter` instance

  - ### clearCache

    public static void clearCache()
    Clears the `ShapeConverter` cache.