Class ::tycho::ColorManager


Inherits: ::tycho::Uninstantiable - Related constructs - Source File - Contents: public procs
Manage color selection. This is a "non-instantiable" class.

FIXME: Add more information.


Public constructs

Public Procs

getColor name {alternate {}}
Look up a color name in the color list. If it exists, return the rgb value of the color. If it does not exist, look up the value of the second argument, which should normally be "black" or "white". All names are converted to lower case before looking them up. If the global variable tyMonochrome is set, then use the second argument (if it is present).
colorList {pattern *}
Get a list of available colors. If an argument is given, it is a glob-style pattern that selects a subset of the available colors; if no argument is given, all available colors are returned.

Index of classes



Author: Edward A. Lee
Version: @(#)ColorManager.itcl 1.15 12/10/96
Copyright: (c) 1995-1996 The Regents of the University of California.