net.sourceforge.webcompmath.draw
Interface DrawTemp
- All Superinterfaces:
- java.io.Serializable
public interface DrawTemp
- extends java.io.Serializable
An object that implements this interface can draw itself, using information
from a CoordinateRect (in which it presumably appears). This interface is
meant to be used with the method drawTemp() in
edu.hws.jcm.draw.DisplayCanvas.
Method Summary |
void |
draw(java.awt.Graphics g,
CoordinateRect coords)
Draw this item in the specified graphics context, possibly using
information from the specified CoordinateRect. |
draw
void draw(java.awt.Graphics g,
CoordinateRect coords)
- Draw this item in the specified graphics context, possibly using
information from the specified CoordinateRect. Note that the drawTemp()
method in class DisplayCanvas creates a new graphics context every time
it is called, just for drawing this item.
- Parameters:
g
- graphics contextcoords
- the CoordinateRect to use