类 ConsoleLogger
java.lang.Object
com.example.graphics.observer.ConsoleLogger
- 所有已实现的接口:
ShapeObserver
Console logger implementation of the ShapeObserver interface.
This logs shape changes to the console.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
onShapeAdded
(Shape shape) Called when a shape is addedvoid
onShapeModified
(Shape shape) Called when a shape is modifiedvoid
onShapeRemoved
(Shape shape) Called when a shape is removed
-
构造器详细资料
-
ConsoleLogger
public ConsoleLogger()
-
-
方法详细资料
-
onShapeAdded
从接口复制的说明:ShapeObserver
Called when a shape is added- 指定者:
onShapeAdded
在接口中ShapeObserver
- 参数:
shape
- the shape that was added
-
onShapeRemoved
从接口复制的说明:ShapeObserver
Called when a shape is removed- 指定者:
onShapeRemoved
在接口中ShapeObserver
- 参数:
shape
- the shape that was removed
-
onShapeModified
从接口复制的说明:ShapeObserver
Called when a shape is modified- 指定者:
onShapeModified
在接口中ShapeObserver
- 参数:
shape
- the shape that was modified
-