Class Lattice2D.CircularBasis

java.lang.Object
  |
  +--Lattice2D.CircularBasis
Enclosing class:
Lattice2D

public class Lattice2D.CircularBasis
extends java.lang.Object
implements Lattice2D.Basis

An implementation of Basis which displays as a circle.


Field Summary
protected  int r
          The radius
 
Constructor Summary
Lattice2D.CircularBasis(int r)
          Creates a new basis with the specified radius
 
Method Summary
 void paint(java.awt.Graphics g, int cx, int cy)
          Requests that the basis paint itself
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

r

protected int r
The radius
Constructor Detail

Lattice2D.CircularBasis

public Lattice2D.CircularBasis(int r)
Creates a new basis with the specified radius
Method Detail

paint

public void paint(java.awt.Graphics g,
                  int cx,
                  int cy)
Description copied from interface: Lattice2D.Basis
Requests that the basis paint itself
Specified by:
paint in interface Lattice2D.Basis
Tags copied from interface: Lattice2D.Basis
Parameters:
g - The Graphics surface on which to paint
cx - The x coordinate (in pixels) at which the basis should be painted
cy - The y coordinate (in pixels) at which the basis should be painted