|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.FillFormat
public final class FillFormat
Defines how to fill a shape. By default shapes are not filled.
Constructor Summary | |
---|---|
FillFormat()
Default constructor. |
Method Summary | |
---|---|
FillFormat |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.awt.Color |
getColor()
Get color of a solid fill style. |
Gradient |
getGradient()
Get gradient fill parameters. |
Texture |
getTexture()
Return texture fill parameters. |
float |
getTransparency()
Get transparency of a shape. |
FillFormatType |
getType()
Get shape fill type. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setColor(java.awt.Color color)
Set color of a solid fill style. |
void |
setGradient(Gradient gradient)
Set gradient fill parameters. |
void |
setTexture(Texture texture)
Set texture fill parameters. |
void |
setTransparency(float transparency)
Set transparency of a shape. |
void |
setType(FillFormatType type)
Set shape fill type. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FillFormat()
Method Detail |
---|
public FillFormatType getType()
public void setType(FillFormatType type)
type
- new fill type.public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- new solid color. Null to turn the filling off.public float getTransparency()
public void setTransparency(float transparency)
transparency
- new transparency. Must be in the range [0..1].public Gradient getGradient()
GradientLinear
,
GradientFromCenter
public void setGradient(Gradient gradient)
gradient
- new gradient. Null to turn the filling off.public Texture getTexture()
public void setTexture(Texture texture)
texture
- new texture. Null to turn the filling off.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public FillFormat clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |