Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Christnowx
Gephi
提交
af722fae
G
Gephi
项目概览
Christnowx
/
Gephi
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gephi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
af722fae
编写于
5月 18, 2013
作者:
M
Mathieu Bastian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add dynamic attribute label in report panel
上级
5086cce8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
67 addition
and
11 deletion
+67
-11
modules/DesktopImport/src/main/java/org/gephi/desktop/importer/ReportPanel.form
...src/main/java/org/gephi/desktop/importer/ReportPanel.form
+35
-5
modules/DesktopImport/src/main/java/org/gephi/desktop/importer/ReportPanel.java
...src/main/java/org/gephi/desktop/importer/ReportPanel.java
+30
-6
modules/DesktopImport/src/main/resources/org/gephi/desktop/importer/Bundle.properties
...in/resources/org/gephi/desktop/importer/Bundle.properties
+2
-0
未找到文件。
modules/DesktopImport/src/main/java/org/gephi/desktop/importer/ReportPanel.form
浏览文件 @
af722fae
...
...
@@ -23,7 +23,7 @@
<Group
type=
"102"
attributes=
"0"
>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Component
id=
"tabbedPane"
alignment=
"0"
max=
"32767"
attributes=
"0"
/>
<Component
id=
"tabbedPane"
alignment=
"0"
pref=
"0"
max=
"32767"
attributes=
"0"
/>
<Group
type=
"102"
alignment=
"0"
attributes=
"0"
>
<Component
id=
"labelSrc"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
...
...
@@ -74,9 +74,10 @@
<Component
id=
"moreOptionsPanel"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"0"
max=
"-2"
attributes=
"0"
>
<Component
id=
"statsPanel"
m
ax=
"32767
"
attributes=
"0"
/>
<Component
id=
"processorPanel"
m
ax=
"32767
"
attributes=
"1"
/>
<Component
id=
"statsPanel"
m
in=
"-2"
pref=
"116"
max=
"-2
"
attributes=
"0"
/>
<Component
id=
"processorPanel"
m
in=
"-2"
pref=
"116"
max=
"-2
"
attributes=
"1"
/>
</Group>
<EmptySpace
min=
"-2"
pref=
"22"
max=
"-2"
attributes=
"0"
/>
</Group>
</Group>
</DimensionLayout>
...
...
@@ -117,6 +118,11 @@
<Layout
class=
"org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"
/>
<SubComponents>
<Component
class=
"org.netbeans.swing.outline.Outline"
name=
"issuesOutline"
>
<Properties>
<Property
name=
"preferredSize"
type=
"java.awt.Dimension"
editor=
"org.netbeans.beaninfo.editors.DimensionEditor"
>
<Dimension
value=
"[650, 0]"
/>
</Property>
</Properties>
</Component>
</SubComponents>
</Container>
...
...
@@ -255,7 +261,7 @@
</Properties>
<Constraints>
<Constraint
layoutClass=
"org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"
value=
"org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"
>
<GridBagConstraints
gridX=
"0"
gridY=
"
4
"
gridWidth=
"2"
gridHeight=
"1"
fill=
"1"
ipadX=
"0"
ipadY=
"0"
insetsTop=
"0"
insetsLeft=
"0"
insetsBottom=
"0"
insetsRight=
"0"
anchor=
"10"
weightX=
"0.0"
weightY=
"1.0"
/>
<GridBagConstraints
gridX=
"0"
gridY=
"
5
"
gridWidth=
"2"
gridHeight=
"1"
fill=
"1"
ipadX=
"0"
ipadY=
"0"
insetsTop=
"0"
insetsLeft=
"0"
insetsBottom=
"0"
insetsRight=
"0"
anchor=
"10"
weightX=
"0.0"
weightY=
"1.0"
/>
</Constraint>
</Constraints>
</Component>
...
...
@@ -267,7 +273,7 @@
</Properties>
<Constraints>
<Constraint
layoutClass=
"org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"
value=
"org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"
>
<GridBagConstraints
gridX=
"0"
gridY=
"
3
"
gridWidth=
"1"
gridHeight=
"1"
fill=
"0"
ipadX=
"0"
ipadY=
"0"
insetsTop=
"0"
insetsLeft=
"0"
insetsBottom=
"6"
insetsRight=
"0"
anchor=
"17"
weightX=
"0.0"
weightY=
"0.0"
/>
<GridBagConstraints
gridX=
"0"
gridY=
"
4
"
gridWidth=
"1"
gridHeight=
"1"
fill=
"0"
ipadX=
"0"
ipadY=
"0"
insetsTop=
"0"
insetsLeft=
"0"
insetsBottom=
"6"
insetsRight=
"0"
anchor=
"17"
weightX=
"0.0"
weightY=
"0.0"
/>
</Constraint>
</Constraints>
</Component>
...
...
@@ -277,6 +283,30 @@
<ResourceString
bundle=
"org/gephi/desktop/importer/Bundle.properties"
key=
"ReportPanel.multigraphLabel.text"
replaceFormat=
"org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"
/>
</Property>
</Properties>
<Constraints>
<Constraint
layoutClass=
"org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"
value=
"org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"
>
<GridBagConstraints
gridX=
"1"
gridY=
"4"
gridWidth=
"1"
gridHeight=
"1"
fill=
"2"
ipadX=
"0"
ipadY=
"0"
insetsTop=
"0"
insetsLeft=
"10"
insetsBottom=
"6"
insetsRight=
"0"
anchor=
"10"
weightX=
"1.0"
weightY=
"0.0"
/>
</Constraint>
</Constraints>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"labelDynamicAtts"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
editor=
"org.netbeans.modules.i18n.form.FormI18nStringEditor"
>
<ResourceString
bundle=
"org/gephi/desktop/importer/Bundle.properties"
key=
"ReportPanel.labelDynamicAtts.text"
replaceFormat=
"org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"
/>
</Property>
</Properties>
<Constraints>
<Constraint
layoutClass=
"org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"
value=
"org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"
>
<GridBagConstraints
gridX=
"0"
gridY=
"3"
gridWidth=
"1"
gridHeight=
"1"
fill=
"0"
ipadX=
"0"
ipadY=
"0"
insetsTop=
"0"
insetsLeft=
"0"
insetsBottom=
"6"
insetsRight=
"0"
anchor=
"17"
weightX=
"0.0"
weightY=
"0.0"
/>
</Constraint>
</Constraints>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"dynamicAttsLabel"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
editor=
"org.netbeans.modules.i18n.form.FormI18nStringEditor"
>
<ResourceString
bundle=
"org/gephi/desktop/importer/Bundle.properties"
key=
"ReportPanel.dynamicAttsLabel.text"
replaceFormat=
"org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"
/>
</Property>
</Properties>
<Constraints>
<Constraint
layoutClass=
"org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"
value=
"org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"
>
<GridBagConstraints
gridX=
"1"
gridY=
"3"
gridWidth=
"1"
gridHeight=
"1"
fill=
"2"
ipadX=
"0"
ipadY=
"0"
insetsTop=
"0"
insetsLeft=
"10"
insetsBottom=
"6"
insetsRight=
"0"
anchor=
"10"
weightX=
"1.0"
weightY=
"0.0"
/>
...
...
modules/DesktopImport/src/main/java/org/gephi/desktop/importer/ReportPanel.java
浏览文件 @
af722fae
...
...
@@ -387,6 +387,7 @@ public class ReportPanel extends javax.swing.JPanel {
String
yes
=
NbBundle
.
getMessage
(
getClass
(),
"ReportPanel.yes"
);
String
no
=
NbBundle
.
getMessage
(
getClass
(),
"ReportPanel.no"
);
dynamicLabel
.
setText
(
container
.
isDynamicGraph
()
?
yes
:
no
);
dynamicAttsLabel
.
setText
(
container
.
hasDynamicAttributes
()
?
yes
:
no
);
multigraphLabel
.
setText
(
container
.
isMultiGraph
()
?
yes
:
no
);
}
});
...
...
@@ -471,6 +472,8 @@ public class ReportPanel extends javax.swing.JPanel {
jLabel1
=
new
javax
.
swing
.
JLabel
();
labelMultiGraph
=
new
javax
.
swing
.
JLabel
();
multigraphLabel
=
new
javax
.
swing
.
JLabel
();
labelDynamicAtts
=
new
javax
.
swing
.
JLabel
();
dynamicAttsLabel
=
new
javax
.
swing
.
JLabel
();
moreOptionsLink
=
new
org
.
jdesktop
.
swingx
.
JXHyperlink
();
moreOptionsPanel
=
new
javax
.
swing
.
JPanel
();
autoscaleCheckbox
=
new
javax
.
swing
.
JCheckBox
();
...
...
@@ -483,6 +486,7 @@ public class ReportPanel extends javax.swing.JPanel {
sourceLabel
.
setText
(
org
.
openide
.
util
.
NbBundle
.
getMessage
(
ReportPanel
.
class
,
"ReportPanel.sourceLabel.text"
));
// NOI18N
issuesOutline
.
setPreferredSize
(
new
java
.
awt
.
Dimension
(
650
,
0
));
tab1ScrollPane
.
setViewportView
(
issuesOutline
);
tabbedPane
.
addTab
(
org
.
openide
.
util
.
NbBundle
.
getMessage
(
ReportPanel
.
class
,
"ReportPanel.tab1ScrollPane.TabConstraints.tabTitle"
),
tab1ScrollPane
);
// NOI18N
...
...
@@ -555,7 +559,7 @@ public class ReportPanel extends javax.swing.JPanel {
jLabel1
.
setText
(
org
.
openide
.
util
.
NbBundle
.
getMessage
(
ReportPanel
.
class
,
"ReportPanel.jLabel1.text"
));
// NOI18N
gridBagConstraints
=
new
java
.
awt
.
GridBagConstraints
();
gridBagConstraints
.
gridx
=
0
;
gridBagConstraints
.
gridy
=
4
;
gridBagConstraints
.
gridy
=
5
;
gridBagConstraints
.
gridwidth
=
2
;
gridBagConstraints
.
fill
=
java
.
awt
.
GridBagConstraints
.
BOTH
;
gridBagConstraints
.
weighty
=
1.0
;
...
...
@@ -564,7 +568,7 @@ public class ReportPanel extends javax.swing.JPanel {
labelMultiGraph
.
setText
(
org
.
openide
.
util
.
NbBundle
.
getMessage
(
ReportPanel
.
class
,
"ReportPanel.labelMultiGraph.text"
));
// NOI18N
gridBagConstraints
=
new
java
.
awt
.
GridBagConstraints
();
gridBagConstraints
.
gridx
=
0
;
gridBagConstraints
.
gridy
=
3
;
gridBagConstraints
.
gridy
=
4
;
gridBagConstraints
.
anchor
=
java
.
awt
.
GridBagConstraints
.
WEST
;
gridBagConstraints
.
insets
=
new
java
.
awt
.
Insets
(
0
,
0
,
6
,
0
);
statsPanel
.
add
(
labelMultiGraph
,
gridBagConstraints
);
...
...
@@ -572,12 +576,29 @@ public class ReportPanel extends javax.swing.JPanel {
multigraphLabel
.
setText
(
org
.
openide
.
util
.
NbBundle
.
getMessage
(
ReportPanel
.
class
,
"ReportPanel.multigraphLabel.text"
));
// NOI18N
gridBagConstraints
=
new
java
.
awt
.
GridBagConstraints
();
gridBagConstraints
.
gridx
=
1
;
gridBagConstraints
.
gridy
=
3
;
gridBagConstraints
.
gridy
=
4
;
gridBagConstraints
.
fill
=
java
.
awt
.
GridBagConstraints
.
HORIZONTAL
;
gridBagConstraints
.
weightx
=
1.0
;
gridBagConstraints
.
insets
=
new
java
.
awt
.
Insets
(
0
,
10
,
6
,
0
);
statsPanel
.
add
(
multigraphLabel
,
gridBagConstraints
);
labelDynamicAtts
.
setText
(
org
.
openide
.
util
.
NbBundle
.
getMessage
(
ReportPanel
.
class
,
"ReportPanel.labelDynamicAtts.text"
));
// NOI18N
gridBagConstraints
=
new
java
.
awt
.
GridBagConstraints
();
gridBagConstraints
.
gridx
=
0
;
gridBagConstraints
.
gridy
=
3
;
gridBagConstraints
.
anchor
=
java
.
awt
.
GridBagConstraints
.
WEST
;
gridBagConstraints
.
insets
=
new
java
.
awt
.
Insets
(
0
,
0
,
6
,
0
);
statsPanel
.
add
(
labelDynamicAtts
,
gridBagConstraints
);
dynamicAttsLabel
.
setText
(
org
.
openide
.
util
.
NbBundle
.
getMessage
(
ReportPanel
.
class
,
"ReportPanel.dynamicAttsLabel.text"
));
// NOI18N
gridBagConstraints
=
new
java
.
awt
.
GridBagConstraints
();
gridBagConstraints
.
gridx
=
1
;
gridBagConstraints
.
gridy
=
3
;
gridBagConstraints
.
fill
=
java
.
awt
.
GridBagConstraints
.
HORIZONTAL
;
gridBagConstraints
.
weightx
=
1.0
;
gridBagConstraints
.
insets
=
new
java
.
awt
.
Insets
(
0
,
10
,
6
,
0
);
statsPanel
.
add
(
dynamicAttsLabel
,
gridBagConstraints
);
moreOptionsLink
.
setText
(
org
.
openide
.
util
.
NbBundle
.
getMessage
(
ReportPanel
.
class
,
"ReportPanel.moreOptionsLink.text"
));
// NOI18N
moreOptionsLink
.
setClickedColor
(
new
java
.
awt
.
Color
(
0
,
51
,
255
));
...
...
@@ -637,7 +658,7 @@ public class ReportPanel extends javax.swing.JPanel {
.
addGroup
(
layout
.
createSequentialGroup
()
.
addContainerGap
()
.
addGroup
(
layout
.
createParallelGroup
(
javax
.
swing
.
GroupLayout
.
Alignment
.
LEADING
)
.
addComponent
(
tabbedPane
)
.
addComponent
(
tabbedPane
,
javax
.
swing
.
GroupLayout
.
PREFERRED_SIZE
,
0
,
Short
.
MAX_VALUE
)
.
addGroup
(
layout
.
createSequentialGroup
()
.
addComponent
(
labelSrc
)
.
addPreferredGap
(
javax
.
swing
.
LayoutStyle
.
ComponentPlacement
.
RELATED
)
...
...
@@ -677,13 +698,15 @@ public class ReportPanel extends javax.swing.JPanel {
.
addComponent
(
moreOptionsPanel
,
javax
.
swing
.
GroupLayout
.
PREFERRED_SIZE
,
javax
.
swing
.
GroupLayout
.
DEFAULT_SIZE
,
javax
.
swing
.
GroupLayout
.
PREFERRED_SIZE
)
.
addPreferredGap
(
javax
.
swing
.
LayoutStyle
.
ComponentPlacement
.
RELATED
)
.
addGroup
(
layout
.
createParallelGroup
(
javax
.
swing
.
GroupLayout
.
Alignment
.
LEADING
,
false
)
.
addComponent
(
statsPanel
,
javax
.
swing
.
GroupLayout
.
DEFAULT_SIZE
,
javax
.
swing
.
GroupLayout
.
DEFAULT_SIZE
,
Short
.
MAX_VALUE
)
.
addComponent
(
processorPanel
,
javax
.
swing
.
GroupLayout
.
DEFAULT_SIZE
,
javax
.
swing
.
GroupLayout
.
DEFAULT_SIZE
,
Short
.
MAX_VALUE
)))
.
addComponent
(
statsPanel
,
javax
.
swing
.
GroupLayout
.
PREFERRED_SIZE
,
116
,
javax
.
swing
.
GroupLayout
.
PREFERRED_SIZE
)
.
addComponent
(
processorPanel
,
javax
.
swing
.
GroupLayout
.
PREFERRED_SIZE
,
116
,
javax
.
swing
.
GroupLayout
.
PREFERRED_SIZE
))
.
addGap
(
22
,
22
,
22
))
);
}
// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private
javax
.
swing
.
JCheckBox
autoscaleCheckbox
;
private
javax
.
swing
.
JCheckBox
createMissingNodesCheckbox
;
private
javax
.
swing
.
JLabel
dynamicAttsLabel
;
private
javax
.
swing
.
JLabel
dynamicLabel
;
private
javax
.
swing
.
JLabel
edgeCountLabel
;
private
javax
.
swing
.
JComboBox
edgesMergeStrategyCombo
;
...
...
@@ -691,6 +714,7 @@ public class ReportPanel extends javax.swing.JPanel {
private
org
.
netbeans
.
swing
.
outline
.
Outline
issuesOutline
;
private
javax
.
swing
.
JLabel
jLabel1
;
private
javax
.
swing
.
JLabel
labelDynamic
;
private
javax
.
swing
.
JLabel
labelDynamicAtts
;
private
javax
.
swing
.
JLabel
labelEdgeCount
;
private
javax
.
swing
.
JLabel
labelGraphType
;
private
javax
.
swing
.
JLabel
labelMultiGraph
;
...
...
modules/DesktopImport/src/main/resources/org/gephi/desktop/importer/Bundle.properties
浏览文件 @
af722fae
...
...
@@ -55,3 +55,5 @@ ReportPanel.mergeStrategy.max=Maximum
ReportPanel.jLabel1.text
=
ReportPanel.labelMultiGraph.text=Multi Graph:
ReportPanel.multigraphLabel.text
=
ReportPanel.labelDynamicAtts.text=Dynamic Attributes:
ReportPanel.dynamicAttsLabel.text
=
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录