The
StyleSheet
renderer is the default renderer. The
StyleSheet
renderer is always enabled.
The
StyleSheet
renderer implements the basic creation of graphic objects. For each
object in the data model, the
StyleSheet
renderer looks up all the style rules that match the object and
creates the graphic object specified by the declarations of these
rules.
The following table lists the properties of the
StyleSheet
renderer.
Global properties of the StyleSheet
renderer
Property
|
Type
|
Default
|
Description
|
---|---|---|---|
debugMask
|
int
|
0
|
Prints selected debug information.
|
styleSheets
|
String[]
|
null
|
Sets cascading style sheets. This property is usually set on
the SDM engine rather than directly on the
StyleSheet
renderer.
|
linkConnectorEnabled
|
boolean
|
true
|
Specifies if a link connector should be
installed on the nodes to connect the links to the sides of the
nodes, rather than to their centers.
|
addingLinkConnectors
|
boolean
|
true
|
If
false
, no link connector is installed by the style sheet renderer.
|
nodesLayer
|
int
|
10
|
Specifies the default layer in which the
nodes will be added.
|
linksLayer
|
int
|
9
|
Specifies the default layer in which the
links will be added.
|
The following table lists the per-object rendering properties of
the
StyleSheet
renderer.
Per-object properties of the StyleSheet
renderer
Property
|
Type
|
Default
|
Description
|
---|---|---|---|
Anchor
|
int
|
Center
|
The position of the object’s location
relative to its bounding box (for example, TopLeft will place
the object so that its upper-left corner is located at the x, y
position).
|
Layer
|
int
|
Overrides nodesLayer or linksLayer for a
specific object.
|
|
LinkConnector
|
IlvLinkConnector
|
Defines the link connector set on the nodes of the graph. By
default, an
IlvSDMLinkConnector
object is used.
|
|
ToolTipText
|
String
|
null
|
Deprecated, replaced by the
IlvGraphic
property
toolTipText
.
|
x
|
float
|
The horizontal coordinate of the object.
|
|
y
|
float
|
The vertical coordinate of the object.
|
|
width
|
int
|
The width of the object. If the width is not specified in the
style sheet file, and if it is specified in the data model XML
file, the value contained in the XML file will be used. See
IlvSDMRenderer.getGraphicProperty
for details.
|
|
height
|
int
|
The height of the object. If the height is not specified in the
style sheet file, and if it is specified in the data model XML
file, the value contained in the XML file will be used. See
IlvSDMRenderer.getGraphicProperty
for details.
|
See the class IlvStyleSheetRenderer for more details.
The
StyleSheet
renderer is always present, but you must explicitly declare changes
in the style sheet if some properties are to be modified. shows a
style rule which instructs the
StyleSheet
renderer to print debug information about all the declarations
being processed.
Debugging the style sheet
StyleSheet { debugMask : "DECL_MASK|DECL_VALUE_MASK" ; }