Graphic Rendering System 1.0
A Java-based graphic rendering system implementing various design patterns
Loading...
Searching...
No Matches
com.example.graphics.observer.ConsoleLogger Class Reference
Inheritance diagram for com.example.graphics.observer.ConsoleLogger:
Inheritance graph
Collaboration diagram for com.example.graphics.observer.ConsoleLogger:
Collaboration graph

Public Member Functions

void onShapeAdded (Shape shape)
void onShapeModified (Shape shape)
void onShapeRemoved (Shape shape)

Detailed Description

Console logger implementation of the ShapeObserver interface. This logs shape changes to the console.

Definition at line 9 of file ConsoleLogger.java.

Member Function Documentation

◆ onShapeAdded()

void com.example.graphics.observer.ConsoleLogger.onShapeAdded ( Shape shape)
inline

Called when a shape is added

Parameters
shapethe 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().

Here is the call graph for this function:

◆ onShapeModified()

void com.example.graphics.observer.ConsoleLogger.onShapeModified ( Shape shape)
inline

Called when a shape is modified

Parameters
shapethe 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().

Here is the call graph for this function:

◆ onShapeRemoved()

void com.example.graphics.observer.ConsoleLogger.onShapeRemoved ( Shape shape)
inline

Called when a shape is removed

Parameters
shapethe 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().

Here is the call graph for this function:

The documentation for this class was generated from the following file: