AbsInt Logoai Logo

GDL: Node Sizes & Node Positions

Prev. (Subgraphs) Next (Icons) Index Sitemap home

slide

Node Sizes & Positions

  • The scale factor of a node is specified by

    scaling: float   // decimal relation to the graph scaling factor
    
  • Node dimensions are specified by

    height: integer  // number of pixels (incl. the node
    width:  integer  // border) when the node scaling is 1.0
    
  • The minimum space between nodes is specified by

    xspace: integer  // number of pixels when the 
    yspace: integer  // graph scale factor is 100%
    
  • The center node of the graph is set by

    focus
    


aiSee!!

Hints

  • GDL supports irrational scaling factors

    Consider the following both specifications

    stretch: integer
    shrink: integer

    These attributes specify separately the shrinking and
    stretching factors, so that the following formula applies:

    scaling == ( stretch / shrink ) * 100%

    Examples:

    stretch: 4  shrink: 3  // more precise than scaling: 1.33
    stretch: 1  shrink: 7  // more precise than scaling: 0.142857
    stretch: 2             // the same as scaling: 2.0
    shrink:  2             // the same as scaling: 0.5
    shrink:  7             // the same as stretch: 1  shrink: 7
    
  • Default attribute values

    node.scaling: 1.0
    node.shrink:  1
    node.stretch: 1
    node.height: -1  // (i.e. unspecified)
    node.width:  -1  // (i.e. unspecified)
    
    // the same values apply for foldnode attributes
    
  • Multiple focuses are not allowed

    node: {title:"That's" focus}  // this
    node: {title:"great"  focus}  // is
    node: {title:"kinda"       }  // rather
    node: {title:"fun"    focus}  // senseless
    
  • Related topics:


top Prev. (Subgraphs) Next (Icons) Sitemap home


Please send any suggestions, comments or questions to webmaster@absint.com or use our feedback page.
Contents and Webdesign © Copyright 2000 & 2001 by AbsInt Angewandte Informatik GmbH.
This page was last modified on 11th of May 2001. This page URL is http://www.absint.com/aisee/gdl/guide/nodes.htm