Package net.webpdf.wsclient.openapi
Class OperationLineAnnotation
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationLineAnnotation
-
public class OperationLineAnnotation extends Object
An annotation that draws a simple line on a page.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BORDERstatic StringJSON_PROPERTY_COLORstatic StringJSON_PROPERTY_CONTENTSstatic StringJSON_PROPERTY_CREATORstatic StringJSON_PROPERTY_ENDstatic StringJSON_PROPERTY_HIDDENstatic StringJSON_PROPERTY_INTENTSstatic StringJSON_PROPERTY_INVISIBLEstatic StringJSON_PROPERTY_LOCKEDstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_OPACITYstatic StringJSON_PROPERTY_PAGEstatic StringJSON_PROPERTY_PRINTABLEstatic StringJSON_PROPERTY_ROTATABLEstatic StringJSON_PROPERTY_STARTstatic StringJSON_PROPERTY_SUBJECTstatic StringJSON_PROPERTY_VIEWABLEstatic StringJSON_PROPERTY_WRITABLEstatic StringJSON_PROPERTY_ZOOMABLE
-
Constructor Summary
Constructors Constructor Description OperationLineAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationLineAnnotationborder(OperationBorder border)OperationLineAnnotationcolor(String color)OperationLineAnnotationcontents(String contents)OperationLineAnnotationcreator(String creator)OperationLineAnnotationend(OperationPoint end)booleanequals(Object o)@Nullable OperationBordergetBorder()Get border@Nullable StringgetColor()The annotation color will change the main color of visible annotations.@Nullable StringgetContents()This value is used to configure the text content of the annotation, with the way in which it is displayed depending heavily on the specific annotation type (for example, in the case of a text note, this would be the text content of the annotation's popup).@Nullable StringgetCreator()Used to specify the author of the annotation.@NotNull OperationPointgetEnd()Get end@Nullable BooleangetHidden()If this value is set to true, the annotation will not be shown on the page and will not be printed either.@Nullable StringgetIntents()Used to set the intention of the annotation.@Nullable BooleangetInvisible()If this value is set to true, the annotation will be visible on the page only when printed, and provided it is a PDF standard annotation.@Nullable BooleangetLocked()If this value is set to true, the annotation will be locked so that no changes can be made to it.@Nullable StringgetName()Used to specify the name of the annotation.@Nullable IntegergetOpacity()This percentage value is used to set the annotation's transparency.@Nullable IntegergetPage()Set the number of the page, the annotation shall be placed on.@Nullable BooleangetPrintable()If this value is set to true, the annotation will be included when the page is printed out.@Nullable BooleangetRotatable()If this value is set to true, the annotation shall be rotatable according to the displayed page rotation.@NotNull OperationPointgetStart()Get start@Nullable StringgetSubject()Used to specify the subject of the annotation.@Nullable BooleangetViewable()If this value is set to true, the annotation will be shown on the document's page.@Nullable BooleangetWritable()If this value is set to true, it will be possible to change the annotation's contents later on.@Nullable BooleangetZoomable()If this value is set to true, the annotation will adjust its own zoom factor as required for the page in order to always be clearly readable / recognizable.inthashCode()OperationLineAnnotationhidden(Boolean hidden)OperationLineAnnotationintents(String intents)OperationLineAnnotationinvisible(Boolean invisible)OperationLineAnnotationlocked(Boolean locked)OperationLineAnnotationname(String name)OperationLineAnnotationopacity(Integer opacity)OperationLineAnnotationpage(Integer page)OperationLineAnnotationprintable(Boolean printable)OperationLineAnnotationrotatable(Boolean rotatable)voidsetBorder(OperationBorder border)voidsetColor(String color)voidsetContents(String contents)voidsetCreator(String creator)voidsetEnd(OperationPoint end)voidsetHidden(Boolean hidden)voidsetIntents(String intents)voidsetInvisible(Boolean invisible)voidsetLocked(Boolean locked)voidsetName(String name)voidsetOpacity(Integer opacity)voidsetPage(Integer page)voidsetPrintable(Boolean printable)voidsetRotatable(Boolean rotatable)voidsetStart(OperationPoint start)voidsetSubject(String subject)voidsetViewable(Boolean viewable)voidsetWritable(Boolean writable)voidsetZoomable(Boolean zoomable)OperationLineAnnotationstart(OperationPoint start)OperationLineAnnotationsubject(String subject)StringtoString()OperationLineAnnotationviewable(Boolean viewable)OperationLineAnnotationwritable(Boolean writable)OperationLineAnnotationzoomable(Boolean zoomable)
-
-
-
Field Detail
-
JSON_PROPERTY_BORDER
public static final String JSON_PROPERTY_BORDER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COLOR
public static final String JSON_PROPERTY_COLOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTENTS
public static final String JSON_PROPERTY_CONTENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATOR
public static final String JSON_PROPERTY_CREATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_END
public static final String JSON_PROPERTY_END
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HIDDEN
public static final String JSON_PROPERTY_HIDDEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTENTS
public static final String JSON_PROPERTY_INTENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INVISIBLE
public static final String JSON_PROPERTY_INVISIBLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LOCKED
public static final String JSON_PROPERTY_LOCKED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPACITY
public static final String JSON_PROPERTY_OPACITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGE
public static final String JSON_PROPERTY_PAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINTABLE
public static final String JSON_PROPERTY_PRINTABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROTATABLE
public static final String JSON_PROPERTY_ROTATABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_START
public static final String JSON_PROPERTY_START
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUBJECT
public static final String JSON_PROPERTY_SUBJECT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VIEWABLE
public static final String JSON_PROPERTY_VIEWABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WRITABLE
public static final String JSON_PROPERTY_WRITABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ZOOMABLE
public static final String JSON_PROPERTY_ZOOMABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
border
public OperationLineAnnotation border(OperationBorder border)
-
getBorder
@Nullable public @Nullable OperationBorder getBorder()
Get border- Returns:
- border
-
setBorder
public void setBorder(OperationBorder border)
-
color
public OperationLineAnnotation color(String color)
-
getColor
@Nullable public @Nullable String getColor()
The annotation color will change the main color of visible annotations. The color needs to be specified as a hexadecimal RGB value with a number sign before it.- Returns:
- color
-
setColor
public void setColor(String color)
-
contents
public OperationLineAnnotation contents(String contents)
-
getContents
@Nullable public @Nullable String getContents()
This value is used to configure the text content of the annotation, with the way in which it is displayed depending heavily on the specific annotation type (for example, in the case of a text note, this would be the text content of the annotation's popup).- Returns:
- contents
-
setContents
public void setContents(String contents)
-
creator
public OperationLineAnnotation creator(String creator)
-
getCreator
@Nullable public @Nullable String getCreator()
Used to specify the author of the annotation.- Returns:
- creator
-
setCreator
public void setCreator(String creator)
-
end
public OperationLineAnnotation end(OperationPoint end)
-
getEnd
@NotNull public @NotNull OperationPoint getEnd()
Get end- Returns:
- end
-
setEnd
public void setEnd(OperationPoint end)
-
hidden
public OperationLineAnnotation hidden(Boolean hidden)
-
getHidden
@Nullable public @Nullable Boolean getHidden()
If this value is set to true, the annotation will not be shown on the page and will not be printed either.- Returns:
- hidden
-
setHidden
public void setHidden(Boolean hidden)
-
intents
public OperationLineAnnotation intents(String intents)
-
getIntents
@Nullable public @Nullable String getIntents()
Used to set the intention of the annotation. **Important:** The intention of an annotation can directly influence it's behaviour and may serve different purposes for different annotation types. Only set this directly, if you know it is necessary and possible to do so.- Returns:
- intents
-
setIntents
public void setIntents(String intents)
-
invisible
public OperationLineAnnotation invisible(Boolean invisible)
-
getInvisible
@Nullable public @Nullable Boolean getInvisible()
If this value is set to true, the annotation will be visible on the page only when printed, and provided it is a PDF standard annotation.- Returns:
- invisible
-
setInvisible
public void setInvisible(Boolean invisible)
-
locked
public OperationLineAnnotation locked(Boolean locked)
-
getLocked
@Nullable public @Nullable Boolean getLocked()
If this value is set to true, the annotation will be locked so that no changes can be made to it.- Returns:
- locked
-
setLocked
public void setLocked(Boolean locked)
-
name
public OperationLineAnnotation name(String name)
-
getName
@Nullable public @Nullable String getName()
Used to specify the name of the annotation.- Returns:
- name
-
setName
public void setName(String name)
-
opacity
public OperationLineAnnotation opacity(Integer opacity)
-
getOpacity
@Nullable public @Nullable Integer getOpacity()
This percentage value is used to set the annotation's transparency. minimum: 0 maximum: 100- Returns:
- opacity
-
setOpacity
public void setOpacity(Integer opacity)
-
page
public OperationLineAnnotation page(Integer page)
-
getPage
@Nullable public @Nullable Integer getPage()
Set the number of the page, the annotation shall be placed on. minimum: 1- Returns:
- page
-
setPage
public void setPage(Integer page)
-
printable
public OperationLineAnnotation printable(Boolean printable)
-
getPrintable
@Nullable public @Nullable Boolean getPrintable()
If this value is set to true, the annotation will be included when the page is printed out.- Returns:
- printable
-
setPrintable
public void setPrintable(Boolean printable)
-
rotatable
public OperationLineAnnotation rotatable(Boolean rotatable)
-
getRotatable
@Nullable public @Nullable Boolean getRotatable()
If this value is set to true, the annotation shall be rotatable according to the displayed page rotation.- Returns:
- rotatable
-
setRotatable
public void setRotatable(Boolean rotatable)
-
start
public OperationLineAnnotation start(OperationPoint start)
-
getStart
@NotNull public @NotNull OperationPoint getStart()
Get start- Returns:
- start
-
setStart
public void setStart(OperationPoint start)
-
subject
public OperationLineAnnotation subject(String subject)
-
getSubject
@Nullable public @Nullable String getSubject()
Used to specify the subject of the annotation.- Returns:
- subject
-
setSubject
public void setSubject(String subject)
-
viewable
public OperationLineAnnotation viewable(Boolean viewable)
-
getViewable
@Nullable public @Nullable Boolean getViewable()
If this value is set to true, the annotation will be shown on the document's page.- Returns:
- viewable
-
setViewable
public void setViewable(Boolean viewable)
-
writable
public OperationLineAnnotation writable(Boolean writable)
-
getWritable
@Nullable public @Nullable Boolean getWritable()
If this value is set to true, it will be possible to change the annotation's contents later on.- Returns:
- writable
-
setWritable
public void setWritable(Boolean writable)
-
zoomable
public OperationLineAnnotation zoomable(Boolean zoomable)
-
getZoomable
@Nullable public @Nullable Boolean getZoomable()
If this value is set to true, the annotation will adjust its own zoom factor as required for the page in order to always be clearly readable / recognizable.- Returns:
- zoomable
-
setZoomable
public void setZoomable(Boolean zoomable)
-
-