Difference between revisions of "Wgraph:Commands h"

From FollowTheScore
Jump to: navigation, search
 
Line 8: Line 8:
 
  |default  = ''(label height)''
 
  |default  = ''(label height)''
 
  |context  = graph, subgraph, node, nodetype
 
  |context  = graph, subgraph, node, nodetype
  |aiseeref  = 44list.htm#height
+
  |aiseeref  = G:height
 
  |wgraphref = height
 
  |wgraphref = height
 
  |effect    = The geometric height of a node or (sub)graph in pixels. If coordinate transformation is used, the actual scaling will be respected. If no height is specified the height of an object will default to the height of its label. An object with height 0 will not be shown (but still influences the layout).
 
  |effect    = The geometric height of a node or (sub)graph in pixels. If coordinate transformation is used, the actual scaling will be respected. If no height is specified the height of an object will default to the height of its label. An object with height 0 will not be shown (but still influences the layout).
Line 18: Line 18:
 
  |default  = ''false''
 
  |default  = ''false''
 
  |context  = graph
 
  |context  = graph
  |aiseeref  = 44list.htm#hidden
+
  |aiseeref  = G:hidden
 
  |wgraphref = hidden
 
  |wgraphref = hidden
  |effect    = edges belonging to a hidden class (see 'class' attribute of edges) will not be drawn. They will not influence the layout. It is possible to specify the 'hidden' command more than once thus hiding edges from several classes.
+
  |effect    = Defines if an edge class shall be hidden in the layout. Edges belonging to a hidden class ({{See Wgraph|class}}) will not be drawn. They will not influence the layout. It is possible to specify the 'hidden' command more than once thus hiding edges from several classes.
''Note'': The use of 'hidden' is deprecated. Use 'skip_edgetypes' instead.
+
''Note'': The use of 'hidden' is deprecated. {{See Wgraph|skip_edge_types}} instead.
 
}}
 
}}
 
|-------------------------------
 
|-------------------------------
Line 35: Line 35:
 
|-------------------------------
 
|-------------------------------
 
{{Wgraph Command
 
{{Wgraph Command
  |command  = hide_nodetypes
+
  |command  = hide_node_types
 
  |type      = list of node type names
 
  |type      = list of node type names
 
  |default  = ''empty list''
 
  |default  = ''empty list''
Line 45: Line 45:
 
|-------------------------------
 
|-------------------------------
 
{{Wgraph Command
 
{{Wgraph Command
  |command  = hide_edgetypes
+
  |command  = hide_edge_types
 
  |type      = list of edge type names
 
  |type      = list of edge type names
 
  |default  = ''empty list''
 
  |default  = ''empty list''
Line 57: Line 57:
 
  |command  = horizontal_order
 
  |command  = horizontal_order
 
  |type      = integer
 
  |type      = integer
  |default  = -1 (''ignore'')
+
  |default  = ''-1'' (''ignore'')
 
  |context  = graph, subgraph, node, nodetype
 
  |context  = graph, subgraph, node, nodetype
  |aiseeref  = 44list.htm#horizontalorder
+
  |aiseeref  = G:horizontalorder
 
  |wgraphref = horizontal_order
 
  |wgraphref = horizontal_order
 
  |effect    = The horizontal position of an object, from 0 (=left) .. n (right). The ordering sequence of the numbers imports, not their exact value, i.e. you can use "10,20,30" as well as "1,2,3" or "3,7,45". <tt>horizontal_order</tt> only applies to hierarchical layout algorithms.
 
  |effect    = The horizontal position of an object, from 0 (=left) .. n (right). The ordering sequence of the numbers imports, not their exact value, i.e. you can use "10,20,30" as well as "1,2,3" or "3,7,45". <tt>horizontal_order</tt> only applies to hierarchical layout algorithms.
Line 67: Line 67:
 
  |command  = href
 
  |command  = href
 
  |type      = wiki article name
 
  |type      = wiki article name
  |default  =
+
  |default  = ''empty string''
 
  |context  = node, nodetype
 
  |context  = node, nodetype
  |aiseeref  = 45list.htm#info
+
  |aiseeref  = N:info
 
  |wgraphref = href
 
  |wgraphref = href
  |effect    = The node will have a hyperlink to the given pagename.URL. Links only show up in SVG output format.
+
  |effect    = The node will carry a hyperlink. Links only show up in SVG output format. If the string starts with "http://" (or ftp://, mailto:// etc.) it will be interpreted as a standard URL, otherwise it will be understood as a page name in the current wiki.<br>
<tt>href</tt> is an alias for <tt>url</tt>.
+
{{Alias Wgraph|url}}
 
}}
 
}}
 
|-------------------------------
 
|-------------------------------
 
|}
 
|}

Latest revision as of 10:46, 12 October 2007

a - b - c - d - e - f - g - h - i - j - k - l - m - n - o - p - q - r - s - t - u - v - w - x - y - z
Show attributes for     node -- nodetype -- edge -- edgetype -- graph/subgraph -- all

Command Type Default Description Context aiSee
manual
Example
[[Wgraph:Commands {{#sub:height|0|1}}#height|height]]

non negative integer

(label height)

The geometric height of a node or (sub)graph in pixels. If coordinate transformation is used, the actual scaling will be respected. If no height is specified the height of an object will default to the height of its label. An object with height 0 will not be shown (but still influences the layout).

graph, subgraph, node, nodetype

{{#vardefine:ref|{{#replace:G:height|G:|44list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|N:|45list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|E:|46list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|EF:|35.htm#}}}}height

demo

[[Wgraph:Commands {{#sub:hidden|0|1}}#hidden|hidden]]

unsigned

false

Defines if an edge class shall be hidden in the layout. Edges belonging to a hidden class (See [[Wgraph:Commands {{#sub:class|0|1}}#class|class]]) will not be drawn. They will not influence the layout. It is possible to specify the 'hidden' command more than once thus hiding edges from several classes. Note: The use of 'hidden' is deprecated. See [[Wgraph:Commands {{#sub:skip_edge_types|0|1}}#skip_edge_types|skip_edge_types]] instead.

graph

{{#vardefine:ref|{{#replace:G:hidden|G:|44list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|N:|45list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|E:|46list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|EF:|35.htm#}}}}hidden

demo

[[Wgraph:Commands {{#sub:hide_nodes|0|1}}#hide_nodes|hide_nodes]]

list of node names

empty list

The nodes listed will be hidden, i.e. they are invisible but will still influence the layout.

graph

demo

[[Wgraph:Commands {{#sub:hide_node_types|0|1}}#hide_node_types|hide_node_types]]

list of node type names

empty list

All nodes which belong to at least one of the specified node types will be hidden, i.e. they are invisible but still influence the layout.

graph

demo

[[Wgraph:Commands {{#sub:hide_edge_types|0|1}}#hide_edge_types|hide_edge_types]]

list of edge type names

empty list

All edges which belong to at least one of the specified edge types will be hidden, i.e. they are invisible but still influence the layout.

graph

demo

[[Wgraph:Commands {{#sub:horizontal_order|0|1}}#horizontal_order|horizontal_order]]

integer

-1 (ignore)

The horizontal position of an object, from 0 (=left) .. n (right). The ordering sequence of the numbers imports, not their exact value, i.e. you can use "10,20,30" as well as "1,2,3" or "3,7,45". horizontal_order only applies to hierarchical layout algorithms.

graph, subgraph, node, nodetype

{{#vardefine:ref|{{#replace:G:horizontalorder|G:|44list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|N:|45list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|E:|46list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|EF:|35.htm#}}}}horizontal_order

demo

[[Wgraph:Commands {{#sub:href|0|1}}#href|href]]

wiki article name

empty string

The node will carry a hyperlink. Links only show up in SVG output format. If the string starts with "http://" (or ftp://, mailto:// etc.) it will be interpreted as a standard URL, otherwise it will be understood as a page name in the current wiki.
This command is an alias for [[Wgraph:Commands {{#sub:url|0|1}}#url|url]].

node, nodetype

{{#vardefine:ref|{{#replace:N:info|G:|44list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|N:|45list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|E:|46list.htm#}}}}{{#vardefine:ref|{{#replace:{{#var:ref}}|EF:|35.htm#}}}}href

demo