"; } ?> None

TORSCHE Scheduling
Toolbox for Matlab

Name

graphedit — launch user-friendly editor of graphs able to export and import graphs between GUI and Matlab workspace.

Synopsis


         GRAPHEDIT(GRAPH)
         GRAPHEDIT(GRAPH1,GRAPH2,...,GRAPHN)
         GRAPHEDIT(sKeyWord)
         GRAPHEDIT(KeyWord,value,...)
     h = GRAPHEDIT(...)

Description

Parameters:

GRAPH

object graph

sKeyWord

single Key word 'fit' - Fits graph to canvas; 'center' - Centres drown graph

KeyWord

Keyword

h

handle to the figure object (main Graphedit window)

Available keywords:

zoom

Sets zoom to ordered value (1 == 100%)

viewedgesnames

Views/hides edges names (value: 'on','off')

viewnodesnames

Views/hides nodes names (value: 'on','off')

viewedgesuserparams

Views/hides edges user parameters (value: 'on','off')

viewnodesuserparams

Views/hides nodes user parameters (value: 'on','off')

viewparts

Views parts of graphedit (value: 'toolbar1','toolbar2','tabs', 'sliders','mainmenu','all')

hideparts

Hides parts of graphedit (value: 'toolbar1','toolbar2','tabs', 'sliders','mainmenu','all')

position

Sets position and size of graphedit window (value: [x, y, width, height])

lockup

Forgids user any interactions (value: 'on','off')

viewtab

Views graph with ordered tab (value: tab's ordinal number)

closetab

Closes canvas with ordered tab (value: tabs ordinal numbers)

createtab

Creates new canvas (value: graph object)

drawintab

Draws ordered graph in actual viewed tab (value: graph object)

importbackground

Imports picture and put it in canvas (value: picture name, cData)

fitbackground

Fits background image to height or width (value: 'height','widht')

removebackground

Removes last background image

propertyeditor

Views/hides property editor (value: 'on','off')

librarybrowser

Views/hides library browser (value: 'on','off')

nodedesigner

Views/hides node designer (value: 'on','off')

fontsizenames

Sets font size of texts Name (value: numeric value)

fontsizeuserparams

Sets font size of texts UsaerParam (value: numeric value)

arrowsvisibility

Views/hides arrows (value: 'on','off')

saveconfiguration

Saves actual graphedit configuration (value: '', 'filename')

movenode

Moves ordered nodes to required position (value: list of nodes and positions (cell))

Example

 >>  graphedit(graph([4 3 inf; inf inf 5; 1 2 3],'Name','graph_1'))
 >>
 >>  graphedit('zoom',0.8,'viewedgesuserparams','off')
 >>
 >>  graphedit('movenode',{1, 100, 150; 2, 150, 150})
             % moves node 1 to position [100,150] and node 2 to [150,150]

See also

GRAPH/GRAPH

Webmaster - Jan Dvořák (2004 - 2024)