gui.playfield
Class PathGraphic

java.lang.Object
  extended by gui.playfield.PlayFieldGraphic
      extended by gui.playfield.PathGraphic

public class PathGraphic
extends PlayFieldGraphic

Visualization of a Path


Field Summary
 
Fields inherited from class gui.playfield.PlayFieldGraphic
scale
 
Constructor Summary
PathGraphic(Path path)
           
 
Method Summary
 void draw(java.awt.Graphics2D g2)
          Draws a line trough all path's coordinates.
 
Methods inherited from class gui.playfield.PlayFieldGraphic
getScale, invScale, scale, scale, setScale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathGraphic

public PathGraphic(Path path)
Method Detail

draw

public void draw(java.awt.Graphics2D g2)
Draws a line trough all path's coordinates.

Specified by:
draw in class PlayFieldGraphic
Parameters:
g2 - The graphics context to draw to