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

Public Member Functions

void clearSurface ()
void drawCircle (double centerX, double centerY, double radius)
void drawLine (double startX, double startY, double endX, double endY)
void drawPolygon (int[] xPoints, int[] yPoints, int nPoints)
void drawRect (double x, double y, double width, double height)
void refreshDisplay ()

Detailed Description

Mock implementation of the ThirdPartyRenderer interface. This simulates a third-party rendering library.

Definition at line 7 of file MockThirdPartyRenderer.java.

Member Function Documentation

◆ clearSurface()

void com.example.graphics.adapter.MockThirdPartyRenderer.clearSurface ( )
inline

Clear the rendering surface

Implements com.example.graphics.adapter.ThirdPartyRenderer.

Definition at line 39 of file MockThirdPartyRenderer.java.

◆ drawCircle()

void com.example.graphics.adapter.MockThirdPartyRenderer.drawCircle ( double centerX,
double centerY,
double radius )
inline

Draw a circle in the third-party renderer

Parameters
centerXthe x coordinate of the center
centerYthe y coordinate of the center
radiusthe radius of the circle

Implements com.example.graphics.adapter.ThirdPartyRenderer.

Definition at line 9 of file MockThirdPartyRenderer.java.

◆ drawLine()

void com.example.graphics.adapter.MockThirdPartyRenderer.drawLine ( double startX,
double startY,
double endX,
double endY )
inline

Draw a line in the third-party renderer

Parameters
startXthe x coordinate of the start point
startYthe y coordinate of the start point
endXthe x coordinate of the end point
endYthe y coordinate of the end point

Implements com.example.graphics.adapter.ThirdPartyRenderer.

Definition at line 21 of file MockThirdPartyRenderer.java.

◆ drawPolygon()

void com.example.graphics.adapter.MockThirdPartyRenderer.drawPolygon ( int[] xPoints,
int[] yPoints,
int nPoints )
inline

Draw a polygon in the third-party renderer

Parameters
xPointsthe x coordinates of the vertices
yPointsthe y coordinates of the vertices
nPointsthe number of vertices

Implements com.example.graphics.adapter.ThirdPartyRenderer.

Definition at line 27 of file MockThirdPartyRenderer.java.

◆ drawRect()

void com.example.graphics.adapter.MockThirdPartyRenderer.drawRect ( double x,
double y,
double width,
double height )
inline

Draw a rectangle in the third-party renderer

Parameters
xthe x coordinate of the top-left corner
ythe y coordinate of the top-left corner
widththe width of the rectangle
heightthe height of the rectangle

Implements com.example.graphics.adapter.ThirdPartyRenderer.

Definition at line 15 of file MockThirdPartyRenderer.java.

◆ refreshDisplay()

void com.example.graphics.adapter.MockThirdPartyRenderer.refreshDisplay ( )
inline

Update the display

Implements com.example.graphics.adapter.ThirdPartyRenderer.

Definition at line 44 of file MockThirdPartyRenderer.java.


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