Skip to content

Commit 57f1148

Browse files
author
yaoguangluo
committed
运维界面采用最新ETL 资源包
1 parent d01a662 commit 57f1148

File tree

13 files changed

+145
-154
lines changed

13 files changed

+145
-154
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
33
<classpathentry kind="src" path="src"/>
4-
<classpathentry kind="src" path="UI"/>
54
<classpathentry kind="src" path="plugin"/>
5+
<classpathentry kind="src" path="UI"/>
66
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
77
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
88
<classpathentry kind="output" path="bin/default"/>

UI/GUIBuild/GUIsample3.java

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,24 @@
4646
import org.LYG.GUI.nodeView.cacuString;
4747
import org.LYG.GUI.nodeView.nodeShow;
4848
import org.LYG.GUI.platForm.unicornJSplitPane;
49-
public class GUIsample3 extends JApplet implements MouseMotionListener, MouseListener,ItemListener,ActionListener,Runnable{
49+
public class GUIsample3 extends JApplet implements MouseMotionListener, MouseListener
50+
, ItemListener, ActionListener, Runnable{
5051
private static final long serialVersionUID = 5270675501794340912L;
5152
public GUIsample3() {
5253
//getContentPane().setBackground(new Color(218,112,214));
5354
getContentPane().setBackground(new Color(255,255,255));
5455
}
55-
public int w,h;
56-
int flash=0;
57-
int count=0;
56+
public int w, h;
57+
int flash = 0;
58+
int count = 0;
5859
String currentNodeName;
5960
int currentNodeID;
6061
LinkList thislist;
6162
LinkNode first;
62-
int currentx,currenty;
63-
int choose=0;
64-
int oldx,oldy;
65-
int newx,newy;
63+
int currentx, currenty;
64+
int choose = 0;
65+
int oldx, oldy;
66+
int newx, newy;
6667
int isOperation = 0;
6768
String treeNodeName;
6869
nodeShow nodeview;
@@ -76,19 +77,19 @@ public GUIsample3() {
7677
JScrollPane rightdownscrollPane;
7778
JScrollPane rightrightscrollPane;
7879
thisCanvas canvas;
79-
PopupMenu popupMenu1,nodeMenu,itemMenu;
80+
PopupMenu popupMenu1, nodeMenu, itemMenu;
8081
MenuItem menuItem1;
81-
MenuItem configre,run,show,dnode,dline;
82-
Thread thread,thread1;
82+
MenuItem configre, run, show, dnode, dline;
83+
Thread thread, thread1;
8384
public void run() {
8485
try {
8586
Thread.sleep(100);
8687
} catch (InterruptedException e1) {
8788
e1.printStackTrace();
8889
}
89-
nodeproject.setBounds(0, 0,leftsplitPane.getWidth(),leftsplitPane.getDividerLocation());
90+
nodeproject.setBounds(0, 0, leftsplitPane.getWidth(), leftsplitPane.getDividerLocation());
9091
nodeproject.jPanel.newimg = nodeproject.img.getScaledInstance(nodeproject.getWidth()
91-
,nodeproject.getHeight(),java.awt.Image.SCALE_SMOOTH );
92+
, nodeproject.getHeight(), java.awt.Image.SCALE_SMOOTH);
9293
nodeproject.jPanel.update(getGraphics());
9394
nodeproject.validate();
9495
while(true){
@@ -105,6 +106,7 @@ public void start(){
105106
thread.start();
106107
}
107108
}
109+
108110
public void stop() {
109111
}
110112

@@ -122,6 +124,7 @@ public void propertyChange(java.beans.PropertyChangeEvent evt) {
122124
}
123125
}
124126
});
127+
125128
mainsplitPane.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
126129
public void propertyChange(java.beans.PropertyChangeEvent evt) {
127130
if (evt.getPropertyName().equals(JSplitPane.DIVIDER_LOCATION_PROPERTY)) {
@@ -134,6 +137,7 @@ public void propertyChange(java.beans.PropertyChangeEvent evt) {
134137
}
135138
}
136139
});
140+
137141
righttopscrollPane.addComponentListener(new ComponentListener(){
138142
public void componentHidden(ComponentEvent arg0) {}
139143
public void componentMoved(ComponentEvent arg0) {}
@@ -142,14 +146,11 @@ public void componentResized(ComponentEvent arg0) {
142146
}
143147
public void componentShown(ComponentEvent arg0) {}
144148
});
149+
145150
getContentPane().addComponentListener(new ComponentListener(){
146-
147151
public void componentHidden(ComponentEvent arg0) {}
148-
149152
public void componentMoved(ComponentEvent arg0) {}
150-
151153
public void componentResized(ComponentEvent arg0) {
152-
// TODO Auto-generated method stub
153154
w=getContentPane().getWidth();
154155
h=getContentPane().getHeight();
155156
mainsplitPane.setBounds(10, 50, w-20, h-80);
@@ -165,7 +166,7 @@ public void componentResized(ComponentEvent arg0) {
165166
nodeproject.validate();
166167

167168
mainsplitPane.validate();
168-
System.out.println(w+"<>"+h);
169+
System.out.println(w + "<>" + h);
169170
}
170171

171172
public void componentShown(ComponentEvent arg0) {
@@ -224,17 +225,17 @@ public void actionPerformed(ActionEvent e) {
224225
node.thisface.thispanel.setSize(300, 300);//setBounds(0, 0, node.x+300,node.y+200);
225226
node.thisface.thispanel.setResizable(true);
226227
node.thisface.thispanel.setClosable(true);
227-
node.thisface.thispanel.jsp.setBounds(0, 0, node.thisface.thispanel.getWidth()-10
228-
, node.thisface.thispanel.getHeight()-45);
228+
node.thisface.thispanel.jsp.setBounds(0, 0, node.thisface.thispanel.getWidth() - 10
229+
, node.thisface.thispanel.getHeight() - 45);
229230
node.thisface.thispanel.jp.setPreferredSize(new Dimension(800,600));
230231
canvas.add(node.thisface.thispanel);
231232
node.thisface.thispanel.setVisible(true);
232233
node.thisface.thispanel.validate();
233234
new OSGI_chansfer(node,first);
234235
}
235236
while(node.next != null){
236-
node=node.next;
237-
if(node.name.equals(currentNodeName)&&node.ID==currentNodeID){
237+
node = node.next;
238+
if(node.name.equals(currentNodeName)&&node.ID == currentNodeID){
238239
try {
239240
node.thisface.config();
240241
} catch (IOException e1) {
@@ -273,9 +274,8 @@ public void actionPerformed(ActionEvent e) {
273274
} catch (InterruptedException e3) {
274275
e3.printStackTrace();
275276
}
276-
277277
}
278-
while(node.next!=null){
278+
while(null != node.next){
279279
node=node.next;
280280
if(node.name.equals(currentNodeName)&&node.ID==currentNodeID){
281281
try {
@@ -441,39 +441,39 @@ public void mouseEntered(MouseEvent arg0) {}
441441
public void mouseExited(MouseEvent arg0) {}
442442

443443
public void mousePressed(MouseEvent arg0) {
444-
isOperation = 1;
445-
//System.out.println(arg0.getX()+"|"+arg0.getY());
444+
isOperation=1;
445+
System.out.println(arg0.getX()+"|"+arg0.getY());
446446
oldx = arg0.getX();
447447
oldy = arg0.getY();
448-
currentx = arg0.getX();
449-
currenty = arg0.getY();
450-
currentNodeName = new ChooseCheck().chooseCheckname(first,arg0);
451-
currentNodeID = new ChooseCheck().chooseCheckid(first,arg0);
448+
currentx=arg0.getX();
449+
currenty=arg0.getY();
450+
currentNodeName=new ChooseCheck().chooseCheckname(first,arg0);
451+
currentNodeID=new ChooseCheck().chooseCheckid(first,arg0);
452452
}
453453

454454

455455
public void mouseReleased(MouseEvent arg0){
456-
isOperation = 0;
457-
currentx = arg0.getX();
458-
currenty = arg0.getY();
459-
first = new Sort().sort(first);
460-
LinkNode node = new LinkNode();
461-
node = first;
462-
if(node != null){
463-
if(node.rightchoose && !node.leftchoose){
464-
if(oldx == arg0.getX() && oldy == arg0.getY()){
456+
isOperation=0;
457+
currentx=arg0.getX();
458+
currenty=arg0.getY();
459+
first=new Sort().sort(first);
460+
LinkNode node=new LinkNode();
461+
node=first;
462+
if(node!=null){
463+
if(node.rightchoose&&!node.leftchoose){
464+
if(oldx==arg0.getX()&&oldy==arg0.getY()){
465465
nodeMenu.show(this, arg0.getX(), arg0.getY());
466466
}
467467
else{
468468
new CheckRange(first,node,arg0);
469469
}
470470
}
471471
node.setchoose(false);
472-
node.rightchoose = false;
473-
while(node.next != null){
474-
node = node.next;
475-
if(node.rightchoose && !node.leftchoose){
476-
if(oldx == arg0.getX()&&oldy==arg0.getY()){
472+
node.rightchoose=false;
473+
while(node.next!=null){
474+
node=node.next;
475+
if(node.rightchoose&&!node.leftchoose){
476+
if(oldx==arg0.getX()&&oldy==arg0.getY()){
477477
nodeMenu.show(this, arg0.getX(), arg0.getY());
478478
}
479479
else{
@@ -674,7 +674,7 @@ public void init(){
674674
this.resize(w,h);
675675
}
676676
private void CreatMap() throws IOException {
677-
w=1420;
677+
w=1400;
678678
h=800;
679679
getContentPane().setLayout(null);
680680
UIManager.put("SplitPaneUI","org.LYG.GUI.platForm.unicornSplitPaneUI");

UI/org/LYG/GUI/Flash/GUIsample3.java

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,23 @@
4646
import org.LYG.GUI.nodeView.cacuString;
4747
import org.LYG.GUI.nodeView.nodeShow;
4848
import org.LYG.GUI.platForm.unicornJSplitPane;
49-
public class GUIsample3 extends JApplet implements MouseMotionListener, MouseListener,ItemListener,ActionListener,Runnable{
49+
public class GUIsample3 extends JApplet implements MouseMotionListener, MouseListener, ItemListener, ActionListener, Runnable{
5050
private static final long serialVersionUID = 5270675501794340912L;
5151
public GUIsample3() {
5252
//getContentPane().setBackground(new Color(218,112,214));
5353
getContentPane().setBackground(new Color(255,255,255));
5454
}
55-
public int w,h;
56-
int flash=0;
57-
int count=0;
55+
public int w, h;
56+
int flash = 0;
57+
int count = 0;
5858
String currentNodeName;
5959
int currentNodeID;
6060
LinkList thislist;
6161
LinkNode first;
6262
int currentx,currenty;
63-
int choose=0;
64-
int oldx,oldy;
65-
int newx,newy;
63+
int choose = 0;
64+
int oldx, oldy;
65+
int newx, newy;
6666
String treeNodeName;
6767
nodeShow nodeview;
6868
nodeProject nodeproject;
@@ -86,8 +86,9 @@ public void run() {
8686
} catch (InterruptedException e1) {
8787
e1.printStackTrace();
8888
}
89-
nodeproject.setBounds(0, 0,leftsplitPane.getWidth(),leftsplitPane.getDividerLocation());
90-
nodeproject.jPanel.newimg = nodeproject.img.getScaledInstance(nodeproject.getWidth(),nodeproject.getHeight(),java.awt.Image.SCALE_SMOOTH );
89+
nodeproject.setBounds(0, 0, leftsplitPane.getWidth(), leftsplitPane.getDividerLocation());
90+
nodeproject.jPanel.newimg = nodeproject.img.getScaledInstance(nodeproject.getWidth()
91+
, nodeproject.getHeight(),java.awt.Image.SCALE_SMOOTH );
9192
nodeproject.jPanel.update(getGraphics());
9293
nodeproject.validate();
9394
while(true) {
@@ -114,10 +115,10 @@ public void propertyChange(java.beans.PropertyChangeEvent evt) {
114115
if (evt.getPropertyName().equals(JSplitPane.DIVIDER_LOCATION_PROPERTY)) {
115116
//action code
116117
nodeproject.setBounds(0, 0,leftsplitPane.getWidth(),leftsplitPane.getDividerLocation());
117-
nodeproject.jPanel.newimg = nodeproject.img.getScaledInstance(nodeproject.getWidth(),nodeproject.getHeight(),java.awt.Image.SCALE_SMOOTH );
118+
nodeproject.jPanel.newimg = nodeproject.img.getScaledInstance(nodeproject.getWidth()
119+
, nodeproject.getHeight(),java.awt.Image.SCALE_SMOOTH);
118120
nodeproject.jPanel.repaint();
119121
nodeproject.validate();
120-
121122
}
122123
}
123124
});
@@ -126,7 +127,8 @@ public void propertyChange(java.beans.PropertyChangeEvent evt) {
126127
if (evt.getPropertyName().equals(JSplitPane.DIVIDER_LOCATION_PROPERTY)) {
127128
//action code
128129
nodeproject.setBounds(0, 0,mainsplitPane.getDividerLocation(),leftsplitPane.getDividerLocation());
129-
nodeproject.jPanel.newimg = nodeproject.img.getScaledInstance(nodeproject.getWidth(),nodeproject.getHeight(),java.awt.Image.SCALE_SMOOTH );
130+
nodeproject.jPanel.newimg = nodeproject.img.getScaledInstance(nodeproject.getWidth()
131+
, nodeproject.getHeight(),java.awt.Image.SCALE_SMOOTH );
130132
nodeproject.jPanel.repaint();
131133
nodeproject.validate();
132134
}
@@ -152,7 +154,8 @@ public void componentResized(ComponentEvent arg0) {
152154
rightsplitPane.setDividerLocation(0.85);
153155
righttopsplitPane.setDividerLocation(0.9);
154156
nodeproject.setBounds(0, 0,mainsplitPane.getDividerLocation(),leftsplitPane.getDividerLocation());
155-
nodeproject.jPanel.newimg = nodeproject.img.getScaledInstance(nodeproject.getWidth(),nodeproject.getHeight(),java.awt.Image.SCALE_SMOOTH );
157+
nodeproject.jPanel.newimg = nodeproject.img.getScaledInstance(nodeproject.getWidth()
158+
, nodeproject.getHeight(),java.awt.Image.SCALE_SMOOTH );
156159
nodeproject.jPanel.repaint();
157160
nodeproject.validate();
158161
mainsplitPane.validate();
@@ -232,7 +235,8 @@ public void actionPerformed(ActionEvent e) {
232235
node.thisface.thispanel.setLocation(node.x, node.y);
233236
node.thisface.thispanel.setSize(300, 300);//setBounds(0, 0, node.x+300,node.y+200);
234237
node.thisface.thispanel.setResizable(true);
235-
node.thisface.thispanel.setClosable(true);node.thisface.thispanel.jsp.setBounds(0, 0, node.thisface.thispanel.getWidth()-10, node.thisface.thispanel.getHeight()-45);
238+
node.thisface.thispanel.setClosable(true);node.thisface.thispanel.jsp.setBounds(0, 0
239+
, node.thisface.thispanel.getWidth()-10, node.thisface.thispanel.getHeight()-45);
236240
node.thisface.thispanel.jp.setPreferredSize(new Dimension(800,600));
237241
canvas.add(node.thisface.thispanel);
238242
node.thisface.thispanel.setVisible(true);
@@ -297,7 +301,8 @@ public void actionPerformed(ActionEvent e) {
297301
node.thisface.thisview.setLocation(node.x, node.y);
298302
node.thisface.thisview.setSize(300, 300);//setBounds(0, 0, node.x+300,node.y+200);
299303
node.thisface.thisview.setResizable(true);
300-
node.thisface.thisview.setClosable(true);node.thisface.thisview.jsp.setBounds(0, 0, node.thisface.thispanel.getWidth()-10, node.thisface.thispanel.getHeight()-45);
304+
node.thisface.thisview.setClosable(true);node.thisface.thisview.jsp.setBounds(0, 0
305+
, node.thisface.thispanel.getWidth()-10, node.thisface.thispanel.getHeight()-45);
301306
node.thisface.thisview.jp.setPreferredSize(new Dimension(800,600));
302307
canvas.add(node.thisface.thisview);
303308
node.thisface.thisview.setVisible(true);
@@ -319,7 +324,8 @@ public void actionPerformed(ActionEvent e) {
319324
node.thisface.thisview.setLocation(node.x, node.y);
320325
node.thisface.thisview.setSize(300, 300);//setBounds(0, 0, node.x+300,node.y+200);
321326
node.thisface.thisview.setResizable(true);
322-
node.thisface.thisview.setClosable(true);node.thisface.thisview.jsp.setBounds(0, 0, node.thisface.thispanel.getWidth()-10, node.thisface.thispanel.getHeight()-45);
327+
node.thisface.thisview.setClosable(true);node.thisface.thisview.jsp.setBounds(0, 0
328+
, node.thisface.thispanel.getWidth()-10, node.thisface.thispanel.getHeight()-45);
323329
node.thisface.thisview.jp.setPreferredSize(new Dimension(800,600));
324330
canvas.add(node.thisface.thisview);
325331
node.thisface.thisview.setVisible(true);
@@ -502,7 +508,6 @@ public void mouseDragged(MouseEvent e) {
502508
}
503509
}
504510
public void mouseMoved(MouseEvent arg0) {
505-
// TODO Auto-generated method stub
506511
}
507512
public void update(){
508513
Graphics g=getGraphics();
@@ -631,7 +636,6 @@ public void init(){
631636
try {
632637
CreatMap();
633638
} catch (IOException e) {
634-
// TODO Auto-generated catch block
635639
e.printStackTrace();
636640
}
637641
Registrar();

UI/org/LYG/GUI/OSGI/objectInterface.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import java.awt.Image;
33
import java.io.FileNotFoundException;
44
import java.io.IOException;
5-
65
import javax.sound.sampled.UnsupportedAudioFileException;
76
import javax.swing.ImageIcon;
87
public class objectInterface implements Cloneable{

0 commit comments

Comments
 (0)