|
||||||||||
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 |
---|
Nested classes/interfaces inherited from interface de.cau.cs.kieler.kiml.util.IDebugCanvas |
---|
IDebugCanvas.Color |
Constructor Summary | |
---|---|
DebugCanvas()
|
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 |
setManager(DiagramLayoutManager layoutManager)
Sets the canvas up for the given layout manager. |
void |
setOffset(KNode parentNode,
float addx,
float addy)
Sets an 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()
Method Detail |
---|
public void setManager(DiagramLayoutManager layoutManager)
layoutManager
- the current diagram layout managerpublic void setOffset(KNode parentNode, float addx, float addy)
setOffset
in interface IDebugCanvas
parentNode
- the parent node that defines the current offsetaddx
- additional horizontal offsetaddy
- additional vertical offsetpublic void drawFilledRectangle(float x, float y, float w, float h, IDebugCanvas.Color color)
drawFilledRectangle
in interface IDebugCanvas
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorpublic void drawRectangle(float x, float y, float w, float h, IDebugCanvas.Color color)
drawRectangle
in interface IDebugCanvas
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorpublic void drawFilledEllipse(float x, float y, float w, float h, IDebugCanvas.Color color)
drawFilledEllipse
in interface IDebugCanvas
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorpublic void drawEllipse(float x, float y, float w, float h, IDebugCanvas.Color color)
drawEllipse
in interface IDebugCanvas
x
- the x-coordinatey
- the y-coordinatew
- the widthh
- the heightcolor
- the colorpublic void drawFilledCircle(float x, float y, float d, IDebugCanvas.Color color)
drawFilledCircle
in interface IDebugCanvas
x
- the x-coordinatey
- the y-coordinated
- the diametercolor
- the colorpublic void drawCircle(float x, float y, float d, IDebugCanvas.Color color)
drawCircle
in interface IDebugCanvas
x
- the x-coordinatey
- the y-coordinated
- the diametercolor
- the colorpublic void drawLine(float x1, float y1, float x2, float y2, IDebugCanvas.Color color)
drawLine
in interface IDebugCanvas
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, IDebugCanvas.Color color)
drawString
in interface IDebugCanvas
string
- the stringx
- the x-coordinatey
- the y-coordinatecolor
- the colorpublic void clear()
clear
in interface IDebugCanvas
public void drawBuffer()
drawBuffer
in interface IDebugCanvas
public void setBuffered(boolean buffered)
setBuffered
in interface IDebugCanvas
buffered
- whether buffered mode shall be active
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |