Package net.webpdf.wsclient.openapi
Class MetadataLine
- java.lang.Object
-
- net.webpdf.wsclient.openapi.MetadataLine
-
public class MetadataLine extends Object
Defines a set of attributes for Line annotations.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CAPTION_HORIZONTAL_OFFSETstatic StringJSON_PROPERTY_CAPTION_POSITIONINGstatic StringJSON_PROPERTY_CAPTION_VERTICAL_OFFSETstatic StringJSON_PROPERTY_END_STYLEstatic StringJSON_PROPERTY_LEADER_LINE_EXTENSION_LENGTHstatic StringJSON_PROPERTY_LEADER_LINE_LENGTHstatic StringJSON_PROPERTY_LEADER_LINE_OFFSET_LENGTHstatic StringJSON_PROPERTY_SHOW_CAPTIONstatic StringJSON_PROPERTY_START_STYLE
-
Constructor Summary
Constructors Constructor Description MetadataLine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataLinecaptionHorizontalOffset(Float captionHorizontalOffset)MetadataLinecaptionPositioning(String captionPositioning)MetadataLinecaptionVerticalOffset(Float captionVerticalOffset)MetadataLineendStyle(String endStyle)booleanequals(Object o)@Nullable FloatgetCaptionHorizontalOffset()The horizontal offset of the caption's leading letter in relation to it's normal position.@Nullable StringgetCaptionPositioning()The positioning method for the caption of the line.@Nullable FloatgetCaptionVerticalOffset()The vertical offset of the caption's leading letter in relation to it's normal position.@Nullable StringgetEndStyle()Selects the Line ending style at the end of the line.@Nullable FloatgetLeaderLineExtensionLength()A non-negative number that shall represent the length of leader line extensions that extend from the line proper 180 degrees from the leader lines. (0 = no leader line extensions)@Nullable FloatgetLeaderLineLength()The length of leader lines that extend from each endpoint of the line perpendicular to the line itself.@Nullable FloatgetLeaderLineOffsetLength()A non-negative number that shall represent the length of the leader line offset, which is the amount of empty space between the endpoints of the annotation and the beginning of the leader lines.@Nullable BooleangetShowCaption()When set to true the line shall display a textual caption.@Nullable StringgetStartStyle()Selects the Line ending style at the start of the line.inthashCode()MetadataLineleaderLineExtensionLength(Float leaderLineExtensionLength)MetadataLineleaderLineLength(Float leaderLineLength)MetadataLineleaderLineOffsetLength(Float leaderLineOffsetLength)voidsetCaptionHorizontalOffset(Float captionHorizontalOffset)voidsetCaptionPositioning(String captionPositioning)voidsetCaptionVerticalOffset(Float captionVerticalOffset)voidsetEndStyle(String endStyle)voidsetLeaderLineExtensionLength(Float leaderLineExtensionLength)voidsetLeaderLineLength(Float leaderLineLength)voidsetLeaderLineOffsetLength(Float leaderLineOffsetLength)voidsetShowCaption(Boolean showCaption)voidsetStartStyle(String startStyle)MetadataLineshowCaption(Boolean showCaption)MetadataLinestartStyle(String startStyle)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CAPTION_HORIZONTAL_OFFSET
public static final String JSON_PROPERTY_CAPTION_HORIZONTAL_OFFSET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CAPTION_POSITIONING
public static final String JSON_PROPERTY_CAPTION_POSITIONING
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CAPTION_VERTICAL_OFFSET
public static final String JSON_PROPERTY_CAPTION_VERTICAL_OFFSET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_END_STYLE
public static final String JSON_PROPERTY_END_STYLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEADER_LINE_EXTENSION_LENGTH
public static final String JSON_PROPERTY_LEADER_LINE_EXTENSION_LENGTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEADER_LINE_LENGTH
public static final String JSON_PROPERTY_LEADER_LINE_LENGTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEADER_LINE_OFFSET_LENGTH
public static final String JSON_PROPERTY_LEADER_LINE_OFFSET_LENGTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOW_CAPTION
public static final String JSON_PROPERTY_SHOW_CAPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_START_STYLE
public static final String JSON_PROPERTY_START_STYLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
captionHorizontalOffset
public MetadataLine captionHorizontalOffset(Float captionHorizontalOffset)
-
getCaptionHorizontalOffset
@Nullable public @Nullable Float getCaptionHorizontalOffset()
The horizontal offset of the caption's leading letter in relation to it's normal position.- Returns:
- captionHorizontalOffset
-
setCaptionHorizontalOffset
public void setCaptionHorizontalOffset(Float captionHorizontalOffset)
-
captionPositioning
public MetadataLine captionPositioning(String captionPositioning)
-
getCaptionPositioning
@Nullable public @Nullable String getCaptionPositioning()
The positioning method for the caption of the line. Possible values are \"Inline\" (superimposed) and \"Top\" (above the line).- Returns:
- captionPositioning
-
setCaptionPositioning
public void setCaptionPositioning(String captionPositioning)
-
captionVerticalOffset
public MetadataLine captionVerticalOffset(Float captionVerticalOffset)
-
getCaptionVerticalOffset
@Nullable public @Nullable Float getCaptionVerticalOffset()
The vertical offset of the caption's leading letter in relation to it's normal position.- Returns:
- captionVerticalOffset
-
setCaptionVerticalOffset
public void setCaptionVerticalOffset(Float captionVerticalOffset)
-
endStyle
public MetadataLine endStyle(String endStyle)
-
getEndStyle
@Nullable public @Nullable String getEndStyle()
Selects the Line ending style at the end of the line. Possible values are: Square, Circle, Diamond, OpenArrow, ClosedArrow, None, Butt, ROpenArrow, RClosedArrow, Slash- Returns:
- endStyle
-
setEndStyle
public void setEndStyle(String endStyle)
-
leaderLineExtensionLength
public MetadataLine leaderLineExtensionLength(Float leaderLineExtensionLength)
-
getLeaderLineExtensionLength
@Nullable public @Nullable Float getLeaderLineExtensionLength()
A non-negative number that shall represent the length of leader line extensions that extend from the line proper 180 degrees from the leader lines. (0 = no leader line extensions)- Returns:
- leaderLineExtensionLength
-
setLeaderLineExtensionLength
public void setLeaderLineExtensionLength(Float leaderLineExtensionLength)
-
leaderLineLength
public MetadataLine leaderLineLength(Float leaderLineLength)
-
getLeaderLineLength
@Nullable public @Nullable Float getLeaderLineLength()
The length of leader lines that extend from each endpoint of the line perpendicular to the line itself. A positive value shall mean that the leader lines appear in the direction that is clockwise when traversing the line from its starting point to its ending point; a negative value shall indicate the opposite direction.(0 = no leader lines)- Returns:
- leaderLineLength
-
setLeaderLineLength
public void setLeaderLineLength(Float leaderLineLength)
-
leaderLineOffsetLength
public MetadataLine leaderLineOffsetLength(Float leaderLineOffsetLength)
-
getLeaderLineOffsetLength
@Nullable public @Nullable Float getLeaderLineOffsetLength()
A non-negative number that shall represent the length of the leader line offset, which is the amount of empty space between the endpoints of the annotation and the beginning of the leader lines.- Returns:
- leaderLineOffsetLength
-
setLeaderLineOffsetLength
public void setLeaderLineOffsetLength(Float leaderLineOffsetLength)
-
showCaption
public MetadataLine showCaption(Boolean showCaption)
-
getShowCaption
@Nullable public @Nullable Boolean getShowCaption()
When set to true the line shall display a textual caption.- Returns:
- showCaption
-
setShowCaption
public void setShowCaption(Boolean showCaption)
-
startStyle
public MetadataLine startStyle(String startStyle)
-
getStartStyle
@Nullable public @Nullable String getStartStyle()
Selects the Line ending style at the start of the line.- Returns:
- startStyle
-
setStartStyle
public void setStartStyle(String startStyle)
-
-