optics.graphics
Interface Diagram2DComponent

All Known Implementing Classes:
Aperture, AsphericSurface, CircularAperture, Diagram2D, DistortionGrid, EvenAsphericSurface, Label2D, OpticalImage, OpticalPlane, ParabolicMirror, ParabolicSurface, ParaxialGroup, ParaxialPlanes, ParaxialSystem, QuadricMirror, QuadricSurface, RayPath, Singlet2D, SphericalMirror, SphericalSurface, SpotDiagram2D, TiltedPlane, WaveFrontImage

public interface Diagram2DComponent

Interface for drawable Graphics2D objects which can be added to a Diagram2D.


Method Summary
 void draw(java.awt.Graphics2D g)
          Method to draw the component in specified Graphics2D context.
 java.awt.geom.Rectangle2D getBounds()
          Method to get the bounds of the object.
 

Method Detail

getBounds

java.awt.geom.Rectangle2D getBounds()
Method to get the bounds of the object.

Returns:
Rectangle2D the bounding Rectangle

draw

void draw(java.awt.Graphics2D g)
Method to draw the component in specified Graphics2D context.

Parameters:
g - the Graphics2D context