objectdraw
Class AngLine
java.lang.Object
objectdraw.Drawable
objectdraw.Line
objectdraw.AngLine
- All Implemented Interfaces:
- Drawable1DInterface, DrawableInterface, java.io.Serializable
- public class AngLine
- extends Line
AngLine is a variant of Line where the constructor takes a starting
point and angle from the horizontal rather than two end points.
- Version:
- 1.1.2 released July 2006
- Author:
- Kim Bruce
- See Also:
- Serialized Form
Constructor Summary |
AngLine(double startX,
double startY,
double length,
double radianAngle,
DrawingCanvas canvas)
Creates a new Line given a starting location, length and direction. |
AngLine(Location start,
double length,
double radianAngle,
DrawingCanvas canvas)
Creates a new Line given a starting location, length and direction. |
Methods inherited from class objectdraw.Line |
addToCanvas, contains, getCanvas, getColor, getEnd, getStart, hide, isHidden, move, moveTo, moveTo, removeFromCanvas, sendBackward, sendForward, sendToBack, sendToFront, setColor, setEnd, setEnd, setEndPoints, setEndPoints, setStart, setStart, show, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface objectdraw.DrawableInterface |
addToCanvas, getCanvas, getColor, hide, isHidden, moveTo, removeFromCanvas, sendBackward, sendForward, sendToBack, sendToFront, setColor, show |
AngLine
public AngLine(Location start,
double length,
double radianAngle,
DrawingCanvas canvas)
- Creates a new Line given a starting location, length and direction.
- Parameters:
start
- the starting point of the line.length
- the length of the line.radianAngle
- the angle the line makes with the horizontalcanvas
- the canvas in which the line is created.
AngLine
public AngLine(double startX,
double startY,
double length,
double radianAngle,
DrawingCanvas canvas)
- Creates a new Line given a starting location, length and direction.
- Parameters:
startX
- the x coordinate of the starting point of the line.startY
- the y coordinate of the starting point of the line.length
- the length of the line.radianAngle
- the angle the line makes with the horizontalcanvas
- the canvas in which the line is created.