202 |
public synchronized void |
public synchronized void |
203 |
setColorModel (ColorModel model) |
setColorModel (ColorModel model) |
204 |
{ |
{ |
205 |
if (this.model == null || this.model == model) |
if (this.model == null || this.model.equals(model)) |
206 |
this.model = model; |
this.model = model; |
207 |
else |
else |
208 |
isCacheable = false; |
isCacheable = false; |
235 |
if (!isCacheable) |
if (!isCacheable) |
236 |
return; |
return; |
237 |
|
|
238 |
if (cm != model || pixelCache == null) |
if (!cm.equals(model) || pixelCache == null) |
239 |
{ |
{ |
240 |
isCacheable = false; |
isCacheable = false; |
241 |
return; |
return; |