cz.cuni.jagrlib.iface
Interface AWTGraphics

All Known Implementing Classes:
DrawAxes

public interface AWTGraphics

AWT graphics producer. Repaints the canvas using Graphics or Graphics2D API.

Since:
0.24
See Also:
AWTGraphics.java

Method Summary
 void paint(java.awt.Graphics g)
          Repaints the given canvas from scratch.
 void update(java.awt.Graphics g)
          Updates drawing in the given region.
 

Method Detail

paint

void paint(java.awt.Graphics g)
Repaints the given canvas from scratch.

Parameters:
g - Graphics ready to receive painting. Its clip-region should be set to reduce painting volume.

update

void update(java.awt.Graphics g)
Updates drawing in the given region. Previous drawing in the region can be considered non-damaged.

Parameters:
g - Graphics ready to receive painting. The clip-region should be set as narrow as possible (area which has to be updated).