public class CIMHatchFill extends CIMFill
| Constructor and Description |
|---|
CIMHatchFill() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(JSONObject jsonObject)
Deserializes this object from its JSON representation.
|
static CIMHatchFill |
fromJSON(java.lang.String json)
Creates the object with a specified state from a JSON encoding.
|
CIMLineSymbol |
getLineSymbol()
Gets the line symbol that is used to draw the hatch lines in the fill.
|
double |
getOffsetX()
Gets how much to move the stroke to a new X-position.
|
double |
getOffsetY()
Gets how much to move the stroke to a new Y-position.
|
double |
getRotation()
Gets the angle of rotation for all the strokes, in degrees.
|
double |
getSeparation()
Gets the distance between the line symbols in the hatch pattern.
|
void |
serialize(JSONObject jsonObject)
Serializes this object to its JSON representation.
|
void |
setLineSymbol(CIMLineSymbol lineSymbol)
Sets the line symbol that is used to draw the hatch lines in the fill.
|
void |
setOffsetX(double offsetX)
Sets how much to move the stroke to a new X-position.
|
void |
setOffsetY(double offsetY)
Sets how much to move the stroke to a new Y-position.
|
void |
setRotation(double rotation)
Sets the angle of rotation for all the strokes, in degrees.
|
void |
setSeparation(double separation)
Sets the distance between the line symbols in the hatch pattern.
|
java.lang.String |
toJSON()
Creates a JSON encoding of the object and its current state.
|
getAnimations, getColorLocked, getEffects, getEnable, getName, getOverprint, getPrimitiveName, setAnimations, setColorLocked, setEffects, setEnable, setName, setOverprint, setPrimitiveNamepublic CIMLineSymbol getLineSymbol()
public void setLineSymbol(CIMLineSymbol lineSymbol)
public double getOffsetX()
public void setOffsetX(double offsetX)
public double getRotation()
public void setRotation(double rotation)
public double getSeparation()
public void setSeparation(double separation)
public double getOffsetY()
public void setOffsetY(double offsetY)
public static CIMHatchFill fromJSON(java.lang.String json) throws CIMJSONException
CIMJSONExceptionpublic java.lang.String toJSON()
public void deserialize(JSONObject jsonObject) throws CIMJSONException
deserialize in class CIMFillCIMJSONExceptionpublic void serialize(JSONObject jsonObject)