public interface CanvasRenderer extends CanvasEventManager
Modifier and Type | Method and Description |
---|---|
Dimension |
getBounds()
Get the (virtual) size of the area needed to paint all objects in this renderer.
|
Object |
getObjectUnderPoint(Point p)
Find the object under the provided point.
|
void |
overlay(Graphics2D g,
Rectangle area)
Draw temporary information on top of the canvas.
|
void |
render(Graphics2D g,
Rectangle area)
Draw on the canvas.
|
void |
select(Shape s)
Select all objects inside the provided shape (usually a simple selection rectangle).
|
cancel, click, dragged, helpOverlay, pressed, released
void render(Graphics2D g, Rectangle area)
g
- the clipped graphics objectarea
- the area to redrawvoid overlay(Graphics2D g, Rectangle area)
overlay
in interface CanvasEventManager
g
- the clipped graphics objectarea
- the area to redrawvoid select(Shape s)
s
- Object getObjectUnderPoint(Point p)
p
- Dimension getBounds()
Copyright © 2005–2020. All rights reserved.