org.cytoscape.util.swing
Class CyColorChooser
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
showDialog
public static Color showDialog(Component parent,
String title,
Color initialColor)
- Display custom color chooser dialog.
- Parameters:
parent
- parent component of this dialogtitle
- Title of this dialoginitialColor
- Initially selected color.
- Returns:
- New Color or null if canceled.
Copyright 2011 Cytoscape Consortium. All rights reserved.