|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MazePainter
Interface for generalized painting, allowing easier conversion to vector formats.
![]() |
![]() |
Nested Class Summary | |
---|---|
static class |
MazePainter.PaintObjectType
The current state of painting. |
Method Summary | |
---|---|
void |
draw(java.awt.Shape shape)
Draw a shape with current paint and stroke. |
void |
drawArc(float x,
float y,
float w,
float h,
float start,
float extent)
Draw an open arc with current paint and stroke. |
void |
drawLine(float startX,
float startY,
float endX,
float endY)
Draw a line with current paint and stroke.. |
void |
endPainting(MazePainter.PaintObjectType type)
End painting the given type of paint objects. |
void |
endPaintingMaze()
End painting the maze. |
void |
fill(java.awt.Shape shape)
Fill a shape with the current paint. |
void |
setPaint(java.awt.Paint paint)
Set a paint. |
void |
setStroke(java.awt.Stroke stroke)
Set a stroke. |
void |
startPainting(MazePainter.PaintObjectType type)
Start painting the given type of paint objects. |
void |
startPaintingMaze(Maze maze)
Start painting the maze. |
Method Detail |
---|
void startPaintingMaze(Maze maze)
maze
- painted mazevoid endPaintingMaze()
void startPainting(MazePainter.PaintObjectType type)
type
- object type which painting startsvoid endPainting(MazePainter.PaintObjectType type)
type
- object type which painting has endedvoid setStroke(java.awt.Stroke stroke)
stroke
- new stroke to use in upcoming drawing commandsvoid setPaint(java.awt.Paint paint)
paint
- paint to use in upcoming drawing commands.void drawLine(float startX, float startY, float endX, float endY)
startX
- starting point X coordinatestartY
- starting point Y coordinateendX
- ending point X coordinateendY
- ending point Y coordinatevoid drawArc(float x, float y, float w, float h, float start, float extent)
x
- x of rectangle enclosing ellipsey
- y of rectangle enclosing ellipsew
- width of rectangle enclosing ellipseh
- height of rectangle enclosing ellipsestart
- start of angle in degrees, from x axis,extent
- extent of angle in degreesvoid draw(java.awt.Shape shape)
shape
- shape to drawvoid fill(java.awt.Shape shape)
shape
- shape to fill
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |