|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of DrawingCanvas in objectdraw |
Classes in objectdraw that implement DrawingCanvas | |
class |
AWTDrawingCanvas
An AWTDrawingCanvas is an AWT GUI component designed for displaying simple graphics created by constructing Lines, FilledOvals, FilledRects, or any of the other objectdraw classes that implement DrawableInterface. |
class |
AWTFrameCanvas
AWTFrameCanvas is an extension of AWTDrawingCanvas that creates a Frame and puts an AWTDrawingCanvas inside. |
class |
FrameCanvas
FrameCanvas is an extension of JDrawingCanvas that creates a JFrame and puts a JDrawingCanvas inside. |
class |
JDrawingCanvas
A JDrawingCanvas is a Swing GUI component designed for displaying simple graphics created by instantiating members of subclasses of the Drawable class. |
Methods in objectdraw that return DrawingCanvas | |
DrawingCanvas |
DrawableInterface.getCanvas()
Determine which (if any) DrawingCanvas this object is positioned on |
Methods in objectdraw with parameters of type DrawingCanvas | |
void |
VisibleImage.addToCanvas(DrawingCanvas canvas)
|
void |
Text.addToCanvas(DrawingCanvas canvas)
|
void |
DrawableInterface.addToCanvas(DrawingCanvas c)
Places an existing object on a specified DrawingCanvas. |
Constructors in objectdraw with parameters of type DrawingCanvas | |
VisibleImage(java.awt.Image image,
Location origin,
DrawingCanvas canvas)
Creates a new VisibleImage object. |
|
VisibleImage(java.awt.Image image,
double x,
double y,
DrawingCanvas canvas)
Creates a new VisibleImage object. |
|
VisibleImage(java.awt.Image image,
Location origin,
double width,
double height,
DrawingCanvas canvas)
Creates a new VisibleImage object. |
|
VisibleImage(java.awt.Image image,
double x,
double y,
double width,
double height,
DrawingCanvas canvas)
Creates a new VisibleImage object. |
|
Text(java.lang.Object text,
Location origin,
DrawingCanvas canvas)
Creates a new Text object that displays an arbitrary Object. |
|
Text(java.lang.Object text,
double x,
double y,
DrawingCanvas canvas)
Creates a new Text object that displays an arbitrary Object. |
|
Text(boolean text,
Location origin,
DrawingCanvas canvas)
Creates a new Text object that displays a boolean. |
|
Text(boolean text,
double x,
double y,
DrawingCanvas canvas)
Creates a new Text object that displays a boolean. |
|
Text(char text,
Location origin,
DrawingCanvas canvas)
Creates a new Text object that displays a char. |
|
Text(char text,
double x,
double y,
DrawingCanvas canvas)
Creates a new Text object that displays a char. |
|
Text(long text,
Location origin,
DrawingCanvas canvas)
Creates a new Text object that displays a short, int, byte or long. |
|
Text(long text,
double x,
double y,
DrawingCanvas canvas)
Creates a new Text object that displays a short, int, byte or long. |
|
Text(double text,
Location origin,
DrawingCanvas canvas)
Creates a new Text object that displays a double or float. |
|
Text(double text,
double x,
double y,
DrawingCanvas canvas)
Creates a new Text object that displays a double or float. |
|
Line(Location start,
Location end,
DrawingCanvas canvas)
Creates a new Line object going from start to end. |
|
Line(double startx,
double starty,
double endx,
double endy,
DrawingCanvas c)
Creates a new Line object going from (startx,starty) to (endx,endy). |
|
FramedRoundedRect(Location origin,
double width,
double height,
double arcWidth,
double arcHeight,
DrawingCanvas canvas)
Creates a new FramedRoundedRect object. |
|
FramedRoundedRect(double x,
double y,
double width,
double height,
double arcWidth,
double arcHeight,
DrawingCanvas canvas)
Creates a new FramedRoundedRect object. |
|
FramedRoundedRect(Location p0,
Location p1,
double arcWidth,
double arcHeight,
DrawingCanvas canvas)
Creates a new FramedRoundedRect object. |
|
FramedRect(Location origin,
double width,
double height,
DrawingCanvas canvas)
Creates a new FramedRect object. |
|
FramedRect(double x,
double y,
double width,
double height,
DrawingCanvas canvas)
Creates a new FramedRect object. |
|
FramedRect(Location p0,
Location p1,
DrawingCanvas canvas)
Creates a new FramedRect object. |
|
FramedOval(Location origin,
double width,
double height,
DrawingCanvas canvas)
Constructs a new framed oval bounded by a rectangle with upper left corner at origin and dimensions given by width and height. |
|
FramedOval(double x,
double y,
double width,
double height,
DrawingCanvas canvas)
Constructs a new framed oval bounded by a rectangle with upper left corner at (x,y) and dimensions given by width and height. |
|
FramedOval(Location p0,
Location p1,
DrawingCanvas canvas)
Constructs a new framed oval bounded by a rectangle with diagonal given by a line from p0 to p1. |
|
FramedArc(Location origin,
double width,
double height,
double startAngle,
double arcAngle,
DrawingCanvas canvas)
Creates a new FramedArc object. |
|
FramedArc(double x,
double y,
double width,
double height,
double startAngle,
double arcAngle,
DrawingCanvas canvas)
Creates a new FramedArc object. |
|
FramedArc(Location p0,
Location p1,
double startAngle,
double arcAngle,
DrawingCanvas canvas)
Creates a new FramedArc object. |
|
FilledRoundedRect(Location origin,
double width,
double height,
double arcWidth,
double arcHeight,
DrawingCanvas canvas)
Creates a new FilledRoundedRect object. |
|
FilledRoundedRect(double x,
double y,
double width,
double height,
double arcWidth,
double arcHeight,
DrawingCanvas canvas)
Creates a new FilledRoundedRect object. |
|
FilledRoundedRect(Location p0,
Location p1,
double arcWidth,
double arcHeight,
DrawingCanvas canvas)
Creates a new FilledRoundedRect object. |
|
FilledRect(Location origin,
double width,
double height,
DrawingCanvas canvas)
Creates a new FilledRect object. |
|
FilledRect(double x,
double y,
double width,
double height,
DrawingCanvas canvas)
Creates a new FilledRect object. |
|
FilledRect(Location p0,
Location p1,
DrawingCanvas canvas)
Creates a new FilledRect object. |
|
FilledOval(Location origin,
double width,
double height,
DrawingCanvas canvas)
Constructs a new filled oval bounded by a rectangle with upper left corner at origin and dimensions given by width and height. |
|
FilledOval(double x,
double y,
double width,
double height,
DrawingCanvas canvas)
Constructs a new filled oval bounded by a rectangle with upper left corner at (x,y) and dimensions given by width and height. |
|
FilledOval(Location p0,
Location p1,
DrawingCanvas canvas)
Constructs a new filled oval bounded by a rectangle with diagonal given by a line from p0 to p1. |
|
FilledArc(Location origin,
double width,
double height,
double startAngle,
double arcAngle,
DrawingCanvas canvas)
Creates a new FilledArc object. |
|
FilledArc(double x,
double y,
double width,
double height,
double startAngle,
double arcAngle,
DrawingCanvas canvas)
Creates a new FilledArc object. |
|
FilledArc(Location p0,
Location p1,
double startAngle,
double arcAngle,
DrawingCanvas canvas)
Creates a new FilledArc object. |
|
AngLine(Location start,
double length,
double radianAngle,
DrawingCanvas canvas)
Creates a new Line given a starting location, length and direction. |
|
AngLine(double startX,
double startY,
double length,
double radianAngle,
DrawingCanvas canvas)
Creates a new Line given a starting location, length and direction. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |