@@ -81,7 +81,7 @@ public void setLocation(LatLon location)
8181 }
8282
8383 this .location = location ;
84- this .onPropertyChanged ();
84+ this .onShapeChanged ();
8585 }
8686
8787 /**
@@ -112,7 +112,7 @@ public Vec4 getLocationOffset()
112112 public void setLocationOffset (Vec4 locationOffset )
113113 {
114114 this .locationOffset = locationOffset ; // can be null
115- this .onPropertyChanged ();
115+ this .onShapeChanged ();
116116 }
117117
118118 /**
@@ -145,7 +145,7 @@ public void setImageSource(Object imageSource)
145145
146146 this .imageSource = imageSource ;
147147 this .texture = null ;
148- this .onPropertyChanged ();
148+ this .onShapeChanged ();
149149 }
150150
151151 /**
@@ -172,7 +172,7 @@ public void setUseMipMaps(boolean useMipMaps)
172172 {
173173 this .useMipMaps = useMipMaps ;
174174 this .texture = null ;
175- this .onPropertyChanged ();
175+ this .onShapeChanged ();
176176 }
177177
178178 /**
@@ -202,7 +202,7 @@ public void setScale(double scale)
202202 throw new IllegalArgumentException (message );
203203 }
204204 this .scale = scale ;
205- this .onPropertyChanged ();
205+ this .onShapeChanged ();
206206 }
207207
208208 /**
@@ -224,7 +224,7 @@ public Angle getHeading()
224224 public void setHeading (Angle heading )
225225 {
226226 this .heading = heading ; // can be null
227- this .onPropertyChanged ();
227+ this .onShapeChanged ();
228228 }
229229
230230 /**
@@ -281,7 +281,7 @@ public double getMinSize()
281281 public void setMinSize (double sizeInMeter )
282282 {
283283 this .minSize = sizeInMeter ;
284- this .onPropertyChanged ();
284+ this .onShapeChanged ();
285285 }
286286
287287 /**
@@ -312,7 +312,7 @@ public double getMaxSize()
312312 public void setMaxSize (double sizeInMeter )
313313 {
314314 this .maxSize = sizeInMeter ;
315- this .onPropertyChanged ();
315+ this .onShapeChanged ();
316316 }
317317
318318 /**
@@ -344,7 +344,7 @@ public void setColor(Color color)
344344 throw new IllegalArgumentException (message );
345345 }
346346 this .color = color ;
347- this .onPropertyChanged ();
347+ this .onShapeChanged ();
348348 }
349349
350350 protected boolean isMaintainAppearance ()
@@ -436,18 +436,6 @@ public void drawGeographic(DrawContext dc, SurfaceTileDrawContext sdc)
436436 }
437437 }
438438
439- protected void onPropertyChanged ()
440- {
441- this .updateModifiedTime ();
442- this .clearCaches ();
443- }
444-
445- @ Override
446- protected void clearCaches ()
447- {
448- super .clearCaches ();
449- }
450-
451439 protected List <Sector > computeSectors (DrawContext dc )
452440 {
453441 if (this .location == null )
0 commit comments