Java Reference
In-Depth Information
Table 11-1
Figure Properties
Property
Description
Name
The name of the figure.
Foreground Color
The color of the figure's outline. Color can be specified using RGB
values or using a set of color constants.
Background Color
The color of the figure's background, or the area inside the outline.
Size
The initial dimension (width and height) of the figure.
Maximum Size
The maximum dimension (width and height) of the figure.
Minimum Size
The minimum dimension (width and height) of the figure.
Preferred Size
The preferred dimension (width and height) of the figure.
Font
The name, size, and style (normal, bold, italic) of a font used for
figure text.
Insets
The bottom, top, left, and right inset values for the figure, used
with a Margin Border.
Border
A decoration on a figure with corresponding Insets elements used to
determine how its children are positioned. See the upcoming
“Borders” section for more information on the types of borders
available.
Location
The location of the figure's top-left corner.
Shape Figures
A number of shape figures share a common set of properties, listed in Table 11-2.
These properties correspond to org.eclipse.draw2d.Shape class properties.
Table 11-2
Shape Figure Properties
Property
Description
Outline
A Boolean property that indicates whether to draw the figure's outline
Fill
A Boolean property that indicates whether to fill the figure with the
specified background color
Line Width
The width of the outline
Line Kind
The style of line used for the figure's outline: solid, dash, dot, dash-dot,
dash-dot-dot, or custom
 
Search WWH ::




Custom Search