pdfannotation-ag凯发旗舰厅



com.spire.pdf.annotations
class pdfannotation

java.lang.object
  extended by com.spire.pdf.annotations.pdfannotation
all implemented interfaces:
ipdfwrapper
direct known subclasses:
pdfannotationwidget, pdffileannotation, pdffreetextannotation, pdflineannotation, pdflinkannotation, pdfpolygonannotation, pdfpopupannotation, pdfrubberstampannotation, pdfsquareandcircleannotation, pdftextmarkupannotation

public abstract class pdfannotation
extends java.lang.object
implements ipdfwrapper

represents the base class for annotation objects.


constructor summary
  pdfannotation()
           
  pdfannotation( dictionary)
          creates new annotation object with the specified dictionary.
protected pdfannotation(pdfpagebase page, java.lang.string text)
           
protected pdfannotation(com.spire.ms.system.drawing.rectanglef bounds)
           
 
method summary
 java.lang.string getauthor()
          gets the user who created the annotation.
 pdfannotationborder getborder()
           
 pdfrgbcolor getcolor()
          gets the background of the annotations icon when closed.
  getdictionary()
          gets the dictionary.
 pdfannotationflags getflags()
          gets annotation flags.
 java.awt.geom.point2d getlocation()
          gets location of the annotation.
 java.util.date getmodifieddate()
          gets annotation's modified date.
 java.lang.string getname()
          gets the name of the annotation.
 pdfpagebase getpage()
          gets a page which this annotation is connected to.
 java.awt.geom.rectangle2d getrectangle()
          gets annotation's bounds.
 java.lang.string getsubject()
          gets the annotation's subject.
 java.lang.string gettext()
          gets content of the annotation.
 void setauthor(java.lang.string value)
          sets the user who created the annotation.
 void setborder(pdfannotationborder value)
          sets annotation's border.
 void setcolor(pdfrgbcolor value)
          sets the background of the annotations icon when closed.
 void setdictionary( value)
          sets the dictionary.
 void setflags(pdfannotationflags value)
          sets annotation flags.
 void setmodifieddate(java.util.date value)
          sets annotation's modified date.
 void setname(java.lang.string value)
          sets the name of the annotation.
 void setrectangle(java.awt.geom.rectangle2d value)
          sets annotation's bounds.
 void setsubject(java.lang.string value)
          sets the annotation's subject.
 void settext(java.lang.string value)
          sets content of the annotation.
 
constructor detail

pdfannotation

public pdfannotation()

pdfannotation

public pdfannotation( dictionary)
creates new annotation object with the specified dictionary.
parameters:
dictionary - annotation's dictionary

pdfannotation

protected pdfannotation(pdfpagebase page,
                        java.lang.string text)

pdfannotation

protected pdfannotation(com.spire.ms.system.drawing.rectanglef bounds)
method detail

getcolor

public pdfrgbcolor getcolor()
gets the background of the annotations icon when closed. the title bar of the annotations pop-up window. the border of a link annotation.

setcolor

public void setcolor(pdfrgbcolor value)
sets the background of the annotations icon when closed. the title bar of the annotations pop-up window. the border of a link annotation.

getmodifieddate

public java.util.date getmodifieddate()
gets annotation's modified date.

setmodifieddate

public void setmodifieddate(java.util.date value)
sets annotation's modified date.

getborder

public pdfannotationborder getborder()

setborder

public void setborder(pdfannotationborder value)
sets annotation's border.

getrectangle

public java.awt.geom.rectangle2d getrectangle()
gets annotation's bounds. if this property is not set bounds are calculated automatically based on location property and content of annotation.

setrectangle

public void setrectangle(java.awt.geom.rectangle2d value)
sets annotation's bounds. if this property is not set bounds are calculated automatically based on location property and content of annotation.

getlocation

public java.awt.geom.point2d getlocation()
gets location of the annotation.

getname

public java.lang.string getname()
gets the name of the annotation.
returns:
note: the annotation name, a text string uniquely identifying it among all the annotations on its page.

setname

public void setname(java.lang.string value)
sets the name of the annotation.

getpage

public pdfpagebase getpage()
gets a page which this annotation is connected to.

gettext

public java.lang.string gettext()
gets content of the annotation.

settext

public void settext(java.lang.string value)
sets content of the annotation.

getsubject

public java.lang.string getsubject()
gets the annotation's subject.

setsubject

public void setsubject(java.lang.string value)
sets the annotation's subject.

getauthor

public java.lang.string getauthor()
gets the user who created the annotation.

setauthor

public void setauthor(java.lang.string value)
sets the user who created the annotation.

getflags

public pdfannotationflags getflags()
gets annotation flags.

setflags

public void setflags(pdfannotationflags value)
sets annotation flags.

getdictionary

public  getdictionary()
gets the dictionary.

setdictionary

public void setdictionary( value)
sets the dictionary.
parameters:
value - the dictionary.


网站地图