Cytoscape 3.0.1 API

Class CyColorChooser

  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.

Method Summary
static Color showDialog(Component parent, String title, Color initialColor)
          Display custom color chooser dialog.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static Color showDialog(Component parent,
                               String title,
                               Color initialColor)
Display custom color chooser dialog.

parent - parent component of this dialog
title - Title of this dialog
initialColor - Initially selected color.
New Color or null if canceled.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.