public class TextureBackground extends AbstractBackground
限定符和类型 | 字段和说明 |
---|---|
static java.awt.TexturePaint |
BLUE_TISSUE_PAPER_TEXTURE_PAINT
BlueTissuePaper texture.
|
static java.awt.TexturePaint |
BOUQUET_TEXTURE_PAINT
Bouquet texture.
|
static java.awt.TexturePaint |
BROWN_MARBLE_TEXTURE_PAINT
BrownMarble texture.
|
static java.awt.TexturePaint |
CANVAS_TEXTURE_PAINT
Canvas texture.
|
static java.awt.TexturePaint |
CORK_TEXTURE_PAINT
Cork texture.
|
static java.awt.TexturePaint |
DENIM_TEXTURE_PAINT
Denim texture.
|
static java.awt.TexturePaint |
FISH_FOSSIL_TEXTURE_PAINT
FishFossil texture.
|
static java.awt.TexturePaint |
GRANITE_TEXTURE_PAINT
Granite texture.
|
static java.awt.TexturePaint |
GREEN_MARBLE_TEXTURE_PAINT
GreenMarble texture.
|
static java.awt.TexturePaint |
MEDIUM_WOOD_TEXTURE_PAINT
MediumWood texture.
|
static java.awt.TexturePaint |
NEWSPRINT_TEXTURE_PAINT
Newsprint texture.
|
static java.awt.TexturePaint |
OAK_TEXTURE_PAINT
Oak texture.
|
static java.awt.TexturePaint |
PAPER_BAG_TEXTURE_PAINT
PaperBag texture.
|
static java.awt.TexturePaint |
PAPYRUS_TEXTURE_PAINT
Papyrus texture.
|
static java.awt.TexturePaint |
PARCHMENT_TEXTURE_PAINT
Parchment texture.
|
static java.awt.TexturePaint |
PINK_TISSUE_PAPER_TEXTURE_PAINT
PinkTissuePaper texture.
|
static java.awt.TexturePaint |
PURPLE_MESH_TEXTURE_PAINT
PurpleMesh texture.
|
static java.awt.TexturePaint |
RECYCLED_PAPER_TEXTURE_PAINT
RecycledPaper texture.
|
static java.awt.TexturePaint |
SAND_TEXTURE_PAINT
Sand texture.
|
static java.awt.TexturePaint |
STATIONERY_TEXTURE_PAINT
Stationery texture.
|
static java.awt.TexturePaint |
WALNUT_TEXTURE_PAINT
Walnut texture.
|
static java.awt.TexturePaint |
WATER_DROPLETS_TEXTURE_PAINT
WaterDroplets texture.
|
static java.awt.TexturePaint |
WHITE_MARBLE_TEXTURE_PAINT
WhiteMarble texture.
|
static java.awt.TexturePaint |
WOVEN_MAT_TEXTURE_PAINT
WovenMat texture.
|
DEFAULT_SIZE
构造器和说明 |
---|
TextureBackground()
默认的构造函数
|
TextureBackground(java.awt.TexturePaint texturePaint)
具有指定纹理的背景
|
限定符和类型 | 方法和说明 |
---|---|
JSONObject |
createJSONConfig(Repository repo)
控件背景输出json到web端.
|
void |
drawWithGradientLine(java.awt.Graphics g,
java.awt.Shape shape)
根据指定的画图对象和几何图形来画具有渐变色的边框的纹理背景
|
boolean |
equals(java.lang.Object obj)
判断当前对象是否和指定的对象相等
|
java.lang.String |
getBackgroundType()
用于web端辨识纹理背景类型的字符串
|
java.awt.Image |
getImage()
返回该纹理背景所使用的纹理图片
|
java.awt.TexturePaint |
getTexturePaint()
获取该纹理背景所使用的纹理
|
void |
paint(java.awt.Graphics g,
java.awt.Shape shape)
根据指定的画图对象和几何图形来画纹理背景
|
Background |
readAdditionalAttr(XMLableReader reader) |
void |
setTexturePaint(java.awt.TexturePaint texturePaint)
设置该纹理背景所使用的纹理
|
JSONObject |
toJSONObject()
将背景输出成JSON对象
|
void |
writeAdditionalAttr(XMLPrintWriter writer) |
clone, createBufferedImage, fixHashCode, layoutDidChange, paint, paintImage, preDealBackground, readXML, toJSONObject, toJSONObject, traverseForExport, writeXML
public static final java.awt.TexturePaint NEWSPRINT_TEXTURE_PAINT
public static final java.awt.TexturePaint RECYCLED_PAPER_TEXTURE_PAINT
public static final java.awt.TexturePaint PARCHMENT_TEXTURE_PAINT
public static final java.awt.TexturePaint STATIONERY_TEXTURE_PAINT
public static final java.awt.TexturePaint GREEN_MARBLE_TEXTURE_PAINT
public static final java.awt.TexturePaint WHITE_MARBLE_TEXTURE_PAINT
public static final java.awt.TexturePaint BROWN_MARBLE_TEXTURE_PAINT
public static final java.awt.TexturePaint GRANITE_TEXTURE_PAINT
public static final java.awt.TexturePaint BLUE_TISSUE_PAPER_TEXTURE_PAINT
public static final java.awt.TexturePaint PINK_TISSUE_PAPER_TEXTURE_PAINT
public static final java.awt.TexturePaint PURPLE_MESH_TEXTURE_PAINT
public static final java.awt.TexturePaint BOUQUET_TEXTURE_PAINT
public static final java.awt.TexturePaint PAPYRUS_TEXTURE_PAINT
public static final java.awt.TexturePaint CANVAS_TEXTURE_PAINT
public static final java.awt.TexturePaint DENIM_TEXTURE_PAINT
public static final java.awt.TexturePaint WOVEN_MAT_TEXTURE_PAINT
public static final java.awt.TexturePaint WATER_DROPLETS_TEXTURE_PAINT
public static final java.awt.TexturePaint PAPER_BAG_TEXTURE_PAINT
public static final java.awt.TexturePaint FISH_FOSSIL_TEXTURE_PAINT
public static final java.awt.TexturePaint SAND_TEXTURE_PAINT
public static final java.awt.TexturePaint CORK_TEXTURE_PAINT
public static final java.awt.TexturePaint WALNUT_TEXTURE_PAINT
public static final java.awt.TexturePaint OAK_TEXTURE_PAINT
public static final java.awt.TexturePaint MEDIUM_WOOD_TEXTURE_PAINT
public TextureBackground()
public TextureBackground(java.awt.TexturePaint texturePaint)
texturePaint
- 纹理public void paint(java.awt.Graphics g, java.awt.Shape shape)
g
- 画图对象shape
- 几何图形public void drawWithGradientLine(java.awt.Graphics g, java.awt.Shape shape)
g
- 画图对象shape
- 几何图形public java.awt.TexturePaint getTexturePaint()
public void setTexturePaint(java.awt.TexturePaint texturePaint)
texturePaint
- 纹理public boolean equals(java.lang.Object obj)
equals
在接口中 Background
equals
在类中 java.lang.Object
object
- 指定的对象public JSONObject toJSONObject() throws JSONException
toJSONObject
在接口中 Background
toJSONObject
在类中 AbstractBackground
JSONException
public java.awt.Image getImage()
public java.lang.String getBackgroundType()
public Background readAdditionalAttr(XMLableReader reader)
readAdditionalAttr
在接口中 Background
readAdditionalAttr
在类中 AbstractBackground
public void writeAdditionalAttr(XMLPrintWriter writer)
writeAdditionalAttr
在接口中 Background
writeAdditionalAttr
在类中 AbstractBackground
public JSONObject createJSONConfig(Repository repo) throws JSONException
AbstractBackground
createJSONConfig
在接口中 Background
createJSONConfig
在类中 AbstractBackground
repo
- 浏览器上下文JSONException