The Map StyleSheet renderer

The Map StyleSheet renderer is a specific version of The StyleSheet renderer. You must have Rogue Wave® JViews Maps installed with a valid license to be able to use this renderer.
The Map StyleSheet renderer wraps the node and link layers into an IlvMapLayer object so that they are managed by the maps layer tree. For example, it allows:
  • Interactive raising and lowering of layers
  • Indication that the layers are always on top of the map background.
In a JViews Maps application you have to enable the Map StyleSheet renderer using Java™ code before you make any use of a style sheet. The following code example shows how to replace the StyleSheet renderer:
 // replace the stylesheet renderer with map rendererclass.
 IlvRendererUtil.addRendererAlias(
 IlvRendererUtil.getRendererAlias(IlvStyleSheetRenderer.class.getName()),
 IlvMapStyleSheetRenderer.class.getName());
The Map StyleSheet renderer provides exactly the same properties as the StyleSheet Renderer. However, any use of the nodesLayer , linksLayer or Layer properties will be overridden by the Map Layer tree order. The following table lists the Map StyleSheet renderer properties.
The Map StyleSheet renderer global properties
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 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.
The following table lists the Map StyleSheet renderer per-object rendering properties.
The Map StyleSheet renderer per-object proprieties
Property
Type
Default
Description
Anchor
int
Center
The position of the object's location relative to its bounding box (for example, Top Left? will place the object so that its upper-left corner is located at the x, y position).
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 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 getGraphicProperty for details.