public class CIMStandardLabelPlacementProperties extends CIMLabelPlacementProperties
| Constructor and Description |
|---|
CIMStandardLabelPlacementProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(JSONObject jsonObject)
Deserializes this object from its JSON representation.
|
static CIMStandardLabelPlacementProperties |
fromJSON(java.lang.String json)
Creates the object with a specified state from a JSON encoding.
|
boolean |
getAllowOverlappingLabels()
Gets a value indicating whether or not to allow overlapping labels.
|
double |
getBufferRatio()
Gets the buffer ratio.
|
StandardFeatureWeight |
getFeatureWeight()
Gets the feature weight.
|
StandardLabelWeight |
getLabelWeight()
Gets the label weight.
|
CIMStandardLineLabelPosition |
getLineLabelPosition()
Gets the line label position.
|
CIMStandardLineLabelPriorities |
getLineLabelPriorities()
Gets the line label priorities.
|
double |
getLineOffset()
Gets the line offset.
|
double |
getMaxDistanceFromTarget()
Gets the maximum distance from target.
|
StandardNumLabelsOption |
getNumLabelsOption()
Gets the option for number of labels.
|
boolean |
getPerpendicularToAngle()
Gets a value indicating whether or not to place the label perpendicular to the angle.
|
boolean |
getPlaceOnlyInsidePolygon()
Gets a value indicating whether or not to place the label only inside a polygon.
|
double[] |
getPointPlacementAngles()
Gets an array of point placement angles.
|
StandardPointPlacementMethod |
getPointPlacementMethod()
Gets the point placement method.
|
CIMStandardPointPlacementPriorities |
getPointPlacementPriorities()
Gets the point placement priorities.
|
StandardPolygonPlacementMethod |
getPolygonPlacementMethod()
Gets the polygon placement method.
|
java.lang.String |
getRotationField()
Gets the rotation field.
|
StandardLabelRotationType |
getRotationType()
Gets the rotation type.
|
void |
serialize(JSONObject jsonObject)
Serializes this object to its JSON representation.
|
void |
setAllowOverlappingLabels(boolean allowOverlappingLabels)
Sets a value indicating whether or not to allow overlapping labels.
|
void |
setBufferRatio(double bufferRatio)
Sets the buffer ratio.
|
void |
setFeatureWeight(StandardFeatureWeight featureWeight)
Sets the feature weight.
|
void |
setLabelWeight(StandardLabelWeight labelWeight)
Sets the label weight.
|
void |
setLineLabelPosition(CIMStandardLineLabelPosition lineLabelPosition)
Sets the line label position.
|
void |
setLineLabelPriorities(CIMStandardLineLabelPriorities lineLabelPriorities)
Sets the line label priorities.
|
void |
setLineOffset(double lineOffset)
Sets the line offset.
|
void |
setMaxDistanceFromTarget(double maxDistanceFromTarget)
Sets the maximum distance from target.
|
void |
setNumLabelsOption(StandardNumLabelsOption numLabelsOption)
Sets the option for number of labels.
|
void |
setPerpendicularToAngle(boolean perpendicularToAngle)
Sets a value indicating whether or not to place the label perpendicular to the angle.
|
void |
setPlaceOnlyInsidePolygon(boolean placeOnlyInsidePolygon)
Sets a value indicating whether or not to place the label only inside a polygon.
|
void |
setPointPlacementAngles(double[] pointPlacementAngles)
Sets an array of point placement angles.
|
void |
setPointPlacementMethod(StandardPointPlacementMethod pointPlacementMethod)
Sets the point placement method.
|
void |
setPointPlacementPriorities(CIMStandardPointPlacementPriorities pointPlacementPriorities)
Sets the point placement priorities.
|
void |
setPolygonPlacementMethod(StandardPolygonPlacementMethod polygonPlacementMethod)
Sets the polygon placement method.
|
void |
setRotationField(java.lang.String rotationField)
Sets the rotation field.
|
void |
setRotationType(StandardLabelRotationType rotationType)
Sets the rotation type.
|
java.lang.String |
toJSON()
Creates a JSON encoding of the object and its current state.
|
getFeatureType, setFeatureTypepublic StandardFeatureWeight getFeatureWeight()
public void setFeatureWeight(StandardFeatureWeight featureWeight)
public StandardLabelWeight getLabelWeight()
public void setLabelWeight(StandardLabelWeight labelWeight)
public StandardNumLabelsOption getNumLabelsOption()
public void setNumLabelsOption(StandardNumLabelsOption numLabelsOption)
public CIMStandardLineLabelPosition getLineLabelPosition()
public void setLineLabelPosition(CIMStandardLineLabelPosition lineLabelPosition)
public CIMStandardLineLabelPriorities getLineLabelPriorities()
public void setLineLabelPriorities(CIMStandardLineLabelPriorities lineLabelPriorities)
public StandardPointPlacementMethod getPointPlacementMethod()
public void setPointPlacementMethod(StandardPointPlacementMethod pointPlacementMethod)
public CIMStandardPointPlacementPriorities getPointPlacementPriorities()
public void setPointPlacementPriorities(CIMStandardPointPlacementPriorities pointPlacementPriorities)
public double[] getPointPlacementAngles()
public void setPointPlacementAngles(double[] pointPlacementAngles)
public double getBufferRatio()
public void setBufferRatio(double bufferRatio)
public double getLineOffset()
public void setLineOffset(double lineOffset)
public double getMaxDistanceFromTarget()
public void setMaxDistanceFromTarget(double maxDistanceFromTarget)
public StandardLabelRotationType getRotationType()
public void setRotationType(StandardLabelRotationType rotationType)
public java.lang.String getRotationField()
public void setRotationField(java.lang.String rotationField)
public boolean getPerpendicularToAngle()
public void setPerpendicularToAngle(boolean perpendicularToAngle)
public StandardPolygonPlacementMethod getPolygonPlacementMethod()
public void setPolygonPlacementMethod(StandardPolygonPlacementMethod polygonPlacementMethod)
public boolean getPlaceOnlyInsidePolygon()
public void setPlaceOnlyInsidePolygon(boolean placeOnlyInsidePolygon)
public boolean getAllowOverlappingLabels()
public void setAllowOverlappingLabels(boolean allowOverlappingLabels)
public static CIMStandardLabelPlacementProperties fromJSON(java.lang.String json) throws CIMJSONException
CIMJSONExceptionpublic java.lang.String toJSON()
public void deserialize(JSONObject jsonObject) throws CIMJSONException
deserialize in class CIMLabelPlacementPropertiesCIMJSONExceptionpublic void serialize(JSONObject jsonObject)
serialize in class CIMLabelPlacementProperties