コード例 #1
0
ファイル: SurfaceImpl.java プロジェクト: automenta/mojaic
 /**
  * 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);
 }
コード例 #2
0
ファイル: SurfaceImpl.java プロジェクト: automenta/mojaic
 /** {@inheritDoc} */
 @Override
 public void removeChangeListener(SurfaceListener<T> listener) {
   listeners.remove(listener);
 }
コード例 #3
0
ファイル: SurfaceImpl.java プロジェクト: automenta/mojaic
 /** {@inheritDoc} */
 @Override
 public Surface<T> addChangeListener(SurfaceListener<T> listener) {
   listeners.add(listener);
   return this;
 }