public interface DrawingView extends DrawingChangeListener
Modifier and Type | Method and Description |
---|---|
void |
checkDamage()
Check if any damage has been made to this view and repaint if this is the
case.
|
void |
drawAll(java.awt.Graphics g)
Draws the contents of the drawing view.
|
void |
drawBackground(java.awt.Graphics g)
Draws a background behind the Drawing's contents.
|
void |
drawDrawing(java.awt.Graphics g)
Draws the contents of the associated Drawing.
|
void |
drawOverlay(java.awt.Graphics g)
Draws the overlay.
|
void |
drawSelectionHighlight(java.awt.Graphics g)
Draws highlight selection graphics .
|
java.awt.Graphics |
getGraphics()
Get the graphics context of this view
|
drawingInvalidated, drawingRequestUpdate
void checkDamage()
void drawAll(java.awt.Graphics g)
g
- the graphics component to draw onvoid drawDrawing(java.awt.Graphics g)
g
- the graphics component to draw onvoid drawBackground(java.awt.Graphics g)
g
- the graphics component to draw onvoid drawSelectionHighlight(java.awt.Graphics g)
g
- the graphics component to draw onvoid drawOverlay(java.awt.Graphics g)
g
- the graphics component to draw onjava.awt.Graphics getGraphics()
From the book: Flexible, Reliable Software, © CRC Press 2010. Author: Henrik B. Christensen, Aarhus University, Denmark