
ShapeAttribute |
ptolemy.vergil.kernel.attributes.ShapeAttribute |
This is an abstract attribute that is rendered as a shape.
This base class provides support for a line width and a line color.
The line color can be "none", in which case no line is drawn.
Concrete derived classes provide particular shapes.
Author(s): Edward A. Lee
Version:$Id: ShapeAttribute.java,v 1.31 2006/03/29 20:55:55 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Red (cxh)
dashArray
Specification of the dash pattern for dashed or dotted lines.
An empty value indicates that the line should not be dashed.
The values specify the length of solid and transparent segments
in an alternating fashion.
This is an array of doubles that by default is empty.
lineColor
The line color. This is a string representing an array with
four elements, red, green, blue, and alpha, where alpha is
transparency. The default is "{0.0, 0.0, 0.0, 1.0}", which
represents an opaque black.
lineWidth
The line width. This is a double that defaults to 1.0.