org.nakedobjects.viewer.lightweight
Class Canvas
java.lang.Object
org.nakedobjects.viewer.lightweight.Canvas
- Direct Known Subclasses:
- DebugCanvas
- public class Canvas
- extends java.lang.Object
|
Method Summary |
void |
clearBackground(Color color)
|
Canvas |
createSubcanvas(int x,
int y,
int width,
int height)
|
void |
draw3DRectangle(int x,
int y,
int width,
int height,
boolean raised)
|
void |
drawFullOval(int x,
int y,
int width,
int height,
Color color)
|
void |
drawFullRectangle(Bounds bounds,
Color color)
|
void |
drawFullRectangle(int x,
int y,
int width,
int height,
Color color)
|
void |
drawFullRectangle(Location at,
Size size,
Color color)
|
void |
drawIcon(Icon icon,
int x,
int y)
|
void |
drawIcon(Icon icon,
int x,
int y,
int width,
int height)
|
void |
drawLine(int x,
int y,
int x2,
int y2,
Color color)
|
void |
drawLine(Location start,
int xExtent,
int yExtent,
Color color)
|
void |
drawRectangle(Bounds bounds,
Color color)
|
void |
drawRectangle(int x,
int y,
int width,
int height,
Color color)
|
void |
drawRectangle(Location at,
Size size,
Color color)
|
void |
drawRectangle(Size size,
Color color)
|
void |
drawRoundedRectangle(Bounds bounds,
int arcWidth,
int arcHeight,
Color color)
|
void |
drawRoundedRectangle(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight,
Color color)
|
void |
drawSolidShape(Shape shape,
int x,
int y,
Color color)
|
void |
drawText(java.lang.String text,
int x,
int y,
Color color,
Style.Text style)
|
boolean |
intersects(Bounds view)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clearBackground
public void clearBackground(Color color)
createSubcanvas
public Canvas createSubcanvas(int x,
int y,
int width,
int height)
draw3DRectangle
public void draw3DRectangle(int x,
int y,
int width,
int height,
boolean raised)
drawFullOval
public void drawFullOval(int x,
int y,
int width,
int height,
Color color)
drawFullRectangle
public void drawFullRectangle(int x,
int y,
int width,
int height,
Color color)
drawFullRectangle
public void drawFullRectangle(Bounds bounds,
Color color)
drawFullRectangle
public void drawFullRectangle(Location at,
Size size,
Color color)
drawIcon
public void drawIcon(Icon icon,
int x,
int y)
drawIcon
public void drawIcon(Icon icon,
int x,
int y,
int width,
int height)
drawLine
public void drawLine(int x,
int y,
int x2,
int y2,
Color color)
drawLine
public void drawLine(Location start,
int xExtent,
int yExtent,
Color color)
drawRectangle
public void drawRectangle(int x,
int y,
int width,
int height,
Color color)
drawRectangle
public void drawRectangle(Bounds bounds,
Color color)
drawRectangle
public void drawRectangle(Location at,
Size size,
Color color)
drawRectangle
public void drawRectangle(Size size,
Color color)
drawRoundedRectangle
public void drawRoundedRectangle(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight,
Color color)
drawRoundedRectangle
public void drawRoundedRectangle(Bounds bounds,
int arcWidth,
int arcHeight,
Color color)
drawText
public void drawText(java.lang.String text,
int x,
int y,
Color color,
Style.Text style)
intersects
public boolean intersects(Bounds view)
drawSolidShape
public void drawSolidShape(Shape shape,
int x,
int y,
Color color)