Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
8b27ecad
Commit
8b27ecad
authored
Jul 19, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图形化灰度发布功能
parent
9a78608b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
8 deletions
+32
-8
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
+32
-8
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
View file @
8b27ecad
...
...
@@ -926,16 +926,34 @@ public class ServiceTopology extends AbstractTopology {
public
LayoutDialog
()
{
super
(
HandleManager
.
getFrame
(
ServiceTopology
.
this
),
SwingLocale
.
getString
(
"layout"
),
new
Dimension
(
500
,
330
),
true
,
false
,
true
);
initializeGroupComponents
();
initializeNodeComponents
();
JPanel
panel
=
new
JPanel
();
panel
.
setLayout
(
new
FiledLayout
(
FiledLayout
.
COLUMN
,
FiledLayout
.
FULL
,
5
));
panel
.
add
(
createGroupPanel
());
panel
.
add
(
createNodePanel
());
setOption
(
YES_NO_OPTION
);
setIcon
(
IconFactory
.
getSwingIcon
(
"banner/navigator.png"
));
setContent
(
panel
);
}
private
void
initializeGroupComponents
()
{
groupStartXTextField
=
new
JNumberTextField
(
4
,
0
,
0
,
10000
);
groupStartYTextField
=
new
JNumberTextField
(
4
,
0
,
0
,
10000
);
groupHorizontalGapTextField
=
new
JNumberTextField
(
4
,
0
,
0
,
10000
);
groupVerticalGapTextField
=
new
JNumberTextField
(
4
,
0
,
0
,
10000
);
}
private
void
initializeNodeComponents
()
{
nodeStartXTextField
=
new
JNumberTextField
(
4
,
0
,
0
,
10000
);
nodeStartYTextField
=
new
JNumberTextField
(
4
,
0
,
0
,
10000
);
nodeHorizontalGapTextField
=
new
JNumberTextField
(
4
,
0
,
0
,
10000
);
nodeVerticalGapTextField
=
new
JNumberTextField
(
4
,
0
,
0
,
10000
);
}
private
JPanel
createGroupPanel
()
{
double
[][]
size
=
{
{
100
,
TableLayout
.
FILL
,
100
,
TableLayout
.
FILL
},
{
TableLayout
.
PREFERRED
,
TableLayout
.
PREFERRED
}
...
...
@@ -957,6 +975,19 @@ public class ServiceTopology extends AbstractTopology {
groupPanel
.
add
(
new
JBasicLabel
(
ConsoleLocale
.
getString
(
"vertical_gap"
)),
"2, 1"
);
groupPanel
.
add
(
groupVerticalGapTextField
,
"3, 1"
);
return
groupPanel
;
}
private
JPanel
createNodePanel
()
{
double
[][]
size
=
{
{
100
,
TableLayout
.
FILL
,
100
,
TableLayout
.
FILL
},
{
TableLayout
.
PREFERRED
,
TableLayout
.
PREFERRED
}
};
TableLayout
tableLayout
=
new
TableLayout
(
size
);
tableLayout
.
setHGap
(
5
);
tableLayout
.
setVGap
(
5
);
JPanel
nodePanel
=
new
JPanel
();
nodePanel
.
setLayout
(
tableLayout
);
nodePanel
.
setBorder
(
UIUtil
.
createTitledBorder
(
ConsoleLocale
.
getString
(
"node_layout"
)));
...
...
@@ -969,14 +1000,7 @@ public class ServiceTopology extends AbstractTopology {
nodePanel
.
add
(
new
JBasicLabel
(
ConsoleLocale
.
getString
(
"vertical_gap"
)),
"2, 1"
);
nodePanel
.
add
(
nodeVerticalGapTextField
,
"3, 1"
);
JPanel
panel
=
new
JPanel
();
panel
.
setLayout
(
new
FiledLayout
(
FiledLayout
.
COLUMN
,
FiledLayout
.
FULL
,
5
));
panel
.
add
(
groupPanel
);
panel
.
add
(
nodePanel
);
setOption
(
YES_NO_OPTION
);
setIcon
(
IconFactory
.
getSwingIcon
(
"banner/navigator.png"
));
setContent
(
panel
);
return
nodePanel
;
}
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment