-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLegendBox.java
90 lines (78 loc) · 3.49 KB
/
LegendBox.java
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
/*
Copyright (C) Paul Falstad and Iain Sharp
Added to Version 4 by Vinyasi on 11/Mar/2018 23:11
// Mod.Begin
// Mod.End
This file is part of Vinyasi's port of CircuitJS1 specializing in
Surge Circuits exhibiting Pure Resonance. See, Prof. Arthur Mattuck
on YouTube and MIT Open Course Ware.
CircuitJS1 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
CircuitJS1 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with CircuitJS1. If not, see <http://www.gnu.org/licenses/>.
*/
package com.lushprojects.circuitjs1.client;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseDownHandler;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.google.gwt.event.dom.client.KeyPressHandler;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.dom.client.MouseOutHandler;
import com.google.gwt.event.dom.client.MouseWheelEvent;
import com.google.gwt.event.dom.client.MouseWheelHandler;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Button;
public class LegendBox extends PopupPanel {
VerticalPanel vp;
Button okButton;
LegendBox() {
super();
vp = new VerticalPanel();
setWidget(vp);
vp.setWidth("370px");
vp.add(new HTML("<p><span style='color:red'>The Following Symbols are Sometimes Placed Before the Name of a " +
"Circuit to Indicate ...</span></p>" +
"<p><b><big><big>Θ</big></big> 90° Phase Relation</b> – Amperage is Out of Phase with Voltage " +
"by Ninety Degrees.</p>" +
"<p><b><big><big><big><big>*</big></big></big></big> Mild Reciprocal Resistance</b> – Mild Change in either Amperage or Voltage " +
"on the Oscilloscope.</p>" +
// SNOWFLAKE UNICODE
// &# 10052 ;
// REMOVE THE TWO SPACES TO CREATE THIS SYMBOL
"<p><b><big>❄</big> Distinct Reciprocal Resistance</b> – Sharp Change in either Amperage or " +
"Voltage on the Oscilloscope.</p>" +
"<p><b><big><big><big><big>∞</big></big></big></big> Output Exceeds Input</b> – Overunity and Free " +
"Energy.</p>" +
"<p><b><big><big>#</big></big> Instantaneous KABOOM!</b> – Surge Circuits which Rise to Infinite Gain " +
"VERY Quickly.</p>" +
"<p><b><big>@</big> Circuit Information</b> – Button in the Upper Right-Hand Corner for some " +
"Circuits.</p>" +
"<p><b><big>%</big> Circuit Information</b> – With a Larger Window.</p>" +
"<br />"));
vp.add(okButton = new Button("CLOSE THIS WINDOW"));
okButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
close();
}
});
center();
show();
}
public void close() {
hide();
}
}