It is possible to use the values of data model attributes
for styling. You can also use an expression involving one or more
data property values for styling.
A reference to a model attribute is the name of the attribute
preceded by the at sign (@), for example, @id
.
An expression is signaled by the initial symbols
@|
for example,
@|"name is: "+@id
. Note that this example uses the concatenation operator,
+
, and that literal strings must be enclosed in quotation
marks. A further example is
@|@firstname+" "+@name
, which is used in the genealogical tree example, see
Customizing genealogy nodes by type. For full details of the expression syntax, see
Expressions in
Developing
with the JViews Diagrammer SDK.
The way to enter references or expressions in the Designer
depends on whether the styling property you want to set is a text
property.