Universitaet Bremen
FB3->Group BKB

->Main->New Features->API Commands
Home
uDraw(Graph)
Download
Service & Support
Legal



API Commands

New API Commands and Features

This page covers new features and modifications in version 3.0, compared to the previous release V2.1. The new and old API commands are listed in the complete API syntax.

  • gui(configure(filename))
    To configure the whole user interface from the specified configuration file. Details.
  • gui(activate_menus(menu_ids))
    To enable or disable menu entries configured by the application in the uDraw(Graph) user interface. Details.
  • gui(set_radio_menus(menu_ids))
    To set the value of a group of configured menu entries that behave like radio buttons. Details.
  • gui(activate_icons(icon_ids))
    To enable or disable icons configured by the application in the uDraw(Graph) user interface. Details.
  • gui(set_radio_icons(icon_ids))
    To set the value of a group of configured icons that behave like radio buttons. Details.
  • menu(file(print_to_printer))
    To send the graph to the printer. Details.
  • menu(file(export(boolean,string,filename)))
    To export the current graph to a file. boolean: true means whole graph, false means visible area. string: the type, either "gif", "tiff" or "png". filename: the destination file. Details.
  • menu(file(export))
    To open the export dialog window. Details.
  • menu(navigation(select_parent(edge_id)))
    To select the parent node of the edge with the specified ID. Details.
  • menu(navigation(select_child(edge_id)))
    To select the parent node of the edge with the specified ID. Details.
  • menu(option(layout_algorithm))
    To open the layout algorithm dialog window. Details.
  • menu(option(layout_settings))
    To open the layout settings dialog window. Details.
  • menu(option(general_settings))
    To open the general settings dialog window. Details.
  • menu(option(save))
    To save the options. Details.
  • set(keep_nodes_at_levels(boolean))
    To set whether or not nodes should keep their level when using the graph layout algorithm. Details.
  • set(manual_layout(manual_constraints))
    To set constraint used for fine-tuning (manual layout).
    manual_constraints ::= modify | preserve | fixed. Details.
  • set(edge_style(spline_drawing))
    To set the global style used for drawing edges.
    spline_drawing ::= off | graph | all. off means edges are always straight line segments, graph means straight lines or splines according to the EDGEPATTERN attribute of each individual edge, all means edges are always drawn using splines. Details.
  • set(browser(string))
    To set name and path of the web browser. Details.
  • set(documentation(string))
    To set the URL prefix to the online documentation. Details.
  • set(print(string))
    To set command and options used for printing graphs in PostScript®. Details.
  • set(measure(measures))
    To set the measure unit used in the print dialog.
    measures ::= cm | inch. Details.
  • set(tooltip_delay(integer))
    To set the time delay between entering a node/edge with the mouse and appearance of the tooltip text, if available. The integer has to be between -1 and 3000. Details.
  • special(add_language(string))
    To add additional text translations from the given file prefix (i.e. file name without suffix ".menu") at run-time. The file contains key/value pairs used for internationalization. Details.
  • special(version)
    To ask for the version number of uDraw(Graph). Returns the new answer "version" with parameter "uDraw(Graph) 3.1" in this release. Details.
  • window(background(string))
    To set the base window background color to string. The string is a RGB hex-value format, e.g. "#406fa8". Details.

Next: New Command-Line Options and Environment Variables.