protected void setColorModel(ColorModelSet colorModel) { getPropertyChangeSupport() .firePropertyChange("colorModel", this.colorModel, this.colorModel = colorModel); if (colorModel != null) { colorModel.setPlotColor(plotColor); // this shouls be handled by the model itself, without any colorModel.setPlotType(plotType); } }
public void setPlotType(PlotType plotType) { PlotType o = this.plotType; this.plotType = plotType; if (colorModel != null) { colorModel.setPlotType(plotType); } property.firePropertyChange("plotType", o, this.plotType); fireAllType(o, this.plotType); }
public void setPlotColor(PlotColor plotColor) { PlotColor old = this.plotColor; getPropertyChangeSupport() .firePropertyChange("plotColor", this.plotColor, this.plotColor = plotColor); fireAllMode(old, this.plotColor); if (colorModel != null) { colorModel.setPlotColor(plotColor); } }