Algorithm
Development Kit 1.0

algs.debug
Class Legend

java.lang.Object
  extended by algs.debug.Legend
All Implemented Interfaces:
IGraphEntity

public class Legend
extends java.lang.Object
implements IGraphEntity

Key information about a drawn graph can be represented as a graph legend.

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface algs.debug.IGraphEntity
IGraphEntity.Formatter
 
Constructor Summary
Legend(java.lang.String s)
          Construct the legend contents from a String.
 
Method Summary
 java.lang.String nodeLabel()
          Return label from the legend.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Legend

public Legend(java.lang.String s)
Construct the legend contents from a String.

Method Detail

nodeLabel

public java.lang.String nodeLabel()
Return label from the legend.

Specified by:
nodeLabel in interface IGraphEntity

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.