# Class RenderingFactory

java.lang.Object
com.treemap.RenderingFactory

@JsType public class RenderingFactory extends Object
Factory class for accessing predefined rendering schemes.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final Rendering`
  `CUSHION`
  Paint leaf nodes with a cushion effect.
  `static final Rendering`
  `FLAT`
  Paint leaf nodes according to their color and with a border around them.
  `static final Rendering`
  `FLAT_NO_BORDER`
  Paint leaf nodes with their color and without border.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `add(Rendering entry)`
  `Rendering`
  `get(String name)`
  `Rendering`
  `getDefault()`
  `static RenderingFactory`
  `getInstance()`
  `List<Rendering>`
  `getRenderings()`

  ### Methods inherited from class Object

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

- ## Field Details

  - ### CUSHION

    public static final Rendering CUSHION
    Paint leaf nodes with a cushion effect.

  - ### FLAT

    public static final Rendering FLAT
    Paint leaf nodes according to their color and with a border around them.

  - ### FLAT_NO_BORDER

    public static final Rendering FLAT_NO_BORDER
    Paint leaf nodes with their color and without border.

- ## Method Details

  - ### getInstance

    public static RenderingFactory getInstance()

  - ### add

    public void add(Rendering entry)

  - ### getDefault

    public Rendering getDefault()

  - ### getRenderings

    public List<Rendering> getRenderings()

  - ### get

    public Rendering get(String name)