summaryrefslogtreecommitdiff
path: root/cad/plugins/NanoVision-1/src/Documentation/StructureGraphicsWindow-creation.sdx
blob: 4f9feb66e2a3d1cba79b53d274637b4d9a870d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<diagram>
<source><![CDATA[user:Actor
structureGraphicsTreeItem:StructureGraphicsTreeItem[a]
/structureWindow:StructureGraphicsWindow
graphicsManager:NXGraphicsManager
canonicalRenderingEngine:NXRenderingEngine[a]
/newEngine:NXOpenGLRenderingEngine
canonicalRendererPlugin:NXRendererPlugin[a]
/newPlugin:NXOpenGLRendererPlugin

user:structureGraphicsTreeItem.resultsTreeItemDoubleClicked()
structureGraphicsTreeItem:structureGraphicsTreeItem.showWindow()

[c:alt structureWindow exists]
    structureGraphicsTreeItem:(no-op)
--[else]
    structureGraphicsTreeItem:structureWindow.new(NULL,entityManager, graphicsManager)
    structureWindow:renderingEngine=newEngine=graphicsManager.newGraphicsInstance(this)
    graphicsManager:newEngine=canonicalRenderingEngine.newInstance(structureWindow)
    canonicalRenderingEngine:newEngine.new(structureWindow)
    [c:loop foreach render-style-code]
        graphicsManager:rendererPlugin=canonicalRendererPlugin.newInstance(newEngine)
        canonicalRendererPlugin:newPlugin.new(newEngine)
        graphicsManager:newEngine.setRenderer(render-style-code, plugin)
    [/c]
    graphicsManager:newEngine.initializePlugins()
    structureWindow:newEngine.move()
    structureWindow:newEngine.resize()
    structureGraphicsTreeItem:commandResult=structureWindow.addFrame(molSet)
    structureWindow:commandResult=newEngine.addFrame(molSet)
[/c]]]></source>
<configuration>
<property name="actorWidth" value="25"/>
<property name="arrowSize" value="6"/>
<property name="colorizeThreads" value="true"/>
<property name="destructorWidth" value="30"/>
<property family="Dialog" name="font" size="12" style="0"/>
<property name="fragmentMargin" value="8"/>
<property name="fragmentPadding" value="10"/>
<property name="fragmentTextPadding" value="3"/>
<property name="generateActorAnswers" value="false"/>
<property name="glue" value="10"/>
<property name="headHeight" value="35"/>
<property name="headLabelPadding" value="5"/>
<property name="headWidth" value="100"/>
<property name="initialSpace" value="10"/>
<property name="leftMargin" value="5"/>
<property name="lineWrap" value="false"/>
<property name="lowerMargin" value="5"/>
<property name="mainLifelineWidth" value="8"/>
<property name="messageLabelSpace" value="3"/>
<property name="messagePadding" value="6"/>
<property name="noteMargin" value="6"/>
<property name="notePadding" value="6"/>
<property name="opaqueMessageText" value="false"/>
<property name="rightMargin" value="5"/>
<property name="selfMessageHorizontalSpace" value="15"/>
<property name="separatorBottomMargin" value="8"/>
<property name="separatorTopMargin" value="15"/>
<property name="spaceBeforeActivation" value="2"/>
<property name="spaceBeforeAnswerToSelf" value="10"/>
<property name="spaceBeforeConstruction" value="6"/>
<property name="spaceBeforeSelfMessage" value="7"/>
<property name="subLifelineWidth" value="6"/>
<property name="threadNumbersVisible" value="false"/>
<property name="threaded" value="true"/>
<property name="upperMargin" value="5"/>
<property name="verticallySplit" value="true"/>
</configuration>
</diagram>