org.opensourcephysics.sip.ch17
Class Methane

java.lang.Object
  extended by org.opensourcephysics.sip.ch17.Methane
All Implemented Interfaces:
Drawable

public class Methane
extends java.lang.Object
implements Drawable

Methane implements a visualization of the methane molecule (CH_4).


Constructor Summary
Methane()
          Creates a Methane model in the standard position.
 
Method Summary
 void draw(DrawingPanel panel, java.awt.Graphics g)
          Draws the methane molecule using orthographic projection onto xy plane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Methane

public Methane()
Creates a Methane model in the standard position.

Method Detail

draw

public void draw(DrawingPanel panel,
                 java.awt.Graphics g)
Draws the methane molecule using orthographic projection onto xy plane.

Specified by:
draw in interface Drawable
Parameters:
panel - DrawingPanel
g - Graphics