public class OuterLight extends java.lang.Object implements XMLReadable, java.lang.Cloneable, java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
XML_TAG |
构造器和说明 |
---|
OuterLight() |
OuterLight(java.awt.Color outerColor,
int outerSize,
float outerAlpha) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object object) |
boolean |
isNoOuterLight() |
void |
paint(java.awt.Graphics g,
java.awt.Shape shape)
直接填充shape
|
void |
paint(java.awt.Graphics g,
java.awt.Shape shape,
int strokeSize)
实现画的方法.
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setOuterAlpha(float outerAlpha) |
void |
setOuterColor(java.awt.Color outerColor) |
void |
setOutSize(int outSize) |
JSONObject |
toJSONObject() |
void |
writerXML(XMLPrintWriter writer) |
public static final java.lang.String XML_TAG
public OuterLight()
public OuterLight(java.awt.Color outerColor, int outerSize, float outerAlpha)
public void setOuterColor(java.awt.Color outerColor)
public void setOuterAlpha(float outerAlpha)
public void setOutSize(int outSize)
public boolean isNoOuterLight()
public void paint(java.awt.Graphics g, java.awt.Shape shape)
public void paint(java.awt.Graphics g, java.awt.Shape shape, int strokeSize)
g
- 绘制的图形shape
- 所要实现发光的shapestrokeSize
- 所画shape的边框大小public JSONObject toJSONObject() throws JSONException
JSONException
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public void writerXML(XMLPrintWriter writer)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object object)
equals
在类中 java.lang.Object