Class AbstractRenderable

All Implemented Interfaces:
Behavior, Renderable, Closeable, AutoCloseable
Direct Known Subclasses:
EmptyRenderable, RectangleMesh, TextMesh

public abstract class AbstractRenderable extends ComponentBehavior
Abstract class representing a renderable component in the application. This class provides methods for rendering the component using a provided renderer.
  • Constructor Details

    • AbstractRenderable

      public AbstractRenderable(Form form)
      Constructs a new AbstractRenderable with the given form.
      Parameters:
      form - The form of the renderable component.
  • Method Details

    • render

      public void render(Renderer renderer)
      Description copied from class: ComponentBehavior
      Renders the behavior.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class ComponentBehavior
      Parameters:
      renderer - The renderer.
    • form

      public Form form()
      Returns the form of the renderable component.
      Returns:
      The form of the renderable component.
    • paint

      public Paint paint()
      Returns the paint object used for rendering the component.
      Returns:
      The paint object used for rendering the component.