Interface ShapeRenderer


public interface ShapeRenderer
Defines the contract for rendering shapes onto a graphics context. Implementations of this interface are responsible for converting model coordinates to screen coordinates and performing the actual drawing operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(javafx.scene.canvas.GraphicsContext gc, double viewportMinX, double viewportMinY, double zoom, double canvasHeight, double rulerOffset)
    Renders a shape to the specified graphics context
  • Method Details

    • render

      void render(javafx.scene.canvas.GraphicsContext gc, double viewportMinX, double viewportMinY, double zoom, double canvasHeight, double rulerOffset)
      Renders a shape to the specified graphics context
      Parameters:
      gc - the graphics context to render to
      viewportMinX - minimum X coordinate of visible area in model space
      viewportMinY - minimum Y coordinate of visible area in model space
      zoom - current zoom factor
      canvasHeight - height of canvas in pixels
      rulerOffset - horizontal ruler offset in pixels