Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
bd66ded6
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bd66ded6
编写于
10月 14, 2013
作者:
M
malenkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7016396: (spec) JCK test mentioned in 6735293 is still failing
Reviewed-by: alexsch
上级
cece1496
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
46 addition
and
9 deletion
+46
-9
src/share/classes/javax/swing/plaf/basic/BasicTextUI.java
src/share/classes/javax/swing/plaf/basic/BasicTextUI.java
+9
-1
src/share/classes/javax/swing/text/AsyncBoxView.java
src/share/classes/javax/swing/text/AsyncBoxView.java
+10
-2
src/share/classes/javax/swing/text/CompositeView.java
src/share/classes/javax/swing/text/CompositeView.java
+10
-2
src/share/classes/javax/swing/text/GlyphView.java
src/share/classes/javax/swing/text/GlyphView.java
+10
-2
src/share/classes/javax/swing/text/View.java
src/share/classes/javax/swing/text/View.java
+7
-2
未找到文件。
src/share/classes/javax/swing/plaf/basic/BasicTextUI.java
浏览文件 @
bd66ded6
...
...
@@ -1560,6 +1560,10 @@ public abstract class BasicTextUI extends TextUI implements ViewFactory {
* location that one might place a caret. Some views may not be visible,
* they might not be in the same order found in the model, or they just
* might not allow access to some of the locations in the model.
* This method enables specifying a position to convert
* within the range of >=0. If the value is -1, a position
* will be calculated automatically. If the value < -1,
* the {@code BadLocationException} will be thrown.
*
* @param pos the position to convert >= 0
* @param a the allocated region to render into
...
...
@@ -1569,13 +1573,17 @@ public abstract class BasicTextUI extends TextUI implements ViewFactory {
* SwingConstants.NORTH, or SwingConstants.SOUTH.
* @return the location within the model that best represents the next
* location visual position.
* @exception BadLocationException
* @exception BadLocationException the given position is not a valid
* position within the document
* @exception IllegalArgumentException for an invalid direction
*/
public
int
getNextVisualPositionFrom
(
int
pos
,
Position
.
Bias
b
,
Shape
a
,
int
direction
,
Position
.
Bias
[]
biasRet
)
throws
BadLocationException
{
if
(
pos
<
-
1
)
{
throw
new
BadLocationException
(
"invalid position"
,
pos
);
}
if
(
view
!=
null
)
{
int
nextPos
=
view
.
getNextVisualPositionFrom
(
pos
,
b
,
a
,
direction
,
biasRet
);
...
...
src/share/classes/javax/swing/text/AsyncBoxView.java
浏览文件 @
bd66ded6
...
...
@@ -827,8 +827,12 @@ public class AsyncBoxView extends View {
* location that one might place a caret. Some views may not be visible,
* they might not be in the same order found in the model, or they just
* might not allow access to some of the locations in the model.
* This method enables specifying a position to convert
* within the range of >=0. If the value is -1, a position
* will be calculated automatically. If the value < -1,
* the {@code BadLocationException} will be thrown.
*
* @param pos the position to convert
>= 0
* @param pos the position to convert
* @param a the allocated region to render into
* @param direction the direction from the current position that can
* be thought of as the arrow keys typically found on a keyboard;
...
...
@@ -842,13 +846,17 @@ public class AsyncBoxView extends View {
* @param biasRet an array contain the bias that was checked
* @return the location within the model that best represents the next
* location visual position
* @exception BadLocationException
* @exception BadLocationException the given position is not a valid
* position within the document
* @exception IllegalArgumentException if <code>direction</code> is invalid
*/
public
int
getNextVisualPositionFrom
(
int
pos
,
Position
.
Bias
b
,
Shape
a
,
int
direction
,
Position
.
Bias
[]
biasRet
)
throws
BadLocationException
{
if
(
pos
<
-
1
)
{
throw
new
BadLocationException
(
"invalid position"
,
pos
);
}
return
Utilities
.
getNextVisualPositionFrom
(
this
,
pos
,
b
,
a
,
direction
,
biasRet
);
}
...
...
src/share/classes/javax/swing/text/CompositeView.java
浏览文件 @
bd66ded6
...
...
@@ -435,8 +435,12 @@ public abstract class CompositeView extends View {
* might not allow access to some of the locations in the model.
* This is a convenience method for {@link #getNextNorthSouthVisualPositionFrom}
* and {@link #getNextEastWestVisualPositionFrom}.
* This method enables specifying a position to convert
* within the range of >=0. If the value is -1, a position
* will be calculated automatically. If the value < -1,
* the {@code BadLocationException} will be thrown.
*
* @param pos the position to convert
>= 0
* @param pos the position to convert
* @param b a bias value of either <code>Position.Bias.Forward</code>
* or <code>Position.Bias.Backward</code>
* @param a the allocated region to render into
...
...
@@ -452,12 +456,16 @@ public abstract class CompositeView extends View {
* @param biasRet an array containing the bias that was checked
* @return the location within the model that best represents the next
* location visual position
* @exception BadLocationException
* @exception BadLocationException the given position is not a valid
* position within the document
* @exception IllegalArgumentException if <code>direction</code> is invalid
*/
public
int
getNextVisualPositionFrom
(
int
pos
,
Position
.
Bias
b
,
Shape
a
,
int
direction
,
Position
.
Bias
[]
biasRet
)
throws
BadLocationException
{
if
(
pos
<
-
1
)
{
throw
new
BadLocationException
(
"invalid position"
,
pos
);
}
Rectangle
alloc
=
getInsideAllocation
(
a
);
switch
(
direction
)
{
...
...
src/share/classes/javax/swing/text/GlyphView.java
浏览文件 @
bd66ded6
...
...
@@ -879,8 +879,12 @@ public class GlyphView extends View implements TabableView, Cloneable {
* visible, they might not be in the same order found in the model, or
* they just might not allow access to some of the locations in the
* model.
* This method enables specifying a position to convert
* within the range of >=0. If the value is -1, a position
* will be calculated automatically. If the value < -1,
* the {@code BadLocationException} will be thrown.
*
* @param pos the position to convert
>= 0
* @param pos the position to convert
* @param a the allocated region to render into
* @param direction the direction from the current position that can
* be thought of as the arrow keys typically found on a keyboard.
...
...
@@ -888,7 +892,8 @@ public class GlyphView extends View implements TabableView, Cloneable {
* SwingConstants.NORTH, or SwingConstants.SOUTH.
* @return the location within the model that best represents the next
* location visual position.
* @exception BadLocationException
* @exception BadLocationException the given position is not a valid
* position within the document
* @exception IllegalArgumentException for an invalid direction
*/
public
int
getNextVisualPositionFrom
(
int
pos
,
Position
.
Bias
b
,
Shape
a
,
...
...
@@ -896,6 +901,9 @@ public class GlyphView extends View implements TabableView, Cloneable {
Position
.
Bias
[]
biasRet
)
throws
BadLocationException
{
if
(
pos
<
-
1
)
{
throw
new
BadLocationException
(
"invalid position"
,
pos
);
}
return
painter
.
getNextVisualPositionFrom
(
this
,
pos
,
b
,
a
,
direction
,
biasRet
);
}
...
...
src/share/classes/javax/swing/text/View.java
浏览文件 @
bd66ded6
...
...
@@ -476,8 +476,12 @@ public abstract class View implements SwingConstants {
* Some views may not be visible,
* they might not be in the same order found in the model, or they just
* might not allow access to some of the locations in the model.
* This method enables specifying a position to convert
* within the range of >=0. If the value is -1, a position
* will be calculated automatically. If the value < -1,
* the {@code BadLocationException} will be thrown.
*
* @param pos the position to convert
>= 0
* @param pos the position to convert
* @param a the allocated region in which to render
* @param direction the direction from the current position that can
* be thought of as the arrow keys typically found on a keyboard.
...
...
@@ -490,7 +494,8 @@ public abstract class View implements SwingConstants {
* </ul>
* @return the location within the model that best represents the next
* location visual position
* @exception BadLocationException
* @exception BadLocationException the given position is not a valid
* position within the document
* @exception IllegalArgumentException if <code>direction</code>
* doesn't have one of the legal values above
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录