Interface Lattice2D.Basis
- All Known Implementing Classes:
- Lattice2D.PolygonBasis, Lattice2D.CircularBasis
- Enclosing class:
- Lattice2D
- public static interface Lattice2D.Basis
Class representing a basis. In the context of this model,
a basis is just an image to replicate across the lattice; this is
reflected in the fact that this interface has only one method,
paint().
|
Method Summary |
void |
paint(java.awt.Graphics g,
int cx,
int cy)
Requests that the basis paint itself |
paint
public void paint(java.awt.Graphics g,
int cx,
int cy)
- Requests that the basis paint itself
- Parameters:
g - The Graphics surface on which to paintcx - The x coordinate (in pixels) at which the
basis should be paintedcy - The y coordinate (in pixels) at which the
basis should be painted