Next: , Previous: Diagram manipulation, Up: The Diagram Package


4.2.3 Object manipulation

— Function: diagram::exist_object DNAME ONAME

Return 1 if ONAME is an existing object into DNAME.

— Function: diagram::set_object DNAME ONAME NEWOBJ

Set NEWOBJ as the new object structure for ONAME on DNAME.

— Function: diagram::get_object DNAME ONAME

Return the object structure for ONAME on DNAME.

— Function: diagram::create_object DNAME ONAME OTYPE LOCATION

Creates a new object on the diagram named ONAME, of type OTYPE at the point LOCATION.

— Function: diagram::remove_object DNAME ONAME

Remove ONAME from the DNAME diagram.

— Function: diagram::set_object_location DNAME ONAME LOCATION

Set LOCATION as the new location point of ONAME on DNAME.

— Function: diagram::get_object_location DNAME ONAME

Return the location of ONAME on DNAME.

— Function: diagram::set_object_window DNAME ONAME WINDOW

Set WINDOW as the new window for ONAME on DNAME.

— Function: diagram::get_object_window DNAME ONAME

Get the window from ONAME on DNAME.

— Function: diagram::get_object_type DNAME ONAME

Return the type of ONAME in DNAME.

— Function: diagram::set_object_attribute DNAME ONAME ANAME VALUE

Set VALUE as the new value for ANAME on ONAME in DNAME.

— Function: diagram::get_object_attribute DNAME ONAME ANAME

Return the value of ANAME from ONAME in DNAME.

— Function: diagram::set_object_attributes DNAME ONAME ATTRIBUTES

Set ATTRIBUTES as the new attribute set for ONAME on DNAME.

— Function: diagram::get_object_attributes DNAME ONAME

Return the attributes structure from ONAME on DNAME.

— Function: diagram::get_object_connectors DNAME ONAME

Return a list with the name of all the connectors that leads to ONAME on DNAME.

— Function: diagram::set_object_connectors DNAME ONAME CNNS

Set CNNS as the new connector list for OBJECT.

— Function: diagram::object_connector_exist DNAME ONAME CNN

Return 1 if CNN is on the ONAMEs connector list. Return 0 else.

— Function: diagram::add_connector_to_object DNAME ONAME CNN

Add CNN to the ONAMEs connector list.

— Function: diagram::remove_connector_from_object DNAME ONAME CNN

Remove CNN from the ONAMEs connector list.

— Function: diagram::update_object DNAME ONAME

Update the geometry and the connectors of ONAME.