Style views

Permission: Settings management

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. 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",
"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.

Id 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. Current styling type is indicated by Node style switch on the Style tab in visualization.

view.nodes.titleProperty

String

The titleProperty atribute 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 user applies this view to the visualization (these mappers has 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 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 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 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 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 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 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 user applies this view to the visualization.

view.rels.style

MANDATORY

true, false

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

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

view.rels.titleProperty

String

The titleProperty atribute 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 user applies this view to the visualization (these mappers has 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 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 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 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 user applies this view to visualization. When not defined or set to null then the default styles are applied.