Class ::tycho::ColorBrowser


Inherits: ::tycho::ListBrowser - Related constructs - Source File - Contents: public method - protected methods - protected variables
A simple color browser. The list of colors recognized by Tycho by name are displayed in a list box. Clicking on any color (or using the standard mechanism in Tycho list browsers to scroll through pattern matches) causes the selected color to be displayed. For example, to scroll through all the greens, enter "green" in the entry box and repeatedly hit . Typing dismisses the window. Note that the display may not be perfect, since it relies on Tk's colormap handling. If you run out of colors in your colormap, Tk selects the nearest color in the colormap.

Public constructs

Public Method

help
Open a help window.

Protected constructs

Protected Methods

setContents
Construct the list box contents from the color manager.
setEntry string
This method clears the current contents of the entry box and replaces them with the string passed as an argument. In addition, it displays the color named in the entry box.

Protected Variables

CWD
The directory of the index file.
entries
The entries in the index.

Index of classes



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