Required Permission: Project Settings management (Read more about permissions in User Groups)

Table of Contents


Style view is a simple configuration object which stores specific style settings from tab Style 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. In the "Application Menu" (top right) choose page "Project Settings"
  2. In the "Project Settings" panel click on the "Views" row.
  3. Enter JSON configuration and confirm by pressing the "Save" button.

Description of configuration

Configuration is entered in JSON format. Example:

[
{
"id":"1",
"title":"Outages",
"view":{
"fontSize":"_default_",
"nodes":{
"style":"color",
"titleProperty":"some_property_name",
"mappers":{
"background_color":{
"id":"1"
},
"background_image":{
"id":"2"
},
"border_width":{
"id":"21"
},
"border_color":{
"id":"22"
},
"size":{
"id":"3"
},
"shape":{
"id":"6"
}
}
},
"rels":{
"style":true,
"model":"edges",
"titleProperty":"some_property_name",
"mappers":{
"line_color":{
"id":"5"
},
"line_style":{
"id":"9"
},
"width":{
"id":"4"
},
"curve_style":{
"id":"42"
}
}
}
}
}
]


Explanation of JSON properties:


Property
Values
Default
Description

id

mandatory

String


Style view identification used for internal referencing purposes.

The "id" value can't start with space " " or exclamation mark "!".

title

mandatory

String


View name used in GUI.

view

mandatory

Object


Contains two objects with style settings for nodes and relationships.

view.fontSize

null, undefined, Number, "_default_"

undefined

Font size (number) for node and relationship titles in visualization. If the value is not defined or set to null then font size is not affected by view switching. If set to "_default_" then internal default font size is used.

view.nodes

mandatory

Object


View definition object for nodes.

view.nodes.style

mandatory

"color", "icon", "default"


Defines which styling type for nodes will be activated. The current styling type is indicated by the Node style switch on the Style tab in visualization.

view.nodes.titleProperty

String


The titleProperty attribute specifies which node property should be used for setting the node titles in visualization (text under each node). When not defined or set to null then the titles setting is not changed.

view.nodes.mappers

mandatory

Object

empty object

The "mappers" object contains references to specific style mappers that should be used when the user applies this view to the visualization (these mappers have to be already defined in the Style Mappers setting and then referenced with the mapper's id property). There can be one and only one mapper defined for every style property (e.g. for background color, shape, size, ...). When no mapper is defined for some style properties then the internal default values are used automatically.

view.nodes.mappers.background_color

Object

Default styles

Definition of node background color mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.

view.nodes.mappers.background_image

Object

Default styles  

Definition of node background image mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.

view.nodes.mappers.border_width

Object

Default styles

Definition of node border width mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.

view.nodes.mappers.border_color

Object

Default styles

Definition of node border color mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.

view.nodes.mappers.shape

Object

Default styles  

Definition of node shape mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.

view.nodes.mappers.size

Object

Default styles  

Definition of node size mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.

view.rels

mandatory

Object


View definition object for relationships.

view.rels.model

mandatory

"edges", "mergedEdges", "dirMergedEdges"


Defines which relationship model should be used when the user applies this view to the visualization.

view.rels.style

mandatory

true, false


Defines if the styling of relationships will be activated or deactivated. If Deactivated then no mapping is taken into consideration and the internal default styling for relationships is used.

Defines which styling type for relationships will be activated. The current styling type is indicated by the relationship style switch on the Style tab in visualization.

view.rels.titleProperty

String


The titleProperty attribute specifies which relationship property should be used for setting the relationship titles in visualization (text on each relationship). When not defined or set to null then the titles setting is not changed.

view.rels.mappers

mandatory

Object

empty object

The "mappers" object contains references to specific style mappers that should be used when the user applies this view to the visualization (these mappers have to be already defined in the Style Mappers setting and then referenced with the mapper's id property). There can be one and only one mapper defined for every style property (e.g. for line color, width, curve style, ...). When no mapper is defined for some style properties then the internal default values are used automatically.

view.rels.mappers.line_color

Object

Default styles  

Definition of relationship line color mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.

view.rels.mappers.line_style

Object

Default styles  

Definition of relationship line type mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.

view.rels.mappers.width

Object

Default styles  

Definition of relationship width mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.

view.rels.mappers.curve_style

Object

Default styles 

Definition of relationship curve style mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.

view.rels.mappers.target_arrow_shape

Object

Default styles

Definition of relationship target arrow shape mapper. This object contains only property id which is the ID of style mapper which should be used when the user applies this view to visualization. When not defined or set to null then the default styles are applied.