Exemple #1
0
 /**
  * Give notification from the model that a change occured for an element this view is responsible
  * for rendering.
  *
  * <p>
  */
 public void changedUpdate(DrawingEvent.EventType eventType) {
   // if geometry changed from ellipse to circle or vice-versa, we need to *force*
   // update of interior paint attribute ; otherwise, if attribute changed,
   // no need to worry, for this is done automatically by superclass :
   if (eventType != DrawingEvent.EventType.ATTRIBUTE_CHANGE) syncAttributes();
   super.changedUpdate(eventType); // super calls syncAttribute if ATTRIBUTE_CHANGE, it's ok.
 }