|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Location in objectdraw |
Methods in objectdraw that return Location | |
Location |
Line.getStart()
|
Location |
Line.getEnd()
|
Location |
Drawable2DInterface.getLocation()
Get a graphical object's position |
Location |
Drawable1DInterface.getStart()
Gets the line's start point. |
Location |
Drawable1DInterface.getEnd()
Gets the line's end point. |
Methods in objectdraw with parameters of type Location | |
void |
WindowController.onMouseClick(Location point)
Invoked when the mouse has been clicked on the WindowController's canvas. |
void |
WindowController.onMousePress(Location point)
Invoked when a mouse button has been pressed on the WindowController's canvas. |
void |
WindowController.onMouseRelease(Location point)
Invoked when a mouse button has been released on the WindowController's canvas. |
void |
WindowController.onMouseEnter(Location point)
Invoked when the mouse enters the WindowController's canvas. |
void |
WindowController.onMouseExit(Location point)
Invoked when the mouse exits the the WindowController's canvas. |
void |
WindowController.onMouseDrag(Location point)
Invoked when a mouse button is pressed on the canvas and then dragged. |
void |
WindowController.onMouseMove(Location point)
Invoked when the mouse button has been moved on the canvas (with no buttons down). |
void |
VisibleImage.moveTo(Location location)
|
void |
Text.moveTo(Location point)
|
double |
Location.distanceTo(Location point)
Determines the distance to the given Location. |
boolean |
Line.contains(Location point)
|
void |
Line.setStart(Location point)
|
void |
Line.setEnd(Location point)
|
void |
Line.setEndPoints(Location start,
Location end)
|
void |
DrawableInterface.moveTo(Location point)
Moves the object within the canvas to the specified Location |
boolean |
DrawableInterface.contains(Location point)
Determines if a particular position on the DrawingCanvas is contained within the object. |
void |
Drawable1DInterface.setStart(Location point)
Sets the line's start point. |
void |
Drawable1DInterface.setEnd(Location point)
Sets the line's end point. |
void |
Drawable1DInterface.setEndPoints(Location start,
Location end)
Sets the line's end points. |
void |
AWTWindowController.onMouseClick(Location point)
Invoked when the mouse has been clicked on the WindowController's canvas. |
void |
AWTWindowController.onMousePress(Location point)
Invoked when a mouse button has been pressed on the WindowController's canvas. |
void |
AWTWindowController.onMouseRelease(Location point)
Invoked when a mouse button has been released on the WindowController's canvas. |
void |
AWTWindowController.onMouseEnter(Location point)
Invoked when the mouse enters the WindowController's canvas. |
void |
AWTWindowController.onMouseExit(Location point)
Invoked when the mouse exits the WindowController's canvas. |
void |
AWTWindowController.onMouseDrag(Location point)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
AWTWindowController.onMouseMove(Location point)
Invoked when the mouse button has been moved on the WindowController's canvas (with no buttons depressed). |
Constructors in objectdraw with parameters of type Location | |
VisibleImage(java.awt.Image image,
Location origin,
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. |
|
Text(java.lang.Object text,
Location origin,
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(char text,
Location origin,
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(double text,
Location origin,
DrawingCanvas canvas)
Creates a new Text object that displays a double or float. |
|
Location(Location point)
Constructs a copy of a Location object. |
|
Line(Location start,
Location end,
DrawingCanvas canvas)
Creates a new Line object going from start to end. |
|
FramedRoundedRect(Location origin,
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(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(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(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(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(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(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(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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |