Java Reference
In-Depth Information
Property
Description
XOR Fill
A Boolean property that indicates whether an XOR-based fill is used in
the figure
XOR Outline
A Boolean property that indicates whether an XOR-based outline is used
for the figure
Rectangle and Rounded Rectangle
Rectangle and Rounded Rectangle are two popular shape figures. These
generate subclasses of org.eclipse.draw2d.Rectangle and Rounded
Rectangle , respectively. The Rounded Rectangle has two additional proper-
ties for corner width and corner height .
Ellipse
An Ellipse is another popular shape that, when generated, extends org.
eclipse.draw2d.Ellipse . To create a circle, create a Size child element with
equal width and height values.
Polyline and Polygon
A Polyline is a shape (although not a regular shape) that contains a series of
points (x,y values) to define subclasses of org.eclipse.draw2d.Polyline . A
Polygon is a Polyline that is closed and can be filled. A Polygon generates a
subclass of org.eclipse.draw2d.Polygon . A ScalablePolygon is a
Polygon that autosizes to fill the available bounds.
Note that, in the case of a Polygon , the first and last points automatically
are closed to form the Polygon , so there's no need to explicitly list the start point
at the end.
Template Point
Polygon s are specified using a series of points. Children TemplatePoint ele-
ments of a Polygon draw a shape in the order they are added. It is helpful to
have a piece of graph paper handy when designing Polygons . As an example,
the points to draw a diamond decoration for use on a Polyline connection
would be (0,0) (-2,1) (-4,0) (-2,-1).
Polyline Connection
A Polyline Connection is a special type of Polyline that can contain source
and target end Decoration figures. Decoration s come with three options:
Polyline , Polygon , and Custom . In addition to Polyline Connection , a
 
Search WWH ::




Custom Search