Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Christnowx
Gephi
提交
4afd75b3
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,发现更多精彩内容 >>
提交
4afd75b3
编写于
5月 27, 2013
作者:
M
Mathieu Bastian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add @Override annotation in DesktopPreview
上级
9bef9d46
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
45 addition
and
0 deletion
+45
-0
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/PreviewNode.java
.../src/main/java/org/gephi/desktop/preview/PreviewNode.java
+1
-0
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/PreviewSettingsTopComponent.java
...rg/gephi/desktop/preview/PreviewSettingsTopComponent.java
+5
-0
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/PreviewTopComponent.java
...n/java/org/gephi/desktop/preview/PreviewTopComponent.java
+9
-0
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/PreviewUIControllerImpl.java
...va/org/gephi/desktop/preview/PreviewUIControllerImpl.java
+17
-0
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/PreviewUIModelImpl.java
...in/java/org/gephi/desktop/preview/PreviewUIModelImpl.java
+4
-0
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/RendererManager.java
.../main/java/org/gephi/desktop/preview/RendererManager.java
+3
-0
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/propertyeditors/DependantColorPanel.java
.../desktop/preview/propertyeditors/DependantColorPanel.java
+2
-0
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/propertyeditors/DependantOriginalColorPanel.java
.../preview/propertyeditors/DependantOriginalColorPanel.java
+2
-0
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/propertyeditors/EdgeColorPanel.java
...gephi/desktop/preview/propertyeditors/EdgeColorPanel.java
+2
-0
未找到文件。
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/PreviewNode.java
浏览文件 @
4afd75b3
...
@@ -240,6 +240,7 @@ public class PreviewNode extends AbstractNode implements PropertyChangeListener
...
@@ -240,6 +240,7 @@ public class PreviewNode extends AbstractNode implements PropertyChangeListener
firePropertyChange
(
pce
.
getPropertyName
(),
pce
.
getOldValue
(),
pce
.
getNewValue
());
firePropertyChange
(
pce
.
getPropertyName
(),
pce
.
getOldValue
(),
pce
.
getNewValue
());
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
@Override
public
void
run
()
{
public
void
run
()
{
propertySheet
.
updateUI
();
propertySheet
.
updateUI
();
}
}
...
...
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/PreviewSettingsTopComponent.java
浏览文件 @
4afd75b3
...
@@ -130,6 +130,7 @@ public final class PreviewSettingsTopComponent extends TopComponent implements P
...
@@ -130,6 +130,7 @@ public final class PreviewSettingsTopComponent extends TopComponent implements P
tabbedPane
.
addChangeListener
(
new
ChangeListener
()
{
tabbedPane
.
addChangeListener
(
new
ChangeListener
()
{
@Override
public
void
stateChanged
(
ChangeEvent
e
)
{
public
void
stateChanged
(
ChangeEvent
e
)
{
if
(
tabbedPane
.
getSelectedComponent
()
==
propertySheet
)
{
if
(
tabbedPane
.
getSelectedComponent
()
==
propertySheet
)
{
propertySheet
.
setNodes
(
new
Node
[]{
new
PreviewNode
(
propertySheet
)});
propertySheet
.
setNodes
(
new
Node
[]{
new
PreviewNode
(
propertySheet
)});
...
@@ -145,6 +146,7 @@ public final class PreviewSettingsTopComponent extends TopComponent implements P
...
@@ -145,6 +146,7 @@ public final class PreviewSettingsTopComponent extends TopComponent implements P
NumberFormat
formatter
=
NumberFormat
.
getPercentInstance
();
NumberFormat
formatter
=
NumberFormat
.
getPercentInstance
();
@Override
public
void
stateChanged
(
ChangeEvent
e
)
{
public
void
stateChanged
(
ChangeEvent
e
)
{
float
val
=
ratioSlider
.
getValue
()
/
100
f
;
float
val
=
ratioSlider
.
getValue
()
/
100
f
;
if
(
val
==
0
f
)
{
if
(
val
==
0
f
)
{
...
@@ -160,6 +162,7 @@ public final class PreviewSettingsTopComponent extends TopComponent implements P
...
@@ -160,6 +162,7 @@ public final class PreviewSettingsTopComponent extends TopComponent implements P
//Presets
//Presets
presetComboBox
.
addItemListener
(
new
ItemListener
()
{
presetComboBox
.
addItemListener
(
new
ItemListener
()
{
@Override
public
void
itemStateChanged
(
ItemEvent
e
)
{
public
void
itemStateChanged
(
ItemEvent
e
)
{
PreviewUIController
pc
=
Lookup
.
getDefault
().
lookup
(
PreviewUIController
.
class
);
PreviewUIController
pc
=
Lookup
.
getDefault
().
lookup
(
PreviewUIController
.
class
);
PreviewUIModel
previewModel
=
pc
.
getModel
();
PreviewUIModel
previewModel
=
pc
.
getModel
();
...
@@ -175,6 +178,7 @@ public final class PreviewSettingsTopComponent extends TopComponent implements P
...
@@ -175,6 +178,7 @@ public final class PreviewSettingsTopComponent extends TopComponent implements P
//Export
//Export
svgExportButton
.
addActionListener
(
new
ActionListener
()
{
svgExportButton
.
addActionListener
(
new
ActionListener
()
{
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
public
void
actionPerformed
(
ActionEvent
e
)
{
VectorialFileExporterUI
ui
=
Lookup
.
getDefault
().
lookup
(
VectorialFileExporterUI
.
class
);
VectorialFileExporterUI
ui
=
Lookup
.
getDefault
().
lookup
(
VectorialFileExporterUI
.
class
);
ui
.
action
();
ui
.
action
();
...
@@ -192,6 +196,7 @@ public final class PreviewSettingsTopComponent extends TopComponent implements P
...
@@ -192,6 +196,7 @@ public final class PreviewSettingsTopComponent extends TopComponent implements P
}
}
}
}
@Override
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
if
(
evt
.
getPropertyName
().
equals
(
PreviewUIController
.
SELECT
))
{
if
(
evt
.
getPropertyName
().
equals
(
PreviewUIController
.
SELECT
))
{
PreviewUIModel
model
=
(
PreviewUIModel
)
evt
.
getNewValue
();
PreviewUIModel
model
=
(
PreviewUIModel
)
evt
.
getNewValue
();
...
...
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/PreviewTopComponent.java
浏览文件 @
4afd75b3
...
@@ -105,6 +105,7 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
...
@@ -105,6 +105,7 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
//background color
//background color
((
JColorButton
)
backgroundButton
).
addPropertyChangeListener
(
JColorButton
.
EVENT_COLOR
,
new
PropertyChangeListener
()
{
((
JColorButton
)
backgroundButton
).
addPropertyChangeListener
(
JColorButton
.
EVENT_COLOR
,
new
PropertyChangeListener
()
{
@Override
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
PreviewController
previewController
=
Lookup
.
getDefault
().
lookup
(
PreviewController
.
class
);
PreviewController
previewController
=
Lookup
.
getDefault
().
lookup
(
PreviewController
.
class
);
previewController
.
getModel
().
getProperties
().
putValue
(
PreviewProperty
.
BACKGROUND_COLOR
,
(
Color
)
evt
.
getNewValue
());
previewController
.
getModel
().
getProperties
().
putValue
(
PreviewProperty
.
BACKGROUND_COLOR
,
(
Color
)
evt
.
getNewValue
());
...
@@ -114,16 +115,19 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
...
@@ -114,16 +115,19 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
});
});
southBusyLabel
.
setVisible
(
false
);
southBusyLabel
.
setVisible
(
false
);
resetZoomButton
.
addActionListener
(
new
ActionListener
()
{
resetZoomButton
.
addActionListener
(
new
ActionListener
()
{
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
public
void
actionPerformed
(
ActionEvent
e
)
{
// target.resetZoom();
// target.resetZoom();
}
}
});
});
plusButton
.
addActionListener
(
new
ActionListener
()
{
plusButton
.
addActionListener
(
new
ActionListener
()
{
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
public
void
actionPerformed
(
ActionEvent
e
)
{
// target.zoomPlus();
// target.zoomPlus();
}
}
});
});
minusButton
.
addActionListener
(
new
ActionListener
()
{
minusButton
.
addActionListener
(
new
ActionListener
()
{
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
public
void
actionPerformed
(
ActionEvent
e
)
{
// target.zoomMinus();
// target.zoomMinus();
}
}
...
@@ -139,12 +143,14 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
...
@@ -139,12 +143,14 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
}
}
}
}
@Override
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
if
(
evt
.
getPropertyName
().
equals
(
PreviewUIController
.
SELECT
))
{
if
(
evt
.
getPropertyName
().
equals
(
PreviewUIController
.
SELECT
))
{
this
.
model
=
(
PreviewUIModel
)
evt
.
getNewValue
();
this
.
model
=
(
PreviewUIModel
)
evt
.
getNewValue
();
initTarget
(
model
);
initTarget
(
model
);
}
else
if
(
evt
.
getPropertyName
().
equals
(
PreviewUIController
.
REFRESHED
))
{
}
else
if
(
evt
.
getPropertyName
().
equals
(
PreviewUIController
.
REFRESHED
))
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
@Override
public
void
run
()
{
public
void
run
()
{
target
.
refresh
();
target
.
refresh
();
}
}
...
@@ -162,6 +168,7 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
...
@@ -162,6 +168,7 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
public
void
setRefresh
(
final
boolean
refresh
)
{
public
void
setRefresh
(
final
boolean
refresh
)
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
@Override
public
void
run
()
{
public
void
run
()
{
CardLayout
cl
=
(
CardLayout
)
previewPanel
.
getLayout
();
CardLayout
cl
=
(
CardLayout
)
previewPanel
.
getLayout
();
cl
.
show
(
previewPanel
,
refresh
?
"refreshCard"
:
"previewCard"
);
cl
.
show
(
previewPanel
,
refresh
?
"refreshCard"
:
"previewCard"
);
...
@@ -224,6 +231,7 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
...
@@ -224,6 +231,7 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
*/
*/
public
void
showBannerPanel
()
{
public
void
showBannerPanel
()
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
@Override
public
void
run
()
{
public
void
run
()
{
bannerPanel
.
setVisible
(
true
);
bannerPanel
.
setVisible
(
true
);
}
}
...
@@ -241,6 +249,7 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
...
@@ -241,6 +249,7 @@ public final class PreviewTopComponent extends TopComponent implements PropertyC
*/
*/
public
void
hideBannerPanel
()
{
public
void
hideBannerPanel
()
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
@Override
public
void
run
()
{
public
void
run
()
{
bannerPanel
.
setVisible
(
false
);
bannerPanel
.
setVisible
(
false
);
}
}
...
...
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/PreviewUIControllerImpl.java
浏览文件 @
4afd75b3
...
@@ -100,11 +100,13 @@ public class PreviewUIControllerImpl implements PreviewUIController {
...
@@ -100,11 +100,13 @@ public class PreviewUIControllerImpl implements PreviewUIController {
ProjectController
pc
=
Lookup
.
getDefault
().
lookup
(
ProjectController
.
class
);
ProjectController
pc
=
Lookup
.
getDefault
().
lookup
(
ProjectController
.
class
);
graphController
=
Lookup
.
getDefault
().
lookup
(
GraphController
.
class
);
graphController
=
Lookup
.
getDefault
().
lookup
(
GraphController
.
class
);
pc
.
addWorkspaceListener
(
new
WorkspaceListener
()
{
pc
.
addWorkspaceListener
(
new
WorkspaceListener
()
{
@Override
public
void
initialize
(
Workspace
workspace
)
{
public
void
initialize
(
Workspace
workspace
)
{
workspace
.
add
(
new
PreviewUIModelImpl
());
workspace
.
add
(
new
PreviewUIModelImpl
());
enableRefresh
();
enableRefresh
();
}
}
@Override
public
void
select
(
Workspace
workspace
)
{
public
void
select
(
Workspace
workspace
)
{
graphModel
=
graphController
.
getGraphModel
(
workspace
);
graphModel
=
graphController
.
getGraphModel
(
workspace
);
...
@@ -120,6 +122,7 @@ public class PreviewUIControllerImpl implements PreviewUIController {
...
@@ -120,6 +122,7 @@ public class PreviewUIControllerImpl implements PreviewUIController {
fireEvent
(
SELECT
,
model
);
fireEvent
(
SELECT
,
model
);
}
}
@Override
public
void
unselect
(
Workspace
workspace
)
{
public
void
unselect
(
Workspace
workspace
)
{
if
(
graphModel
!=
null
)
{
if
(
graphModel
!=
null
)
{
graphModel
=
null
;
graphModel
=
null
;
...
@@ -127,9 +130,11 @@ public class PreviewUIControllerImpl implements PreviewUIController {
...
@@ -127,9 +130,11 @@ public class PreviewUIControllerImpl implements PreviewUIController {
fireEvent
(
UNSELECT
,
model
);
fireEvent
(
UNSELECT
,
model
);
}
}
@Override
public
void
close
(
Workspace
workspace
)
{
public
void
close
(
Workspace
workspace
)
{
}
}
@Override
public
void
disable
()
{
public
void
disable
()
{
if
(
graphModel
!=
null
)
{
if
(
graphModel
!=
null
)
{
graphModel
=
null
;
graphModel
=
null
;
...
@@ -175,9 +180,11 @@ public class PreviewUIControllerImpl implements PreviewUIController {
...
@@ -175,9 +180,11 @@ public class PreviewUIControllerImpl implements PreviewUIController {
/**
/**
* Refreshes the preview applet.
* Refreshes the preview applet.
*/
*/
@Override
public
void
refreshPreview
()
{
public
void
refreshPreview
()
{
if
(
model
!=
null
)
{
if
(
model
!=
null
)
{
Thread
refreshThread
=
new
Thread
(
new
Runnable
()
{
Thread
refreshThread
=
new
Thread
(
new
Runnable
()
{
@Override
public
void
run
()
{
public
void
run
()
{
model
.
setRefreshing
(
true
);
model
.
setRefreshing
(
true
);
fireEvent
(
REFRESHING
,
true
);
fireEvent
(
REFRESHING
,
true
);
...
@@ -201,6 +208,7 @@ public class PreviewUIControllerImpl implements PreviewUIController {
...
@@ -201,6 +208,7 @@ public class PreviewUIControllerImpl implements PreviewUIController {
*/
*/
private
void
enableRefresh
()
{
private
void
enableRefresh
()
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
@Override
public
void
run
()
{
public
void
run
()
{
PreviewSettingsTopComponent
pstc
=
(
PreviewSettingsTopComponent
)
WindowManager
.
getDefault
().
findTopComponent
(
"PreviewSettingsTopComponent"
);
PreviewSettingsTopComponent
pstc
=
(
PreviewSettingsTopComponent
)
WindowManager
.
getDefault
().
findTopComponent
(
"PreviewSettingsTopComponent"
);
pstc
.
enableRefreshButton
();
pstc
.
enableRefreshButton
();
...
@@ -208,26 +216,31 @@ public class PreviewUIControllerImpl implements PreviewUIController {
...
@@ -208,26 +216,31 @@ public class PreviewUIControllerImpl implements PreviewUIController {
});
});
}
}
@Override
public
void
setVisibilityRatio
(
float
visibilityRatio
)
{
public
void
setVisibilityRatio
(
float
visibilityRatio
)
{
if
(
model
!=
null
)
{
if
(
model
!=
null
)
{
model
.
setVisibilityRatio
(
visibilityRatio
);
model
.
setVisibilityRatio
(
visibilityRatio
);
}
}
}
}
@Override
public
PreviewUIModel
getModel
()
{
public
PreviewUIModel
getModel
()
{
return
model
;
return
model
;
}
}
@Override
public
PreviewPreset
[]
getDefaultPresets
()
{
public
PreviewPreset
[]
getDefaultPresets
()
{
return
new
PreviewPreset
[]{
new
DefaultPreset
(),
new
DefaultCurved
(),
new
DefaultStraight
(),
new
TextOutline
(),
new
BlackBackground
(),
new
EdgesCustomColor
(),
new
TagCloud
()};
return
new
PreviewPreset
[]{
new
DefaultPreset
(),
new
DefaultCurved
(),
new
DefaultStraight
(),
new
TextOutline
(),
new
BlackBackground
(),
new
EdgesCustomColor
(),
new
TagCloud
()};
}
}
@Override
public
PreviewPreset
[]
getUserPresets
()
{
public
PreviewPreset
[]
getUserPresets
()
{
PreviewPreset
[]
presetsArray
=
presetUtils
.
getPresets
();
PreviewPreset
[]
presetsArray
=
presetUtils
.
getPresets
();
Arrays
.
sort
(
presetsArray
);
Arrays
.
sort
(
presetsArray
);
return
presetsArray
;
return
presetsArray
;
}
}
@Override
public
void
setCurrentPreset
(
PreviewPreset
preset
)
{
public
void
setCurrentPreset
(
PreviewPreset
preset
)
{
if
(
model
!=
null
)
{
if
(
model
!=
null
)
{
model
.
setCurrentPreset
(
preset
);
model
.
setCurrentPreset
(
preset
);
...
@@ -236,10 +249,12 @@ public class PreviewUIControllerImpl implements PreviewUIController {
...
@@ -236,10 +249,12 @@ public class PreviewUIControllerImpl implements PreviewUIController {
}
}
}
}
@Override
public
void
addPreset
(
PreviewPreset
preset
)
{
public
void
addPreset
(
PreviewPreset
preset
)
{
presetUtils
.
savePreset
(
preset
);
presetUtils
.
savePreset
(
preset
);
}
}
@Override
public
void
savePreset
(
String
name
)
{
public
void
savePreset
(
String
name
)
{
if
(
model
!=
null
)
{
if
(
model
!=
null
)
{
PreviewModel
previewModel
=
previewController
.
getModel
();
PreviewModel
previewModel
=
previewController
.
getModel
();
...
@@ -256,12 +271,14 @@ public class PreviewUIControllerImpl implements PreviewUIController {
...
@@ -256,12 +271,14 @@ public class PreviewUIControllerImpl implements PreviewUIController {
}
}
}
}
@Override
public
void
addPropertyChangeListener
(
PropertyChangeListener
listener
)
{
public
void
addPropertyChangeListener
(
PropertyChangeListener
listener
)
{
if
(!
listeners
.
contains
(
listener
))
{
if
(!
listeners
.
contains
(
listener
))
{
listeners
.
add
(
listener
);
listeners
.
add
(
listener
);
}
}
}
}
@Override
public
void
removePropertyChangeListener
(
PropertyChangeListener
listener
)
{
public
void
removePropertyChangeListener
(
PropertyChangeListener
listener
)
{
listeners
.
remove
(
listener
);
listeners
.
remove
(
listener
);
}
}
...
...
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/PreviewUIModelImpl.java
浏览文件 @
4afd75b3
...
@@ -61,10 +61,12 @@ public class PreviewUIModelImpl implements PreviewUIModel {
...
@@ -61,10 +61,12 @@ public class PreviewUIModelImpl implements PreviewUIModel {
currentPreset
=
new
DefaultPreset
();
currentPreset
=
new
DefaultPreset
();
}
}
@Override
public
PreviewPreset
getCurrentPreset
()
{
public
PreviewPreset
getCurrentPreset
()
{
return
currentPreset
;
return
currentPreset
;
}
}
@Override
public
float
getVisibilityRatio
()
{
public
float
getVisibilityRatio
()
{
return
visibilityRatio
;
return
visibilityRatio
;
}
}
...
@@ -77,10 +79,12 @@ public class PreviewUIModelImpl implements PreviewUIModel {
...
@@ -77,10 +79,12 @@ public class PreviewUIModelImpl implements PreviewUIModel {
currentPreset
=
preset
;
currentPreset
=
preset
;
}
}
@Override
public
boolean
isRefreshing
()
{
public
boolean
isRefreshing
()
{
return
refreshing
;
return
refreshing
;
}
}
@Override
public
boolean
isWorkspaceBarVisible
()
{
public
boolean
isWorkspaceBarVisible
()
{
return
workspaceBarVisible
;
return
workspaceBarVisible
;
}
}
...
...
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/RendererManager.java
浏览文件 @
4afd75b3
...
@@ -117,6 +117,7 @@ public class RendererManager extends javax.swing.JPanel implements PropertyChang
...
@@ -117,6 +117,7 @@ public class RendererManager extends javax.swing.JPanel implements PropertyChang
});
});
}
}
@Override
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
if
(
evt
.
getPropertyName
().
equals
(
PreviewUIController
.
SELECT
)
||
evt
.
getPropertyName
().
equals
(
PreviewUIController
.
UNSELECT
))
{
if
(
evt
.
getPropertyName
().
equals
(
PreviewUIController
.
SELECT
)
||
evt
.
getPropertyName
().
equals
(
PreviewUIController
.
UNSELECT
))
{
setup
();
setup
();
...
@@ -228,6 +229,7 @@ public class RendererManager extends javax.swing.JPanel implements PropertyChang
...
@@ -228,6 +229,7 @@ public class RendererManager extends javax.swing.JPanel implements PropertyChang
return
renderer
;
return
renderer
;
}
}
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
public
void
actionPerformed
(
ActionEvent
e
)
{
updateModelManagedRenderers
();
updateModelManagedRenderers
();
}
}
...
@@ -252,6 +254,7 @@ public class RendererManager extends javax.swing.JPanel implements PropertyChang
...
@@ -252,6 +254,7 @@ public class RendererManager extends javax.swing.JPanel implements PropertyChang
addActionListener
(
this
);
addActionListener
(
this
);
}
}
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
public
void
actionPerformed
(
ActionEvent
e
)
{
int
newIndex
=
up
?
index
+
1
:
index
-
1
;
int
newIndex
=
up
?
index
+
1
:
index
-
1
;
RendererCheckBox
oldItem
=
renderersList
.
get
(
newIndex
);
RendererCheckBox
oldItem
=
renderersList
.
get
(
newIndex
);
...
...
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/propertyeditors/DependantColorPanel.java
浏览文件 @
4afd75b3
...
@@ -60,6 +60,7 @@ public class DependantColorPanel extends javax.swing.JPanel implements ItemListe
...
@@ -60,6 +60,7 @@ public class DependantColorPanel extends javax.swing.JPanel implements ItemListe
initComponents
();
initComponents
();
colorButton
.
addPropertyChangeListener
(
JColorButton
.
EVENT_COLOR
,
new
PropertyChangeListener
()
{
colorButton
.
addPropertyChangeListener
(
JColorButton
.
EVENT_COLOR
,
new
PropertyChangeListener
()
{
@Override
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
Color
newColor
=
(
Color
)
evt
.
getNewValue
();
Color
newColor
=
(
Color
)
evt
.
getNewValue
();
propertyEditor
.
setValue
(
new
DependantColor
(
newColor
));
propertyEditor
.
setValue
(
new
DependantColor
(
newColor
));
...
@@ -70,6 +71,7 @@ public class DependantColorPanel extends javax.swing.JPanel implements ItemListe
...
@@ -70,6 +71,7 @@ public class DependantColorPanel extends javax.swing.JPanel implements ItemListe
customRadio
.
addItemListener
(
this
);
customRadio
.
addItemListener
(
this
);
}
}
@Override
public
void
itemStateChanged
(
ItemEvent
e
)
{
public
void
itemStateChanged
(
ItemEvent
e
)
{
if
(
customRadio
.
isSelected
())
{
if
(
customRadio
.
isSelected
())
{
colorButton
.
setEnabled
(
true
);
colorButton
.
setEnabled
(
true
);
...
...
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/propertyeditors/DependantOriginalColorPanel.java
浏览文件 @
4afd75b3
...
@@ -60,6 +60,7 @@ public class DependantOriginalColorPanel extends javax.swing.JPanel implements I
...
@@ -60,6 +60,7 @@ public class DependantOriginalColorPanel extends javax.swing.JPanel implements I
initComponents
();
initComponents
();
colorButton
.
addPropertyChangeListener
(
JColorButton
.
EVENT_COLOR
,
new
PropertyChangeListener
()
{
colorButton
.
addPropertyChangeListener
(
JColorButton
.
EVENT_COLOR
,
new
PropertyChangeListener
()
{
@Override
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
Color
newColor
=
(
Color
)
evt
.
getNewValue
();
Color
newColor
=
(
Color
)
evt
.
getNewValue
();
propertyEditor
.
setValue
(
new
DependantOriginalColor
(
newColor
));
propertyEditor
.
setValue
(
new
DependantOriginalColor
(
newColor
));
...
@@ -71,6 +72,7 @@ public class DependantOriginalColorPanel extends javax.swing.JPanel implements I
...
@@ -71,6 +72,7 @@ public class DependantOriginalColorPanel extends javax.swing.JPanel implements I
customRadio
.
addItemListener
(
this
);
customRadio
.
addItemListener
(
this
);
}
}
@Override
public
void
itemStateChanged
(
ItemEvent
e
)
{
public
void
itemStateChanged
(
ItemEvent
e
)
{
if
(
customRadio
.
isSelected
())
{
if
(
customRadio
.
isSelected
())
{
colorButton
.
setEnabled
(
true
);
colorButton
.
setEnabled
(
true
);
...
...
modules/DesktopPreview/src/main/java/org/gephi/desktop/preview/propertyeditors/EdgeColorPanel.java
浏览文件 @
4afd75b3
...
@@ -61,6 +61,7 @@ public class EdgeColorPanel extends javax.swing.JPanel implements ItemListener {
...
@@ -61,6 +61,7 @@ public class EdgeColorPanel extends javax.swing.JPanel implements ItemListener {
colorButton
.
addPropertyChangeListener
(
JColorButton
.
EVENT_COLOR
,
new
PropertyChangeListener
()
{
colorButton
.
addPropertyChangeListener
(
JColorButton
.
EVENT_COLOR
,
new
PropertyChangeListener
()
{
@Override
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
public
void
propertyChange
(
PropertyChangeEvent
evt
)
{
Color
newColor
=
(
Color
)
evt
.
getNewValue
();
Color
newColor
=
(
Color
)
evt
.
getNewValue
();
propertyEditor
.
setValue
(
new
EdgeColor
(
newColor
));
propertyEditor
.
setValue
(
new
EdgeColor
(
newColor
));
...
@@ -74,6 +75,7 @@ public class EdgeColorPanel extends javax.swing.JPanel implements ItemListener {
...
@@ -74,6 +75,7 @@ public class EdgeColorPanel extends javax.swing.JPanel implements ItemListener {
customRadio
.
addItemListener
(
this
);
customRadio
.
addItemListener
(
this
);
}
}
@Override
public
void
itemStateChanged
(
ItemEvent
e
)
{
public
void
itemStateChanged
(
ItemEvent
e
)
{
if
(
customRadio
.
isSelected
())
{
if
(
customRadio
.
isSelected
())
{
colorButton
.
setEnabled
(
true
);
colorButton
.
setEnabled
(
true
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录