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

Public Member Functions

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

Detailed Description

Observer interface for the Observer pattern. This allows objects to be notified of changes to shapes.

Definition at line 9 of file ShapeObserver.java.

Member Function Documentation

◆ onShapeAdded()

void com.example.graphics.observer.ShapeObserver.onShapeAdded ( Shape shape)

Called when a shape is added

Parameters
shapethe shape that was added

Implemented in com.example.graphics.observer.ConsoleLogger.

◆ onShapeModified()

void com.example.graphics.observer.ShapeObserver.onShapeModified ( Shape shape)

Called when a shape is modified

Parameters
shapethe shape that was modified

Implemented in com.example.graphics.observer.ConsoleLogger.

◆ onShapeRemoved()

void com.example.graphics.observer.ShapeObserver.onShapeRemoved ( Shape shape)

Called when a shape is removed

Parameters
shapethe shape that was removed

Implemented in com.example.graphics.observer.ConsoleLogger.


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