public class CIMPictureFill extends CIMFill
| Constructor and Description |
|---|
CIMPictureFill() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(JSONObject jsonObject)
Deserializes this object from its JSON representation.
|
static CIMPictureFill |
fromJSON(java.lang.String json)
Creates the object with a specified state from a JSON encoding.
|
CIMColorSubstitution[] |
getColorSubstitutions()
Gets the color substitutions which allows colors in the image to be substituted with a different color.
|
double |
getHeight()
Gets the height of the image.
|
double |
getOffsetX()
Gets the distance that the image is offset in the horizontal direction.
|
double |
getOffsetY()
Gets the distance that the image is offset in the vertical direction.
|
double |
getRotation()
Gets angle of the image within the fill.
|
double |
getScaleX()
Gets the width of the symbol without changing the height (or depth in 3D), as a ratio.
|
TextureFilter |
getTextureFilter()
Gets how the image is resampled.
|
CIMColor |
getTintColor()
Gets the color that is applied as a tint to the image.
|
java.lang.String |
getURL()
Gets the URL of the image.
|
void |
serialize(JSONObject jsonObject)
Serializes this object to its JSON representation.
|
void |
setColorSubstitutions(CIMColorSubstitution[] colorSubstitutions)
Sets the color substitutions which allows colors in the image to be substituted with a different color.
|
void |
setHeight(double height)
Sets the height of the image.
|
void |
setOffsetX(double offsetX)
Sets the distance that the image is offset in the horizontal direction.
|
void |
setOffsetY(double offsetY)
Sets the distance that the image is offset in the vertical direction.
|
void |
setRotation(double rotation)
Sets angle of the image within the fill.
|
void |
setScaleX(double scaleX)
Sets the width of the symbol without changing the height (or depth in 3D), as a ratio.
|
void |
setTextureFilter(TextureFilter textureFilter)
Sets how the image is resampled.
|
void |
setTintColor(CIMColor tintColor)
Sets the color that is applied as a tint to the image.
|
void |
setURL(java.lang.String uRL)
Sets the URL of the image.
|
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 java.lang.String getURL()
public void setURL(java.lang.String uRL)
public double getOffsetX()
public void setOffsetX(double offsetX)
public double getOffsetY()
public void setOffsetY(double offsetY)
public double getRotation()
public void setRotation(double rotation)
public double getScaleX()
public void setScaleX(double scaleX)
public double getHeight()
public void setHeight(double height)
public TextureFilter getTextureFilter()
public void setTextureFilter(TextureFilter textureFilter)
public CIMColorSubstitution[] getColorSubstitutions()
public void setColorSubstitutions(CIMColorSubstitution[] colorSubstitutions)
public CIMColor getTintColor()
public void setTintColor(CIMColor tintColor)
public static CIMPictureFill 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)