Author: kono
Date: 2012-01-17 17:24:00 -0800 (Tue, 17 Jan 2012)
New Revision: 28038

Modified:
   
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/editor/mappingeditor/BelowAndAbovePanel.java
Log:
Minor bug fixed.

Modified: 
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/editor/mappingeditor/BelowAndAbovePanel.java
===================================================================
--- 
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/editor/mappingeditor/BelowAndAbovePanel.java
  2012-01-18 01:17:52 UTC (rev 28037)
+++ 
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/editor/mappingeditor/BelowAndAbovePanel.java
  2012-01-18 01:24:00 UTC (rev 28038)
@@ -30,14 +30,13 @@
        private Color boxColor;
        
        private final ContinuousMapping<?, ?> mapping;
-       private final GradientEditorPanel parentPanel;
+       private final ContinuousMappingEditorPanel parentPanel;
 
-       
        BelowAndAbovePanel(final ContinuousMappingEditorPanel parentPanel, 
final Color color, final boolean below, final ContinuousMapping<?, ?> mapping) {
                this.boxColor = color;
                this.isBelow = below;
                this.mapping = mapping;
-               this.parentPanel = (GradientEditorPanel) parentPanel;
+               this.parentPanel = parentPanel;
                this.vp = mapping.getVisualProperty();
 
                if (below)
@@ -98,7 +97,7 @@
                                if 
(Paint.class.isAssignableFrom(vp.getRange().getType()) == false)
                                        return;
 
-                               newValue = 
parentPanel.colorEditor.showEditor(null, boxColor);
+                               newValue = 
((GradientEditorPanel)parentPanel).colorEditor.showEditor(null, boxColor);
                                if (newValue == null)
                                        return;
                                
@@ -125,8 +124,8 @@
                                else
                                        parentPanel.above = (Color) newValue;
 
-                               parentPanel.initSlider();
-                               parentPanel.updateView();
+                               ((GradientEditorPanel)parentPanel).initSlider();
+                               ((GradientEditorPanel)parentPanel).updateView();
                                
                        }
                }

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to