|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mit.sketch.ddg.DrawnObject
edu.mit.sketch.ddg.DrawnArrow
public class DrawnArrow
An concrete drawn arrow. In the default position the arrow is horizontal right-pointing.
DrawnArrow.java Created: Sun Apr 28 16:44:00 2002
| Field Summary | |
|---|---|
static double |
DEFAULT_HEAD_ANGLE
|
static double |
DEFAULT_HEAD_RATIO
|
static double |
DEFAULT_LENGTH
Default arrow length. |
| Constructor Summary | |
|---|---|
DrawnArrow()
Construct a default right-pointing arrow |
|
DrawnArrow(PrimitiveList primitives)
Construct a default arrow with a given list of labels. |
|
| Method Summary | |
|---|---|
Rectangle |
boundingBox()
Get the smallest possible bounding box of any orientation |
java.lang.Object |
clone()
Clone the object (and the concrete geometric parts inside) |
| Methods inherited from class edu.mit.sketch.ddg.DrawnObject |
|---|
angle, axisParallelBoundingBox, center, geometricPartAt, geometricPartAt, geometricParts, getObject, getObject, height, length, paint, primitiveAt, primitives, remove, rotate, scale, thickness, translate, width |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double DEFAULT_LENGTH
public static final double DEFAULT_HEAD_RATIO
public static final double DEFAULT_HEAD_ANGLE
| Constructor Detail |
|---|
public DrawnArrow()
public DrawnArrow(PrimitiveList primitives)
throws InvalidParameterException
InvalidParameterException| Method Detail |
|---|
public Rectangle boundingBox()
throws ObjectEmptyException
boundingBox in class DrawnObjectObjectEmptyExceptionpublic java.lang.Object clone()
clone in class DrawnObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||