GDL: Icons and Bitmap Fonts<>index

Additional bitmap fonts

» Specified by

   fontname: "name and size"

» Available 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

» Available font sizes

   08
   10
   12
   14
   18
   24

» Example

   fontname: "courB14"

» Further details

Bitmap icons

» The icon to be displayed is specified by

   iconfile: "filename"

» Supported file formats

   .png
   .pbm
   .pgm
   .ppm

» Additional graph attributes when using icons

        icons: yes or no  // enable or disable icons
   fast_icons: yes or no  // toggle icons layout speed/quality
   iconcolors: integer    // color map size (1 through 256)

Example (see slide)

   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: "ai.ppm"  scaling: 0.65 }
   node: { title: "3"  iconfile: "ai.ppm"  scaling: 0.55 }
   node: { title: "4"  iconfile: "ai.ppm"  scaling: 0.45 }

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

          }

» Related graphs:

Hints

» Icons are substituted for node backgrounds, i.e. node titles will be drawn over the icons specified. To omit this, simply specify

   label: ""  // see above example

» 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"

» Global specifications are supported

   node.iconfile: "black_leaf.ppm" // example: maple tree
   node.fontname: "helvR08"        // example: syntax tree

» Icons will be distorted properly in fish-eye views.

Cartesian Fish-Eye View Polar Fish-Eye View

Go to ...

HomeSitemapai
Last modified on 11 May 2004 by webmaster. © 2001-2004 AbsInt.
URL: http://www.aisee.com/gdl/nutshell/icons.htm


Home
About
Examples
Free trial

 Help
» FAQs
» Quick Guide
» User Manual
» GDL
» Options
» Changelog
» GDLedit

Store
Legal
Contact
Extras
Sitemap