Algorithm
Development Kit 1.0

algs.debug
Interface ISelectFont

All Known Implementing Classes:
AlphaBetaDebugNode, MinMaxNode, NegMaxNode, ScoreNode

public interface ISelectFont

Should a graphical entity choose to select a different font for its node drawing (for example, to show symbols) then it must implement this interface.

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

Method Summary
 java.lang.String fontName()
          Determine font to use.
 int fontSize()
          Determine font size to use.
 

Method Detail

fontName

java.lang.String fontName()
Determine font to use. If the default font is to be used, then return null;


fontSize

int fontSize()
Determine font size to use. This method is only invoked should fontName() return non-null, in which case this should return the desired font size. If 0 is returned, then the default font size is used.


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.