类 MockThirdPartyRenderer

java.lang.Object
com.example.graphics.adapter.MockThirdPartyRenderer
所有已实现的接口:
ThirdPartyRenderer

public class MockThirdPartyRenderer extends Object implements ThirdPartyRenderer
Mock implementation of the ThirdPartyRenderer interface. This simulates a third-party rendering library.
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Clear the rendering surface
    void
    drawCircle(double centerX, double centerY, double radius)
    Draw a circle in the third-party renderer
    void
    drawLine(double startX, double startY, double endX, double endY)
    Draw a line in the third-party renderer
    void
    drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
    Draw a polygon in the third-party renderer
    void
    drawRect(double x, double y, double width, double height)
    Draw a rectangle in the third-party renderer
    void
    Update the display

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • MockThirdPartyRenderer

      public MockThirdPartyRenderer()
  • 方法详细资料

    • drawCircle

      public void drawCircle(double centerX, double centerY, double radius)
      从接口复制的说明: ThirdPartyRenderer
      Draw a circle in the third-party renderer
      指定者:
      drawCircle 在接口中 ThirdPartyRenderer
      参数:
      centerX - the x coordinate of the center
      centerY - the y coordinate of the center
      radius - the radius of the circle
    • drawRect

      public void drawRect(double x, double y, double width, double height)
      从接口复制的说明: ThirdPartyRenderer
      Draw a rectangle in the third-party renderer
      指定者:
      drawRect 在接口中 ThirdPartyRenderer
      参数:
      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
    • drawLine

      public void drawLine(double startX, double startY, double endX, double endY)
      从接口复制的说明: ThirdPartyRenderer
      Draw a line in the third-party renderer
      指定者:
      drawLine 在接口中 ThirdPartyRenderer
      参数:
      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
    • drawPolygon

      public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
      从接口复制的说明: ThirdPartyRenderer
      Draw a polygon in the third-party renderer
      指定者:
      drawPolygon 在接口中 ThirdPartyRenderer
      参数:
      xPoints - the x coordinates of the vertices
      yPoints - the y coordinates of the vertices
      nPoints - the number of vertices
    • clearSurface

      public void clearSurface()
      从接口复制的说明: ThirdPartyRenderer
      Clear the rendering surface
      指定者:
      clearSurface 在接口中 ThirdPartyRenderer
    • refreshDisplay

      public void refreshDisplay()
      从接口复制的说明: ThirdPartyRenderer
      Update the display
      指定者:
      refreshDisplay 在接口中 ThirdPartyRenderer