Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
f4595a19
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看板
提交
f4595a19
编写于
3月 14, 2011
作者:
D
dav
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7022931: GradientPaint class spec clarification: 7022931, 7016391, 7017246, 7019386
Reviewed-by: flar
上级
a3ebe2b9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
36 addition
and
8 deletion
+36
-8
src/share/classes/java/awt/LinearGradientPaint.java
src/share/classes/java/awt/LinearGradientPaint.java
+8
-2
src/share/classes/java/awt/MultipleGradientPaint.java
src/share/classes/java/awt/MultipleGradientPaint.java
+9
-3
src/share/classes/java/awt/RadialGradientPaint.java
src/share/classes/java/awt/RadialGradientPaint.java
+19
-3
src/share/classes/java/awt/doc-files/RadialGradientPaint-3.png
...hare/classes/java/awt/doc-files/RadialGradientPaint-3.png
+0
-0
src/share/classes/java/awt/doc-files/RadialGradientPaint-4.png
...hare/classes/java/awt/doc-files/RadialGradientPaint-4.png
+0
-0
未找到文件。
src/share/classes/java/awt/LinearGradientPaint.java
浏览文件 @
f4595a19
...
@@ -57,8 +57,14 @@ import java.beans.ConstructorProperties;
...
@@ -57,8 +57,14 @@ import java.beans.ConstructorProperties;
* </pre>
* </pre>
*
*
* <p>
* <p>
* The user may also select what action the {@code LinearGradientPaint}
* The user may also select what action the {@code LinearGradientPaint} object
* should take when filling color outside the start and end points.
* takes when it is filling the space outside the start and end points by
* setting {@code CycleMethod} to either {@code REFLECTION} or {@code REPEAT}.
* The distances between any two colors in any of the reflected or repeated
* copies of the gradient are the same as the distance between those same two
* colors between the start and end points.
* Note that some minor variations in distances may occur due to sampling at
* the granularity of a pixel.
* If no cycle method is specified, {@code NO_CYCLE} will be chosen by
* If no cycle method is specified, {@code NO_CYCLE} will be chosen by
* default, which means the endpoint colors will be used to fill the
* default, which means the endpoint colors will be used to fill the
* remaining area.
* remaining area.
...
...
src/share/classes/java/awt/MultipleGradientPaint.java
浏览文件 @
f4595a19
...
@@ -286,6 +286,10 @@ public abstract class MultipleGradientPaint implements Paint {
...
@@ -286,6 +286,10 @@ public abstract class MultipleGradientPaint implements Paint {
/**
/**
* Returns a copy of the transform applied to the gradient.
* Returns a copy of the transform applied to the gradient.
*
*
* <p>
* Note that if no transform is applied to the gradient
* when it is created, the identity transform is used.
*
* @return a copy of the transform applied to the gradient
* @return a copy of the transform applied to the gradient
*/
*/
public
final
AffineTransform
getTransform
()
{
public
final
AffineTransform
getTransform
()
{
...
@@ -293,10 +297,12 @@ public abstract class MultipleGradientPaint implements Paint {
...
@@ -293,10 +297,12 @@ public abstract class MultipleGradientPaint implements Paint {
}
}
/**
/**
* Returns the transparency mode for this
Paint
object.
* Returns the transparency mode for this
{@code Paint}
object.
*
*
* @return an integer value representing the transparency mode for
* @return {@code OPAQUE} if all colors used by this
* this Paint object
* {@code Paint} object are opaque,
* {@code TRANSLUCENT} if at least one of the
* colors used by this {@code Paint} object is not opaque.
* @see java.awt.Transparency
* @see java.awt.Transparency
*/
*/
public
final
int
getTransparency
()
{
public
final
int
getTransparency
()
{
...
...
src/share/classes/java/awt/RadialGradientPaint.java
浏览文件 @
f4595a19
...
@@ -71,8 +71,24 @@ import java.beans.ConstructorProperties;
...
@@ -71,8 +71,24 @@ import java.beans.ConstructorProperties;
* </pre>
* </pre>
*
*
* <p>
* <p>
* The user may also select what action the {@code RadialGradientPaint}
* The user may also select what action the {@code RadialGradientPaint} object
* should take when filling color outside the bounds of the circle's radius.
* takes when it is filling the space outside the circle's radius by
* setting {@code CycleMethod} to either {@code REFLECTION} or {@code REPEAT}.
* The gradient color proportions are equal for any particular line drawn
* from the focus point. The following figure shows that the distance AB
* is equal to the distance BC, and the distance AD is equal to the distance DE.
* <center>
* <img src = "doc-files/RadialGradientPaint-3.png">
* </center>
* If the gradient and graphics rendering transforms are uniformly scaled and
* the user sets the focus so that it coincides with the center of the circle,
* the gradient color proportions are equal for any line drawn from the center.
* The following figure shows the distances AB, BC, AD, and DE. They are all equal.
* <center>
* <img src = "doc-files/RadialGradientPaint-4.png">
* </center>
* Note that some minor variations in distances may occur due to sampling at
* the granularity of a pixel.
* If no cycle method is specified, {@code NO_CYCLE} will be chosen by
* If no cycle method is specified, {@code NO_CYCLE} will be chosen by
* default, which means the the last keyframe color will be used to fill the
* default, which means the the last keyframe color will be used to fill the
* remaining area.
* remaining area.
...
@@ -604,7 +620,7 @@ public final class RadialGradientPaint extends MultipleGradientPaint {
...
@@ -604,7 +620,7 @@ public final class RadialGradientPaint extends MultipleGradientPaint {
}
}
/**
/**
* Returns a copy of the
end point of the gradient axis
.
* Returns a copy of the
focus point of the radial gradient
.
*
*
* @return a {@code Point2D} object that is a copy of the focus point
* @return a {@code Point2D} object that is a copy of the focus point
*/
*/
...
...
src/share/classes/java/awt/doc-files/RadialGradientPaint-3.png
0 → 100644
浏览文件 @
f4595a19
14.1 KB
src/share/classes/java/awt/doc-files/RadialGradientPaint-4.png
0 → 100644
浏览文件 @
f4595a19
9.6 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录