软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.border |
提供用于绘图的类和接口,以绘制一个摆动组件的专门边框。
|
javax.swing.plaf |
提供一个接口和抽象类的使用许多摆动为可插拔的外观和感觉的能力。
|
Modifier and Type | Class and Description |
---|---|
class |
Color
的
Color 类用于封装的颜色在默认的sRGB色彩空间或颜色任意颜色空间的
ColorSpace 鉴定。
|
class |
GradientPaint
的
GradientPaint 类提供了一种方法来填补
Shape 与线性渐变颜色模式。
|
class |
LinearGradientPaint
的
LinearGradientPaint 类提供了一种方法来填补
Shape 与线性渐变颜色模式。
|
class |
MultipleGradientPaint
这是涂料用多颜色渐变填充他们的栅格的父类。
|
class |
RadialGradientPaint
的
RadialGradientPaint 类提供了一种方式来填补一个形状有圆形径向颜色梯度模式。
|
class |
SystemColor
一种封装在系统中表示原生图形对象颜色的符号颜色的类。
|
class |
TexturePaint
|
Modifier and Type | Method and Description |
---|---|
abstract Paint |
Graphics2D.getPaint()
返回的
Graphics2D 上下文的当前
Paint 。
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Graphics2D.setPaint(Paint paint)
设置为
Graphics2D 语境
Paint 属性。
|
Modifier and Type | Method and Description |
---|---|
static Border |
BorderFactory.createDashedBorder(Paint paint)
创建一个虚线框的指定
paint 。
|
static Border |
BorderFactory.createDashedBorder(Paint paint, float length, float spacing)
创建一个虚线框的指定
paint ,相对
length ,和相对
spacing 。
|
static Border |
BorderFactory.createDashedBorder(Paint paint, float thickness, float length, float spacing, boolean rounded)
创建一个虚线框的指定
paint ,
thickness ,线的形状、相对
length ,和相对
spacing 。
|
static Border |
BorderFactory.createStrokeBorder(BasicStroke stroke, Paint paint)
创建一个边境指定的
stroke 和
paint 。
|
Modifier and Type | Method and Description |
---|---|
Paint |
StrokeBorder.getPaint()
返回用于边境在渲染生成彩色的
Paint 对象。
|
Constructor and Description |
---|
StrokeBorder(BasicStroke stroke, Paint paint)
创建一个边境指定的
stroke 和
paint 。
|
Modifier and Type | Class and Description |
---|---|
class |
ColorUIResource |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.