Algorithm
Development Kit 1.0

algs.debug.drawers
Class DefaultNodeDrawer

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

public class DefaultNodeDrawer
extends java.lang.Object
implements INodeDrawer

Capable of drawing default nodes in the DOTTY debugging output.

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

Constructor Summary
DefaultNodeDrawer()
           
 
Method Summary
 java.lang.String draw(IGraphEntity n)
          Default node is drawn simply using its node label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNodeDrawer

public DefaultNodeDrawer()
Method Detail

draw

public java.lang.String draw(IGraphEntity n)
Default node is drawn simply using its node label. Is aware of ISelectFont interface. Takes action if the desired fontName is not null (but only then).

Specified by:
draw in interface INodeDrawer
Parameters:
n - Node to be drawn.

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.