/** * Gets the width of the arrow head. * * @return double */ public double getHeadWidth() { return getAttributes().getHeadWidth(); }
/** * Gets the end-points of this arrow. * Point[0] is the start point and point[1] is the end point. * * @return Point2DArray */ public Point2DArray getPoints() { return getAttributes().getPoints(); }
/** * Gets the width of the base of the arrow. * * @return double */ public double getBaseWidth() { return getAttributes().getBaseWidth(); }
/** * Gets the arrow type which specifies if the arrow has one or two arrow heads, * where they are located and whether the end without the arrow head is tapered or not. * * @return ArrowType */ public ArrowType getArrowType() { return getAttributes().getArrowType(); }
/** * Gets the angle between the outer diagonal and the inner diagonal * of the arrow head. * * @return angle in degrees, e.g. 45.0 */ public double getBaseAngle() { return getAttributes().getBaseAngle(); }
/** * Gets the angle between the midline of the arrow (between start and end points) * and the outer diagonal. * * @return angle in degrees, e.g. 45.0 */ public double getArrowAngle() { return getAttributes().getArrowAngle(); }
/** * Sets the arrow type which specifies if the arrow has one or two arrow heads, * where they are located and whether the end without the arrow head is tapered or not. * * @param end * @return this Arrow */ public Arrow setArrowType(ArrowType arrowType) { getAttributes().setArrowType(arrowType); invalidatePolygon(); return this; }
/** * Sets the end-points of this arrow. The points should be a 2-element {@link Point2DArray} * * @param points Point2DArray * @return this Arrow */ public Arrow setPoints(Point2DArray points) { getAttributes().setPoints(points); invalidatePolygon(); return this; }
/** * Sets the width of the base of the arrow. * * @param baseWidth * @return this Arrow */ public Arrow setBaseWidth(double baseWidth) { getAttributes().setBaseWidth(baseWidth); invalidatePolygon(); return this; }
/** * Sets the width of the arrow head. * * @param headWidth * @return this Arrow */ public Arrow setHeadWidth(double headWidth) { getAttributes().setHeadWidth(headWidth); invalidatePolygon(); return this; }
/** * Sets the angle between the midline of the arrow (between start and end points) * and the outer diagonal. * * @param arrowAngle in degrees, e.g. 45.0 * @return this Arrow */ public Arrow setArrowAngle(double arrowAngle) { getAttributes().setArrowAngle(arrowAngle); invalidatePolygon(); return this; }
/** * Sets the angle between the outer diagonal and the inner diagonal * of the arrow head. * * @param baseAngle in degrees, e.g. 45.0 * @return this Arrow */ public Arrow setBaseAngle(double baseAngle) { getAttributes().setBaseAngle(baseAngle); invalidatePolygon(); return this; }