DistanceAnnotation
Inheritance: java.lang.Object, com.groupdocs.annotation.models.annotationmodels.AnnotationBase
All Implemented Interfaces: com.groupdocs.annotation.models.annotationmodels.interfaces.annotations.IDistanceAnnotation
public class DistanceAnnotation extends AnnotationBase implements IDistanceAnnotation
Represents Distance annotation properties
Constructors
Constructor | Description |
---|---|
DistanceAnnotation() | Initializes new instance of DistanceAnnotation class. |
Methods
Method | Description |
---|---|
getBox() | Gets or sets annotation position |
setBox(Rectangle value) | Gets or sets annotation position |
getOpacity() | Gets or sets annotation opacity |
setOpacity(Double value) | Gets or sets annotation opacity |
getPenColor() | Gets or sets annotation pen color |
setPenColor(Integer value) | Gets or sets annotation pen color |
getPenStyle() | Gets or sets annotation pen style |
setPenStyle(Byte value) | Gets or sets annotation pen style |
getPenWidth() | Gets or sets annotation pen width |
setPenWidth(Byte value) | Gets or sets annotation pen width |
equals(DistanceAnnotation other) | Compares Distance Annotations using IEquatable Equals method |
equals(Object o) | Compares Distance Annotations using standard object Equals method |
hashCode() | Returns HashCode of Distance Annotation |
deepClone() | Returns new Instance with same values |
toString() | |
toString(ToStringStyle toStringStyle) |
DistanceAnnotation()
public DistanceAnnotation()
Initializes new instance of DistanceAnnotation class.
getBox()
public final Rectangle getBox()
Gets or sets annotation position
Returns: Rectangle -
setBox(Rectangle value)
public final void setBox(Rectangle value)
Gets or sets annotation position
Parameters:
Parameter | Type | Description |
---|---|---|
value | Rectangle |
getOpacity()
public final Double getOpacity()
Gets or sets annotation opacity
Returns: java.lang.Double -
setOpacity(Double value)
public final void setOpacity(Double value)
Gets or sets annotation opacity
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Double |
getPenColor()
public final Integer getPenColor()
Gets or sets annotation pen color
Returns: java.lang.Integer -
setPenColor(Integer value)
public final void setPenColor(Integer value)
Gets or sets annotation pen color
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Integer |
getPenStyle()
public final Byte getPenStyle()
Gets or sets annotation pen style
Returns: java.lang.Byte -
setPenStyle(Byte value)
public final void setPenStyle(Byte value)
Gets or sets annotation pen style
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Byte |
getPenWidth()
public final Byte getPenWidth()
Gets or sets annotation pen width
Returns: java.lang.Byte -
setPenWidth(Byte value)
public final void setPenWidth(Byte value)
Gets or sets annotation pen width
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Byte |
equals(DistanceAnnotation other)
public final boolean equals(DistanceAnnotation other)
Compares Distance Annotations using IEquatable Equals method
Parameters:
Parameter | Type | Description |
---|---|---|
other | DistanceAnnotation | The DistanceAnnotation object to compare with the current object |
Returns: boolean -
equals(Object o)
public boolean equals(Object o)
Compares Distance Annotations using standard object Equals method
Parameters:
Parameter | Type | Description |
---|---|---|
o | java.lang.Object | The object to compare with the current object |
Returns: boolean
hashCode()
public int hashCode()
Returns HashCode of Distance Annotation
Returns: int
deepClone()
public Object deepClone()
Returns new Instance with same values
Returns: java.lang.Object -
toString()
public String toString()
Returns: java.lang.String
toString(ToStringStyle toStringStyle)
public String toString(ToStringStyle toStringStyle)
Parameters:
Parameter | Type | Description |
---|---|---|
toStringStyle | org.apache.commons.lang3.builder.ToStringStyle |
Returns: java.lang.String