org.opensourcephysics.display
Interface Renderable

All Known Implementing Classes:
DrawingPanel, DrawingPanel3D

public interface Renderable

Renderable objects draw themselves onscreen onto an image in the calling thread.


Method Summary
 java.awt.image.BufferedImage render()
          Renders a representation of the object onscreen.
 java.awt.Image render(java.awt.Image image)
          Renders a representation of the object onto an image.
 

Method Detail

render

public java.awt.image.BufferedImage render()
Renders a representation of the object onscreen.


render

public java.awt.Image render(java.awt.Image image)
Renders a representation of the object onto an image.

Parameters:
image -
Returns:
the image buffer