|
From: <dav...@us...> - 2012-01-27 00:06:02
|
Revision: 1302
http://cishell.svn.sourceforge.net/cishell/?rev=1302&view=rev
Author: david-coe
Date: 2012-01-27 00:05:56 +0000 (Fri, 27 Jan 2012)
Log Message:
-----------
I added a way to access the default color for the colorschema from the colorregistry.
reviewed by joseph.
Modified Paths:
--------------
trunk/core/org.cishell.utilities/src/org/cishell/utilities/color/ColorRegistry.java
Modified: trunk/core/org.cishell.utilities/src/org/cishell/utilities/color/ColorRegistry.java
===================================================================
--- trunk/core/org.cishell.utilities/src/org/cishell/utilities/color/ColorRegistry.java 2012-01-20 19:12:00 UTC (rev 1301)
+++ trunk/core/org.cishell.utilities/src/org/cishell/utilities/color/ColorRegistry.java 2012-01-27 00:05:56 UTC (rev 1302)
@@ -41,7 +41,7 @@
* @param key - key must be type of <E>
* @return Return color that assigned to the specific
* key. If all the colors are fully used, the default
- * color denied by the ColorSchema will be returned
+ * color defined by the ColorSchema will be returned
*/
public Color getColorOf(K key) {
if (registedColors.containsKey(key)) {
@@ -52,6 +52,14 @@
}
/**
+ * Request the default color as defined by the ColorSchema.
+ * @return the default color.
+ */
+ public Color getDefaultColor() {
+ return colorSchema.getDefaultColor();
+ }
+
+ /**
* Clear all entry and reset to initial state.
*/
public void clear() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|