Interface RenderContext

All Superinterfaces:
ReadOnlyPropertyBean
All Known Subinterfaces:
DrawingView, PrintRenderContext, WritableRenderContext
All Known Implementing Classes:
AbstractDrawingView, SimpleDrawingRenderer, SimpleDrawingView, SimpleRenderContext

public interface RenderContext extends ReadOnlyPropertyBean
RenderContext.
Author:
Werner Randelshofer
  • Field Details

    • RENDERING_INTENT

      static final NonNullKey<RenderingIntent> RENDERING_INTENT
    • DPI

      static final NonNullKey<Double> DPI
      The dots per inch of the rendering device.
    • CLIP_BOUNDS

      static final Key<javafx.geometry.Bounds> CLIP_BOUNDS
      Contains a non-null value if the rendering is clipped. The clip bounds are given in world coordinates.
    • MAX_NODES_PER_LAYER

      static final NonNullObjectKey<Integer> MAX_NODES_PER_LAYER
      Number of nodes that can be rendered per layer in the drawing editor..
    • RENDER_PAGE

      static final Key<Page> RENDER_PAGE
    • RENDER_PAGE_NUMBER

      static final Key<Integer> RENDER_PAGE_NUMBER
    • RENDER_NUMBER_OF_PAGES

      static final Key<Integer> RENDER_NUMBER_OF_PAGES
    • RENDER_PAGE_INTERNAL_NUMBER

      static final Key<Integer> RENDER_PAGE_INTERNAL_NUMBER
    • RENDER_TIMESTAMP

      static final Key<Instant> RENDER_TIMESTAMP
    • UNIT_CONVERTER_KEY

      static final NonNullObjectKey<UnitConverter> UNIT_CONVERTER_KEY
    • SYSTEM_COLOR_CONVERTER_KEY

      static final NonNullObjectKey<SystemColorConverter> SYSTEM_COLOR_CONVERTER_KEY
  • Method Details

    • getNode

      @Nullable javafx.scene.Node getNode(Figure f)
      Gets the JavaFX node which is used to render the specified figure by this RenderContext.
      Parameters:
      f - The figure
      Returns:
      The JavaFX node associated to the figure