Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
7246ce3a
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7246ce3a
编写于
2月 27, 2010
作者:
R
rupashka
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6929298: The SynthSliderUI#calculateTickRect method should be removed
Reviewed-by: peterz
上级
70f12748
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
3 addition
and
39 deletion
+3
-39
jdk/src/share/classes/javax/swing/plaf/synth/SynthSliderUI.java
...c/share/classes/javax/swing/plaf/synth/SynthSliderUI.java
+3
-39
未找到文件。
jdk/src/share/classes/javax/swing/plaf/synth/SynthSliderUI.java
浏览文件 @
7246ce3a
...
@@ -43,7 +43,7 @@ import sun.swing.SwingUtilities2;
...
@@ -43,7 +43,7 @@ import sun.swing.SwingUtilities2;
/**
/**
* Provides the Synth L&F UI delegate for
* Provides the Synth L&F UI delegate for
* {@link
javax.swing.
JSlider}.
* {@link JSlider}.
*
*
* @author Joshua Outwater
* @author Joshua Outwater
* @since 1.7
* @since 1.7
...
@@ -65,7 +65,7 @@ public class SynthSliderUI extends BasicSliderUI
...
@@ -65,7 +65,7 @@ public class SynthSliderUI extends BasicSliderUI
* the slider has not changed sizes since being last layed out. If necessary
* the slider has not changed sizes since being last layed out. If necessary
* we recompute the layout.
* we recompute the layout.
*/
*/
private
Dimension
lastSize
=
null
;
private
Dimension
lastSize
;
private
int
trackHeight
;
private
int
trackHeight
;
private
int
trackBorder
;
private
int
trackBorder
;
...
@@ -339,6 +339,7 @@ public class SynthSliderUI extends BasicSliderUI
...
@@ -339,6 +339,7 @@ public class SynthSliderUI extends BasicSliderUI
*/
*/
@Override
@Override
protected
void
calculateGeometry
()
{
protected
void
calculateGeometry
()
{
calculateThumbSize
();
layout
();
layout
();
calculateThumbLocation
();
calculateThumbLocation
();
}
}
...
@@ -350,10 +351,6 @@ public class SynthSliderUI extends BasicSliderUI
...
@@ -350,10 +351,6 @@ public class SynthSliderUI extends BasicSliderUI
SynthContext
context
=
getContext
(
slider
);
SynthContext
context
=
getContext
(
slider
);
SynthGraphicsUtils
synthGraphics
=
style
.
getGraphicsUtils
(
context
);
SynthGraphicsUtils
synthGraphics
=
style
.
getGraphicsUtils
(
context
);
// Set the thumb size.
Dimension
size
=
getThumbSize
();
thumbRect
.
setSize
(
size
.
width
,
size
.
height
);
// Get the insets for the track.
// Get the insets for the track.
Insets
trackInsets
=
new
Insets
(
0
,
0
,
0
,
0
);
Insets
trackInsets
=
new
Insets
(
0
,
0
,
0
,
0
);
SynthContext
trackContext
=
getContext
(
slider
,
Region
.
SLIDER_TRACK
);
SynthContext
trackContext
=
getContext
(
slider
,
Region
.
SLIDER_TRACK
);
...
@@ -553,39 +550,6 @@ public class SynthSliderUI extends BasicSliderUI
...
@@ -553,39 +550,6 @@ public class SynthSliderUI extends BasicSliderUI
}
}
}
}
/**
* @inheritDoc
*/
@Override
protected
void
calculateTickRect
()
{
if
(
slider
.
getOrientation
()
==
JSlider
.
HORIZONTAL
)
{
tickRect
.
x
=
trackRect
.
x
;
tickRect
.
y
=
trackRect
.
y
+
trackRect
.
height
+
2
+
getTickLength
();
tickRect
.
width
=
trackRect
.
width
;
tickRect
.
height
=
getTickLength
();
if
(!
slider
.
getPaintTicks
())
{
--
tickRect
.
y
;
tickRect
.
height
=
0
;
}
}
else
{
if
(
SynthLookAndFeel
.
isLeftToRight
(
slider
))
{
tickRect
.
x
=
trackRect
.
x
+
trackRect
.
width
;
tickRect
.
width
=
getTickLength
();
}
else
{
tickRect
.
width
=
getTickLength
();
tickRect
.
x
=
trackRect
.
x
-
tickRect
.
width
;
}
tickRect
.
y
=
trackRect
.
y
;
tickRect
.
height
=
trackRect
.
height
;
if
(!
slider
.
getPaintTicks
())
{
--
tickRect
.
x
;
tickRect
.
width
=
0
;
}
}
}
/**
/**
* @inheritDoc
* @inheritDoc
*/
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录