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 TypeMethodDescriptionvoidrender(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 toviewportMinX- minimum X coordinate of visible area in model spaceviewportMinY- minimum Y coordinate of visible area in model spacezoom- current zoom factorcanvasHeight- height of canvas in pixelsrulerOffset- horizontal ruler offset in pixels
-