接口的使用
com.example.graphics.observer.ShapeObserver
使用ShapeObserver的程序包
-
com.example.graphics中ShapeObserver的使用
参数类型为ShapeObserver的com.example.graphics中的方法修饰符和类型方法说明void
Drawing.addObserver
(ShapeObserver observer) Add an observer to be notified of shape changesvoid
Drawing.removeObserver
(ShapeObserver observer) Remove an observer from the notification list -
com.example.graphics.observer中ShapeObserver的使用
类型参数类型为ShapeObserver的com.example.graphics.observer中的字段修饰符和类型方法说明void
ShapeSubject.addObserver
(ShapeObserver observer) Add an observer to be notified of changesvoid
ShapeSubject.removeObserver
(ShapeObserver observer) Remove an observer from the notification list