Graphic Rendering System 1.0
A Java-based graphic rendering system implementing various design patterns
|
Public Member Functions | |
void | onShapeAdded (Shape shape) |
void | onShapeModified (Shape shape) |
void | onShapeRemoved (Shape shape) |
Console logger implementation of the ShapeObserver interface. This logs shape changes to the console.
Definition at line 9 of file ConsoleLogger.java.
|
inline |
Called when a shape is added
shape | the shape that was added |
Implements com.example.graphics.observer.ShapeObserver.
Definition at line 11 of file ConsoleLogger.java.
References com.example.graphics.model.Shape.getX(), and com.example.graphics.model.Shape.getY().
|
inline |
Called when a shape is modified
shape | the shape that was modified |
Implements com.example.graphics.observer.ShapeObserver.
Definition at line 23 of file ConsoleLogger.java.
References com.example.graphics.model.Shape.getX(), and com.example.graphics.model.Shape.getY().
|
inline |
Called when a shape is removed
shape | the shape that was removed |
Implements com.example.graphics.observer.ShapeObserver.
Definition at line 17 of file ConsoleLogger.java.
References com.example.graphics.model.Shape.getX(), and com.example.graphics.model.Shape.getY().