-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSampleA-code1.html
140 lines (124 loc) · 5.32 KB
/
SampleA-code1.html
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>SampleA-1</title>
<meta charset="UTF-8">
<!script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js?lang=css&skin=sunburst"><!/script>
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
<link rel="stylesheet" type="text/css" href="./prettify.css">
<!link rel="stylesheet" type="text/css" href="./float.css">
</head>
<body>
<!div class="sequence_float">
<!pre class="prettyprint linenums lang-java call_float">
<pre class="prettyprint linenums lang-java">
public class FigModifyingModeImpl extends ModeImpl implements FigModifyingMode {
protected Editor editor;
}
public class ModeSelect extends FigModifyingModeImpl {
public void mousePressed(MouseEvent me) {
SelectionManager sm = editor.<a href="#getSelectionManager" name="rgetSelectionManager">getSelectionManager()</a>;
Fig underMouse = editor.hit(selectAnchor);
sm.<a href="#select" name ="rselect">select(underMouse)</a>;
}
}
</pre>
<pre class="prettyprint linenums lang-java">
public class Editor implements Serializable, MouseListener,
MouseMotionListener, KeyListener {
protected SelectionManager _selectionManager = new SelectionManager(this);
public SelectionManager <a name="getSelectionManager">getSelectionManager()</a> {
return _selectionManager;
} <a href="#rgetSelectionManager">//return to the caller</a>
}
</pre>
<!div class="arrow call_float"><!/div>
<!pre class="prettyprint linenums lang-java">
<pre class="prettyprint linenums">
public class SelectionManager implements Serializable, KeyListener,
MouseListener, MouseMotionListener {
private List<Selection> selections = new ArrayList<Selection>();
protected void <a name="addFig">addFig(Fig f)</a> {
selections.add(<a href="#makeSelectionFor" name="rmakeSelectionFor">makeSelectionFor(f)</a>);
}<a href="#raddFig"> //return to the caller</a>
public void <a name="select">select(Fig f)</a> {
<a href="#addFig" name="raddFig">addFig(f)</a>;
}<a href="#rselect">//return to the caller</a>
public static Selection <a name="makeSelectionFor">makeSelectionFor(Fig f)</a> {
Selection customSelection = f.<a href="#makeSelection" name="rmakeSelection">makeSelection()</a>;
return customSelection;
} <a href="#rmakeSelectionFor">//return to the caller</a>
}
</pre>
<pre class="prettyprint linenums lang-java">
public class FigClass extends FigClassifierBox {
public Selection <a name="makeSelection">makeSelection()</a> {
return new <a href="#SelectionClass1" name="rSelectionClass1">SelectionClass(this)</a>;
} <a href="#rmakeSelection">//return to the caller</a>
}
public abstract class FigClassifierBox extends FigCompartmentBox {
}
public abstract class FigCompartmentBox extends FigNodeModelElement {
}
public abstract class FigNodeModelElement
extends FigNode
implements
VetoableChangeListener,
DelayedVChangeListener,
MouseListener,
KeyListener,
PropertyChangeListener,
PathContainer,
ArgoDiagramAppearanceEventListener,
ArgoNotationEventListener,
NotationRenderer,
Highlightable,
IItemUID,
Clarifiable,
ArgoFig,
StereotypeStyled,
DiagramElement,
Owned {
}
public class FigNode extends FigGroup implements Highlightable, GraphNode, MouseListener {
}
public class FigGroup extends Fig {
}
</pre>
<pre class="prettyprint linenums lang-java">
public class SelectionClass extends SelectionClassifierBox {
public <a name="SelectionClass1">SelectionClass(Fig f)</a> {
<a href="#SelectionClass2" name="rSelectionClass2">super(f)</a>;
} <a href="#rSelectionClass1">//return to the caller</a>
}
public abstract class SelectionClassifierBox extends
SelectionNodeClarifiers2 {
public <a name="SelectionClass2">SelectionClassifierBox(Fig f)</a> {
<a href="#SelectionClass3" name="rSelectionClass3">super(f)</a>;
} <a href="#rSelectionClass2">//return to the caller</a>
}
public abstract class SelectionNodeClarifiers2 extends SelectionButtons {
public <a name="SelectionClass3">SelectionNodeClarifiers2(Fig f)</a> {
<a href="#SelectionClass4" name="rSelectionClass4">super(f)</a>;
} <a href="#rSelectionClass3">//return to the caller</a>
}
public abstract class SelectionButtons extends SelectionResize {
public <a name="SelectionClass4">SelectionButtons(Fig f)</a> {
<a href="#SelectionClass5" name="rSelectionClass5">super(f)</a>;
} <a href="#rSelectionClass4">//return to the caller</a>
}
public class SelectionResize extends Selection {
public <a name="SelectionClass5">SelectionResize(Fig f)</a> {
<a href="#SelectionClass6" name="rSelectionClass6">super(f)</a>;
} <a href="#rSelectionClass5">//return to the caller</a>
}
public abstract class Selection implements Serializable, MouseListener,
MouseMotionListener, KeyListener {
private Fig content;
public <a name="SelectionClass6">Selection(Fig f)</a> {
content = f;
} <a href="#rSelectionClass6">//return to the caller</a> {
}
</pre>
<p style="margin-bottom:100em;"></p>
</body>