Graphic Rendering System 1.0
A Java-based graphic rendering system implementing various design patterns
Loading...
Searching...
No Matches
com.example.graphics.adapter.ThirdPartyRenderer Interface Reference
Inheritance diagram for com.example.graphics.adapter.ThirdPartyRenderer:
Inheritance graph
Collaboration diagram for com.example.graphics.adapter.ThirdPartyRenderer:
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 interface for a third-party rendering library. This represents an external API that we need to adapt.

Definition at line 7 of file ThirdPartyRenderer.java.

Member Function Documentation

◆ clearSurface()

void com.example.graphics.adapter.ThirdPartyRenderer.clearSurface ( )

Clear the rendering surface

Implemented in com.example.graphics.adapter.MockThirdPartyRenderer.

◆ drawCircle()

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

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

Implemented in com.example.graphics.adapter.MockThirdPartyRenderer.

◆ drawLine()

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

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

Implemented in com.example.graphics.adapter.MockThirdPartyRenderer.

◆ drawPolygon()

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

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

Implemented in com.example.graphics.adapter.MockThirdPartyRenderer.

◆ drawRect()

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

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

Implemented in com.example.graphics.adapter.MockThirdPartyRenderer.

◆ refreshDisplay()

void com.example.graphics.adapter.ThirdPartyRenderer.refreshDisplay ( )

Update the display

Implemented in com.example.graphics.adapter.MockThirdPartyRenderer.


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