To display an icon inside the shape, set the property
icon
to the URL of the icon to display.
You can define the icon URL in the style
sheet as:
- An image file in any format supported by the Java™ VM:
node { icon : "url(myIcon.jpg)"; }
- An SVG file:
node { icon : "url(myIcon.svg)"; }
- An Rogue Wave JViews prototype:
node { shape : "url(myPrototypeLibrary.ivl#myPrototype)"; }
Set the icon property to the empty string if
you do not want an icon.
The icon is always displayed inside the shape (or centered on top
of the marker if the shape type is
Marker
).
If the label is inside the shape (
labelPosition : "Center"
), the position of the icon relative to the label is controlled by
the property
iconPosition
, which can be set to any direction defined by the interface IlvDirection. For example,
iconPosition : "Left"
places the icon to the left of the label.