Algorithm
Development Kit 1.0

algs.debug.drawers
Class GoalNodeDrawer

java.lang.Object
  extended by algs.debug.drawers.GoalNodeDrawer
All Implemented Interfaces:
INodeDrawer

public class GoalNodeDrawer
extends java.lang.Object
implements INodeDrawer

Capable of drawing the goal node in the DOTTY debugging output.

Drawn with 50% fill color and the word GOAL is appended to the output to clearly mark it as being special.

Since:
1.0
Version:
1.0, 6/15/08
Author:
George Heineman

Constructor Summary
GoalNodeDrawer()
           
 
Method Summary
 java.lang.String draw(IGraphEntity n)
          Goal node is drawn as a pentagon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoalNodeDrawer

public GoalNodeDrawer()
Method Detail

draw

public java.lang.String draw(IGraphEntity n)
Goal node is drawn as a pentagon.

Specified by:
draw in interface INodeDrawer
Parameters:
n - goal node.

Algorithm Development Kit 1.0

This code supports the Algorithms in a Nutshell book, published by O'Reilly Media, Inc. in November 2008. Please visit the book web page to learn of any changes to the code repository or to record a potential defect.