net.ontopia.topicmaps.viz
Class TypesConfigFrame.VizColorSelectionModel

java.lang.Object
  extended by javax.swing.colorchooser.DefaultColorSelectionModel
      extended by net.ontopia.topicmaps.viz.TypesConfigFrame.VizColorSelectionModel
All Implemented Interfaces:
Serializable, ColorSelectionModel
Enclosing class:
TypesConfigFrame

public class TypesConfigFrame.VizColorSelectionModel
extends DefaultColorSelectionModel

Makes sure fireStateChanged() is called whenever there's been a color selection. This ensures default color is correctly overridden when an old default color is selected.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.colorchooser.DefaultColorSelectionModel
changeEvent, listenerList
 
Constructor Summary
TypesConfigFrame.VizColorSelectionModel()
           
 
Method Summary
 void setSelectedColor(Color color)
           
 
Methods inherited from class javax.swing.colorchooser.DefaultColorSelectionModel
addChangeListener, fireStateChanged, getChangeListeners, getSelectedColor, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypesConfigFrame.VizColorSelectionModel

public TypesConfigFrame.VizColorSelectionModel()
Method Detail

setSelectedColor

public void setSelectedColor(Color color)
Specified by:
setSelectedColor in interface ColorSelectionModel
Overrides:
setSelectedColor in class DefaultColorSelectionModel


Copyright © 2000-2012 Ontopia.