|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.caff.maze.DxfMazePainter
public class DxfMazePainter
Painter which outputs the maze into a DXF file.
![]() |
![]() |
![]() |
![]() |
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface de.caff.maze.MazePainter |
---|
MazePainter.PaintObjectType |
Field Summary | |
---|---|
static SystemAccess.FileType |
FILE_TYPE
File type for DXF files. |
Fields inherited from interface de.caff.maze.Constants |
---|
VERSION, WEB_PAGE |
Constructor Summary | |
---|---|
DxfMazePainter(java.io.OutputStream out)
Constructor. |
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. |
java.lang.Throwable |
getError()
Get any error which happened during usage of the painter. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SystemAccess.FileType FILE_TYPE
Constructor Detail |
---|
public DxfMazePainter(java.io.OutputStream out)
out
- output streamMethod Detail |
---|
public java.lang.Throwable getError()
null
if the painter worked nicelypublic void startPaintingMaze(Maze maze)
startPaintingMaze
in interface MazePainter
maze
- painted mazepublic void endPaintingMaze()
endPaintingMaze
in interface MazePainter
public void startPainting(MazePainter.PaintObjectType type)
startPainting
in interface MazePainter
type
- object type which painting startspublic void endPainting(MazePainter.PaintObjectType type)
endPainting
in interface MazePainter
type
- object type which painting has endedpublic void setStroke(java.awt.Stroke stroke)
setStroke
in interface MazePainter
stroke
- new stroke to use in upcoming drawing commandspublic void setPaint(java.awt.Paint paint)
setPaint
in interface MazePainter
paint
- paint to use in upcoming drawing commands.public void drawLine(float startX, float startY, float endX, float endY)
drawLine
in interface MazePainter
startX
- starting point X coordinatestartY
- starting point Y coordinateendX
- ending point X coordinateendY
- ending point Y coordinatepublic void drawArc(float x, float y, float w, float h, float start, float extent)
drawArc
in interface MazePainter
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 degreespublic void draw(java.awt.Shape shape)
draw
in interface MazePainter
shape
- shape to drawpublic void fill(java.awt.Shape shape)
fill
in interface MazePainter
shape
- shape to fill
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |