|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.ui.util.DebugCanvas
public class DebugCanvas
A canvas for drawing debug information on the active diagram.
Nested Class Summary | |
---|---|
static class |
DebugCanvas.Color
color definitions. |
static class |
DebugCanvas.DrawingMode
the available drawing modes. |
Constructor Summary | |
---|---|
DebugCanvas(KNode parentNode,
DebugCanvas.DrawingMode drawingMode)
Constructs a debug canvas. |
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,
DebugCanvas.Color color)
Draws a non-filled circle on the canvas. |
void |
drawEllipse(float x,
float y,
float w,
float h,
DebugCanvas.Color color)
Draws a non-filled ellipse on the canvas. |
void |
drawFilledCircle(float x,
float y,
float d,
DebugCanvas.Color color)
Draws a filled circle on the canvas. |
void |
drawFilledEllipse(float x,
float y,
float w,
float h,
DebugCanvas.Color color)
Draws a filled ellipse on the canvas. |
void |
drawFilledRectangle(float x,
float y,
float w,
float h,
DebugCanvas.Color color)
Draws a filled rectangle on the canvas. |
void |
drawLine(float x1,
float y1,
float x2,
float y2,
DebugCanvas.Color color)
Draws a line on the canvas. |
void |
drawRectangle(float x,
float y,
float w,
float h,
DebugCanvas.Color color)
Draws a non-filled rectangle one the canvas. |
void |
drawString(String string,
float x,
float y,
DebugCanvas.Color color)
Draws a string on the canvas. |
float |
getCustomXOffset()
Returns the custom x-Offset for this canvas. |
float |
getCustomYOffset()
Returns the custom y-Offset for this canvas. |
void |
setCustomXOffset(float x)
Sets a custom x-Offset for this canvas. |
void |
setCustomYOffset(float y)
Sets a custom y-Offset for this canvas. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DebugCanvas(KNode parentNode, DebugCanvas.DrawingMode drawingMode)
parentNode
- the parentNode this canvas is relative todrawingMode
- the drawing modeMethod Detail |
---|
public void setCustomXOffset(float x)
x
- the x-Offsetpublic float getCustomXOffset()
public void setCustomYOffset(float y)
y
- the y-Offsetpublic float getCustomYOffset()
public void drawFilledRectangle(float x, float y, float w, float h, DebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorpublic void drawRectangle(float x, float y, float w, float h, DebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorpublic void drawFilledEllipse(float x, float y, float w, float h, DebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorpublic void drawEllipse(float x, float y, float w, float h, DebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorpublic void drawFilledCircle(float x, float y, float d, DebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinated
- the diametercolor
- the colorpublic void drawCircle(float x, float y, float d, DebugCanvas.Color color)
x
- the x-coordinatey
- the y-coordinated
- the diametercolor
- the colorpublic void drawLine(float x1, float y1, float x2, float y2, DebugCanvas.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 colorpublic void drawString(String string, float x, float y, DebugCanvas.Color color)
string
- the stringx
- the x-coordinatey
- the y-coordinatecolor
- the colorpublic void clear()
public void drawBuffer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |