Class pmr.cml.MolecularObject
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pmr.cml.MolecularObject

java.lang.Object
   |
   +----pmr.simplegraph.DrawableObject
           |
           +----pmr.cml.MolecularObject

public class MolecularObject
extends DrawableObject
this is an object associated with a molecule, such a molecular orbital or a normal mode. Designed to be contained by a MOL and accessible by it. Also a MolecularObject probably gets drawn
Author:
Copyright, P.Murray-Rust, 1996

Constructor Index

 o MolecularObject(MOLNode, Point3Vector, String, String)
from a molecule and a vector of points (e.g.

Method Index

 o display(Graphics)
used by the ScrollableTopLevel to paint the object, or can be used to draw the object to somewhere else.

Constructors

 o MolecularObject
  public MolecularObject(MOLNode mol,
                         Point3Vector p3v,
                         String type,
                         String name) throws UnequalLengthArraysException
from a molecule and a vector of points (e.g. atomic dipoles). The molecule and the vector must have the same number of atom centres
Parameters:
key - : "POINT" for absolute coordinates (def); "VECTOR" for displacement
Throws: UnequalLengthArraysException
vector and molecule not conformable

Methods

 o display
  public void display(Graphics g)
used by the ScrollableTopLevel to paint the object, or can be used to draw the object to somewhere else.
Overrides:
display in class DrawableObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index