Graphic Rendering System 1.0
A Java-based graphic rendering system implementing various design patterns
|
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 () |
Mock implementation of the ThirdPartyRenderer interface. This simulates a third-party rendering library.
Definition at line 7 of file MockThirdPartyRenderer.java.
|
inline |
Clear the rendering surface
Implements com.example.graphics.adapter.ThirdPartyRenderer.
Definition at line 39 of file MockThirdPartyRenderer.java.
|
inline |
Draw a circle in the third-party renderer
centerX | the x coordinate of the center |
centerY | the y coordinate of the center |
radius | the radius of the circle |
Implements com.example.graphics.adapter.ThirdPartyRenderer.
Definition at line 9 of file MockThirdPartyRenderer.java.
|
inline |
Draw a line in the third-party renderer
startX | the x coordinate of the start point |
startY | the y coordinate of the start point |
endX | the x coordinate of the end point |
endY | the y coordinate of the end point |
Implements com.example.graphics.adapter.ThirdPartyRenderer.
Definition at line 21 of file MockThirdPartyRenderer.java.
|
inline |
Draw a polygon in the third-party renderer
xPoints | the x coordinates of the vertices |
yPoints | the y coordinates of the vertices |
nPoints | the number of vertices |
Implements com.example.graphics.adapter.ThirdPartyRenderer.
Definition at line 27 of file MockThirdPartyRenderer.java.
|
inline |
Draw a rectangle in the third-party renderer
x | the x coordinate of the top-left corner |
y | the y coordinate of the top-left corner |
width | the width of the rectangle |
height | the height of the rectangle |
Implements com.example.graphics.adapter.ThirdPartyRenderer.
Definition at line 15 of file MockThirdPartyRenderer.java.
|
inline |
Update the display
Implements com.example.graphics.adapter.ThirdPartyRenderer.
Definition at line 44 of file MockThirdPartyRenderer.java.