Cytoscape 3.0.0-alpha8-SNAPSHOT API

org.cytoscape.util.swing
Class CyColorChooser

java.lang.Object
  extended by org.cytoscape.util.swing.CyColorChooser

public final class CyColorChooser
extends Object

This is an annoying re-implementation of JColorChooser.showDialog() that remembers recently used colors between invocations of the chooser dialog.


Cytoscape Backwards Compatibility (Static Class): This class is static and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.

Field Summary
protected static JColorChooser chooser
           
protected static Color color
           
protected static org.cytoscape.util.swing.CyColorChooser.ColorListener listener
           
 
Method Summary
static Color showDialog(Component component, String title, Color initialColor)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chooser

protected static JColorChooser chooser

listener

protected static org.cytoscape.util.swing.CyColorChooser.ColorListener listener

color

protected static Color color
Method Detail

showDialog

public static Color showDialog(Component component,
                               String title,
                               Color initialColor)
DOCUMENT ME!

Parameters:
component - DOCUMENT ME!
title - DOCUMENT ME!
initialColor - DOCUMENT ME!
Returns:
DOCUMENT ME!

Cytoscape 3.0.0-alpha8-SNAPSHOT API

Copyright 2011 Cytoscape Consortium. All rights reserved.