|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDebugCanvas
Interface for debug canvas.
Nested Class Summary | |
---|---|
static class |
IDebugCanvas.Color
color definitions. |
Method Summary | |
---|---|
void |
clear()
Clears the canvas and the figure buffer. |
void |
drawBuffer()
Draws the buffered figures and clears the buffer. |
void |
drawCircle(float x,
float y,
float d,
IDebugCanvas.Color color)
Draws a non-filled circle on the canvas. |
void |
drawEllipse(float x,
float y,
float w,
float h,
IDebugCanvas.Color color)
Draws a non-filled ellipse on the canvas. |
void |
drawFilledCircle(float x,
float y,
float d,
IDebugCanvas.Color color)
Draws a filled circle on the canvas. |
void |
drawFilledEllipse(float x,
float y,
float w,
float h,
IDebugCanvas.Color color)
Draws a filled ellipse on the canvas. |
void |
drawFilledRectangle(float x,
float y,
float w,
float h,
IDebugCanvas.Color color)
Draws a filled rectangle on the canvas. |
void |
drawLine(float x1,
float y1,
float x2,
float y2,
IDebugCanvas.Color color)
Draws a line on the canvas. |
void |
drawRectangle(float x,
float y,
float w,
float h,
IDebugCanvas.Color color)
Draws a non-filled rectangle one the canvas. |
void |
drawString(String string,
float x,
float y,
IDebugCanvas.Color color)
Draws a string on the canvas. |
void |
setBuffered(boolean buffered)
Sets the canvas to buffered mode or non-buffered mode. |
void |
setOffset(KNode parentNode,
float addx,
float addy)
Sets an offset for this canvas. |
Method Detail |
---|
void setOffset(KNode parentNode, float addx, float addy)
parentNode
- the parent node that defines the current offsetaddx
- additional horizontal offsetaddy
- additional vertical offsetvoid drawFilledRectangle(float x, float y, float w, float h, IDebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorvoid drawRectangle(float x, float y, float w, float h, IDebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorvoid drawFilledEllipse(float x, float y, float w, float h, IDebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorvoid drawEllipse(float x, float y, float w, float h, IDebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorvoid drawFilledCircle(float x, float y, float d, IDebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinated
- the diametercolor
- the colorvoid drawCircle(float x, float y, float d, IDebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinated
- the diametercolor
- the colorvoid drawLine(float x1, float y1, float x2, float y2, IDebugCanvas.Color color)
x1
- the x-coordinate of the start pointy1
- the y-coordinate of the start pointx2
- the x-coordinate of the end pointy2
- the y-coordinate of the end pointcolor
- the colorvoid drawString(String string, float x, float y, IDebugCanvas.Color color)
string
- the stringx
- the x-coordinatey
- the y-coordinatecolor
- the colorvoid clear()
void setBuffered(boolean buffered)
buffered
- whether buffered mode shall be activevoid drawBuffer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |