org.opensourcephysics.displayejs
Interface Drawable3D

All Superinterfaces:
Drawable
All Known Subinterfaces:
InteractiveElement
All Known Implementing Classes:
AbstractInteractiveElement, AbstractInteractiveTile, ElementSet, GroupDrawable, InteractiveArrow, InteractiveBox, InteractiveCone, InteractiveCursor, InteractiveCylinder, InteractiveCylinderSimple, InteractiveImage, InteractiveParticle, InteractivePlane, InteractivePoints, InteractivePoligon, InteractiveSphere, InteractiveSpring, InteractiveSurface, InteractiveText, InteractiveTrace, Pipe, PoligonsAndTexts, Pump, Symbol, Tank, TraceSet, Valve, VectorField3D

public interface Drawable3D
extends Drawable

This interface defines methods that DrawingPanel3D needs to properly display the drawable


Method Summary
 void draw(DrawingPanel3D panel, java.awt.Graphics2D g, int index)
          Draws a given Object3D (indicated by its index).
 void drawQuickly(DrawingPanel3D panel, java.awt.Graphics2D g)
          Sketches the drawable
 Object3D[] getObjects3D(DrawingPanel3D _panel)
          Returns an array of Objects3D to (sort according to its distance and) draw.
 void needsToProject(DrawingPanel _panel)
          Tells the drawable that it should reproject its points because this panel has changed its projection parameters.
 
Methods inherited from interface org.opensourcephysics.display.Drawable
draw
 

Method Detail

getObjects3D

Object3D[] getObjects3D(DrawingPanel3D _panel)
Returns an array of Objects3D to (sort according to its distance and) draw.


draw

void draw(DrawingPanel3D panel,
          java.awt.Graphics2D g,
          int index)
Draws a given Object3D (indicated by its index).


drawQuickly

void drawQuickly(DrawingPanel3D panel,
                 java.awt.Graphics2D g)
Sketches the drawable


needsToProject

void needsToProject(DrawingPanel _panel)
Tells the drawable that it should reproject its points because this panel has changed its projection parameters.

Parameters:
_panel - the DrawingPanel that has changed or null if the drawable should update its projection in all possible panels