AbsInt Logoai Logo

GDL: Icons and Additional Bitmap Fonts

Prev. (Nodes) Next (Fish-Eye) Index Sitemap home

slide

Additional Bitmap Fonts

  • Specified by

    fontname: "name and size"
    
  • Supported font names

    courR    // courier
    courB    //    ''     bold
    courO    //    ''     oblique
    courBO   //    ''     bold oblique
    helvR    // helvetica
    helvB    //    ''     bold
    helvO    //    ''     oblique
    helvBO   //    ''     bold oblique
    timR     // times
    timB     //    ''     bold
    timI     //    ''     italic
    timBI    //    ''     bold italic
    ncenR    // new century schoolbook
    ncenB    //    ''     bold
    ncenI    //    ''     italic
    ncenBI   //    ''     bold italic
    symb     // symbol
    
  • Supported font sizes

    8
    10
    12
    14
    24
    28
    

slide

Icons Substituted for Nodes

  • The location of the icon file is specified by

    iconfile: "filename"
    
  • Supported file formats

    .pbm
    .pgm
    .ppm
    
  • Additional graph attributes when using icons

         icons: yes or no  // enables or disables displaying
    fast_icons: yes or no  // sets icons layout speed and quality
    iconcolors: integer    // sets color map size (1 through 256)
    

example

Example


graph: { iconcolors: 256      node.bordercolor: 9
         edge.color:   8      edge.arrowstyle : line
         node.label: ""       edge.thickness  : 4

node: { title: "1"  fontname: "ncenBI12"
        label: "New Century\nSchoolbook\nBold Italic"   }
node: { title: "2"  iconfile: "icon.ppm"  scaling: 0.65 }
node: { title: "3"  iconfile: "icon.ppm"  scaling: 0.55 }
node: { title: "4"  iconfile: "icon.ppm"  scaling: 0.45 }

edge:     { source: "1"  target: "2" }
edge:     { source: "3"  target: "4" }
nearedge: { source: "2"  target: "3" }
nearedge: { source: "4"  target: "1" }

       }

aiSee!!

Hints

  • Icons are substituted for node backgrounds

    i.e. the node label will be drawn over the icon specified.
    To omit this, simply specify

    label: ""  // see the example above
  • Icon files should be in the same directory

    as the .gdl graph specification itself. Otherwise, either set
    the environment variable $AISEEICONS accordingly, or
    specify the exact path to the icon file, e.g.

    iconfile: "/home/me/aisee/icons/blue_lizard.ppm"
  • Custom specifications are supported

    node.iconfile: "black_maple_leaf.ppm"  // click here for an example
    node.fontname: "helvR08"               // click here for an example
  • Icons will be distorted properly in fish-eye views

    Cartesian Fish-Eye View Polar Fish-Eye View


top Prev. (Nodes) Next (Fish-Eye) Sitemap home


© 2000 & 2001 by AbsInt Angewandte Informatik GmbH.
This page was last modified on 11th of May 2001. URL: http://www.absint.com/aisee/gdl/guide/icons.htm