Interface ContourPlot.Renderable

All Known Implementing Classes:
ContourPlot.Legend, ContourPlot.Lines, ContourPlot.Points, ContourPlot.Text, ContourPlot.Triangles
Enclosing class:
ContourPlot

public static interface ContourPlot.Renderable
Interface for an object that can be rendered by a ContourPlot.Renderer e.g. the ContourPlot.GenericRenderer. It is intended for objects that contain openGL resources such as a
invalid reference
VertexArray
for example. For this reason the interface extends the AutoCloseable interface for disposing of GL resources on
invalid reference
#close()
. Its state can be dirty (isDirty()) which means that the GL resources are not in sync with the object and implies that a call to the
invalid reference
#updateGL(boolean)
method is necessary before rendering. The
invalid reference
#initGL()
method has to be called once before the first rendering to allocate required GL resources.
Author:
hageldave
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    tests if this ContourPlot.Renderable intersects or contains the specified rectangle.
    boolean
    if true, indicates that a call to
    invalid reference
    #updateGL(boolean)
    is necessary to sync this objects GL resources to its current state.
    default boolean
    Indicates whether this Renderable is hidden i.e. will not be drawn.
  • Method Details

    • intersects

      boolean intersects(Rectangle2D rect)
      tests if this ContourPlot.Renderable intersects or contains the specified rectangle.
      Parameters:
      rect - rectangle to test
      Returns:
      true when intersecting
    • isHidden

      default boolean isHidden()
      Indicates whether this Renderable is hidden i.e. will not be drawn.
      Returns:
      true when hidden
    • isDirty

      boolean isDirty()
      if true, indicates that a call to
      invalid reference
      #updateGL(boolean)
      is necessary to sync this objects GL resources to its current state.
      Returns:
      true if dirty