Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
4183f565
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4183f565
编写于
3月 14, 2014
作者:
S
serb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8036103: Cleanup of java.awt and java.awt.peer packages
Reviewed-by: bagiras, pchelko
上级
bbc8de0f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
37 addition
and
39 deletion
+37
-39
src/share/classes/java/awt/PointerInfo.java
src/share/classes/java/awt/PointerInfo.java
+20
-23
src/share/classes/java/awt/peer/CheckboxMenuItemPeer.java
src/share/classes/java/awt/peer/CheckboxMenuItemPeer.java
+6
-6
src/share/classes/java/awt/peer/CheckboxPeer.java
src/share/classes/java/awt/peer/CheckboxPeer.java
+6
-5
src/share/classes/java/awt/peer/ComponentPeer.java
src/share/classes/java/awt/peer/ComponentPeer.java
+3
-3
src/share/classes/java/awt/peer/TextAreaPeer.java
src/share/classes/java/awt/peer/TextAreaPeer.java
+2
-2
未找到文件。
src/share/classes/java/awt/PointerInfo.java
浏览文件 @
4183f565
/*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003,
2014,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -23,62 +23,59 @@
* questions.
*/
package
java.awt
;
/**
* A class that describes the pointer position.
* It provides the <code>GraphicsDevice</code> where the
* pointer is and the <code>Point</code> that represents
* the coordinates of the pointer.
* It provides the {@code GraphicsDevice} where the pointer is and
* the {@code Point} that represents the coordinates of the pointer.
* <p>
* Instances of this class should be obtained via
* {@link MouseInfo#getPointerInfo}.
* The
<code>PointerInfo</code> instance is not updated dynamically
*
as the mouse
moves. To get the updated location, you must call
* The
{@code PointerInfo} instance is not updated dynamically as the mouse
* moves. To get the updated location, you must call
* {@link MouseInfo#getPointerInfo} again.
*
* @see MouseInfo#getPointerInfo
* @author
Roman Poborchiy
* @since
1.5
* @author Roman Poborchiy
* @since 1.5
*/
public
class
PointerInfo
{
private
GraphicsDevice
device
;
private
Point
location
;
private
final
GraphicsDevice
device
;
private
final
Point
location
;
/**
* Package-private constructor to prevent instantiation.
*/
PointerInfo
(
GraphicsDevice
device
,
Point
location
)
{
PointerInfo
(
final
GraphicsDevice
device
,
final
Point
location
)
{
this
.
device
=
device
;
this
.
location
=
location
;
}
/**
* Returns the
<code>GraphicsDevice</code> where the mouse pointer
*
was at the moment this <code>PointerInfo</code>
was created.
* Returns the
{@code GraphicsDevice} where the mouse pointer was at the
*
moment this {@code PointerInfo}
was created.
*
* @return
<code>GraphicsDevice</code>
corresponding to the pointer
* @since
1.5
* @return
{@code GraphicsDevice}
corresponding to the pointer
* @since 1.5
*/
public
GraphicsDevice
getDevice
()
{
return
device
;
}
/**
* Returns the <code>Point</code> that represents the coordinates
* of the pointer on the screen. See {@link MouseInfo#getPointerInfo}
* for more information about coordinate calculation for multiscreen
* systems.
* Returns the {@code Point} that represents the coordinates of the pointer
* on the screen. See {@link MouseInfo#getPointerInfo} for more information
* about coordinate calculation for multiscreen systems.
*
* @return coordinates of mouse pointer
* @see MouseInfo
* @see MouseInfo#getPointerInfo
* @return coordinates of mouse pointer
* @since 1.5
* @since 1.5
*/
public
Point
getLocation
()
{
return
location
;
}
}
src/share/classes/java/awt/peer/CheckboxMenuItemPeer.java
浏览文件 @
4183f565
/*
* Copyright (c) 1995,
1998
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995,
2014
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -38,12 +38,12 @@ import java.awt.CheckboxMenuItem;
public
interface
CheckboxMenuItemPeer
extends
MenuItemPeer
{
/**
* Sets the state of the checkbox to be checked
({@code true})
or
* unchecked
({@code false})
.
* Sets the state of the checkbox to be checked
{@code true}
or
* unchecked
{@code false}
.
*
* @param
t
the state to set on the checkbox
* @param
state
the state to set on the checkbox
*
* @see CheckboxMenuItem
Peer
#setState(boolean)
* @see CheckboxMenuItem#setState(boolean)
*/
void
setState
(
boolean
t
);
void
setState
(
boolean
state
);
}
src/share/classes/java/awt/peer/CheckboxPeer.java
浏览文件 @
4183f565
/*
* Copyright (c) 1995, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 201
4
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -24,7 +24,8 @@
*/
package
java.awt.peer
;
import
java.awt.*
;
import
java.awt.Checkbox
;
import
java.awt.CheckboxGroup
;
/**
* The peer interface for {@link Checkbox}.
...
...
@@ -38,8 +39,8 @@ import java.awt.*;
public
interface
CheckboxPeer
extends
ComponentPeer
{
/**
* Sets the state of the checkbox to be checked
({@code true})
or
* unchecked
({@code false})
.
* Sets the state of the checkbox to be checked
{@code true}
or
* unchecked
{@code false}
.
*
* @param state the state to set on the checkbox
*
...
...
@@ -60,7 +61,7 @@ public interface CheckboxPeer extends ComponentPeer {
void
setCheckboxGroup
(
CheckboxGroup
g
);
/**
* Sets the label that should be displayed on the c
k
eckbox. A value of
* Sets the label that should be displayed on the c
h
eckbox. A value of
* {@code null} means that no label should be displayed.
*
* @param label the label to be displayed on the checkbox, or
...
...
src/share/classes/java/awt/peer/ComponentPeer.java
浏览文件 @
4183f565
...
...
@@ -27,11 +27,11 @@ package java.awt.peer;
import
java.awt.*
;
import
java.awt.event.PaintEvent
;
import
java.awt.image.ImageProducer
;
import
java.awt.image.ImageObserver
;
import
java.awt.image.ColorModel
;
import
java.awt.image.ImageObserver
;
import
java.awt.image.ImageProducer
;
import
java.awt.image.VolatileImage
;
import
java.awt.GraphicsConfiguration
;
import
sun.awt.CausedFocusEvent
;
import
sun.java2d.pipe.Region
;
...
...
src/share/classes/java/awt/peer/TextAreaPeer.java
浏览文件 @
4183f565
/*
* Copyright (c) 1995,
1998
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995,
2014
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -49,7 +49,7 @@ public interface TextAreaPeer extends TextComponentPeer {
void
insert
(
String
text
,
int
pos
);
/**
* Replaces a range of text by the specified string
* Replaces a range of text by the specified string
.
*
* @param text the replacement string
* @param start the begin of the range to replace
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录