CmxFillStyle
内容
[
隐藏
]Inheritance: java.lang.Object
public class CmxFillStyle
形状的填充样式。
构造函数
| 构造函数 | 描述 |
|---|---|
| CmxFillStyle() |
方法
| 方法 | 描述 |
|---|---|
| getFillType() | 获取填充的类型。 |
| setFillType(int value) | 设置填充的类型。 |
| getColor1() | 获取主颜色。 |
| setColor1(CmxColor value) | 设置主颜色。 |
| getColor2() | 获取次要颜色。 |
| setColor2(CmxColor value) | 设置次要颜色。 |
| getGradient() | 获取渐变信息。 |
| setGradient(CmxGradient value) | 设置渐变信息。 |
| getImageFill() | 获取图像填充信息。 |
| setImageFill(CmxImageFill value) | 设置图像填充信息。 |
| getTransform() | 获取填充变换。 |
| setTransform(Matrix value) | 设置填充变换。 |
| toString() | 返回表示此实例的字符串。 |
| equals(Object o) | 检查对象是否相等。 |
| hashCode() | 获取当前对象的哈希码。 |
CmxFillStyle()
public CmxFillStyle()
getFillType()
public final int getFillType()
获取填充的类型。
Returns: int - 填充的类型。
setFillType(int value)
public final void setFillType(int value)
设置填充的类型。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int | 填充的类型。 |
getColor1()
public final CmxColor getColor1()
获取主颜色。
Returns: CmxColor - the primary color.
setColor1(CmxColor value)
public final void setColor1(CmxColor value)
设置主颜色。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | CmxColor | 主颜色。 |
getColor2()
public final CmxColor getColor2()
获取次要颜色。
Returns: CmxColor - the secondary color.
setColor2(CmxColor value)
public final void setColor2(CmxColor value)
设置次要颜色。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | CmxColor | 次要颜色。 |
getGradient()
public final CmxGradient getGradient()
获取渐变信息。
Returns: CmxGradient - the gradient info.
setGradient(CmxGradient value)
public final void setGradient(CmxGradient value)
设置渐变信息。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | CmxGradient | 渐变信息。 |
getImageFill()
public final CmxImageFill getImageFill()
获取图像填充信息。
Returns: CmxImageFill - the image fill info.
setImageFill(CmxImageFill value)
public final void setImageFill(CmxImageFill value)
设置图像填充信息。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | CmxImageFill | 图像填充信息。 |
getTransform()
public final Matrix getTransform()
获取填充变换。
Returns: Matrix - the fill transform.
setTransform(Matrix value)
public final void setTransform(Matrix value)
设置填充变换。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | Matrix | 填充变换。 |
toString()
public String toString()
返回表示此实例的字符串。
Returns: java.lang.String - 表示此实例的字符串。
equals(Object o)
public boolean equals(Object o)
检查对象是否相等。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| o | java.lang.Object | 其他对象。 |
Returns: boolean - 相等比较结果。
hashCode()
public int hashCode()
获取当前对象的哈希码。
Returns: int - 哈希码。