Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The KRendering class is the base class of all renderings. More complex renderings can be build-up of multiple simple drawings using the KContainerRendering class which is the base class of all renderings with children. The KChildArea class can be used to place a KNode at a specific position inside a rendering. Once you have created a figure, KRendering offers the possibility to store it in a KRenderingLibrary. A stored rendering can be reused by referencing it with a KRenderingRef.

The following figure shows basic container renderings.

...

Children of KContainerRenderings are placed inside, depending on the KPlacement of the container. Currently KRendering offers KStackPlacement for placing renderings in one column and KGridPlacement for placing renderings on a grid. A children can refine its placement by using KPlacementData.