Beispiel #1
0
 /**
  * Notifies this Surface that changes to its underlying layout have occurred.
  *
  * @param changeType the {@link ChangeType} describing the action for the client to take.
  * @param t the <T> or layed out object type
  * @param id the id of the object being layed out.
  * @param previous the previous rectangle describing the object's bounds.
  * @param current the current rectangle describing the object's new bounds.
  */
 @Override
 public void notifyChange(
     ChangeType changeType,
     T t,
     String id,
     Rectangle2D.Double previous,
     Rectangle2D.Double current) {
   listeners.changed(changeType, t, id, previous, current);
 }
Beispiel #2
0
 /** {@inheritDoc} */
 @Override
 public void removeChangeListener(SurfaceListener<T> listener) {
   listeners.remove(listener);
 }
Beispiel #3
0
 /** {@inheritDoc} */
 @Override
 public Surface<T> addChangeListener(SurfaceListener<T> listener) {
   listeners.add(listener);
   return this;
 }