Style views

Permission: Settings management

Style view is a simple configuration object which stores specific style settings from tab Settings in visualization. Every style view object defines which style mappers (and also other styling properties) should by applied when user chooses particular view so the user can easily switch between views to visually compare patterns in the data. Defined style views are listed in the menu "View" in visualization (in the top toolbox with buttons).

Style views setting is a collection of these style view objects.

Configuration

  1. Left menu - settings

  2. In panel "Settings list" use icon "Update" for setting "STYLE_VIEWS".

  3. Enter JSON configuration and confirm by pressing "Save" button.

Default configuration

Default configuration contains no views.

  1. Left menu - settings

  2. In panel "Settings list" use icon "Update" for setting "STYLE_VIEWS".

  3. Press button "Default" and store by pressing button "Save".

Automatic configuration

Automatic configuration contains no views. You can create appropriate mappers for users during administration process.

  1. Left menu - settings

  2. In panel "Settings list" use icon "Update" for setting "STYLE_VIEWS".

  3. Press button "Automatic", wait for generator to generate JSON and store by pressing button "Save".

Description of configuration

Configuration is entered as JSON. Example of JSON:

[
{
"id":"1",
"label":"Outages",
"view":{
"nodes":{
"style":"color",
"font_size":"_default_",
"nodeColor":{
"id":"1"
},
"nodeShape":{
"id":"6"
},
"nodeSize":{
"id":"3"
},
"nodeIcon":{
"id":"2"
}
},
"edges":{
"style":"notMerged",
"font_size":"_default_",
"edgeColor":{
"id":"5"
},
"edgeType":{
"id":"9"
},
"edgeWidth":{
"id":"4"
}
}
}
}
]

Explanation of attributes:

  • "id" - view identification. Id can't start with space " " or exclamation mark "!". It's used for referencing purposes. mandatory

  • "label" - label used in GUI. mandatory

  • "view" - view definition. mandatory Contains separate definitions for nodes and relationships:

    • "nodes" - view definition for nodes. mandatory

      • "style" - "color", "icon", "default" mandatory

      • "font_size" - font size for node labels in visualization. If not defined then font size is not affected by view switching. If set to "_default_" then internal default font size is used.

      • "nodeColor"

        • "id" - id of style mapper which will be used for node color mapping mandatory

      • "nodeShape"

        • "id" - id of style mapper which will be used for node shape mapping mandatory

      • "nodeSize"

        • "id" - id of style mapper which will be used for node size mapping mandatory

      • "nodeIcon"

        • "id" - id of style mapper which will be used for node icon mapping mandatory

    • "edges" - view definition for relationships. mandatory

      • "style" - "merged", "notMerged" mandatory

      • "font_size" - font size for relationship labels in visualization. If not defined then font size is not affected by view switching. If set to "_default_" then internal default font size is used.

      • "edgeColor"

        • "id" - id of style mapper which will be used for relationship color mapping mandatory

      • "edgeType"

        • "id" - id of style mapper which will be used for relationship type mapping mandatory

      • "edgeWidth"

        • "id" - id of style mapper which will be used for relationship width mapping mandatory