Class PageThumbnail
java.lang.Object
com.independentsoft.office.odf.drawing.Shape
com.independentsoft.office.odf.drawing.PageThumbnail
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,IParagraphContent,ITextContent
Represents a rectangular area that displays the thumbnail of a drawing page.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the PageThumbnail class.PageThumbnail(InternalXMLStreamReader reader)Instantiates a new page thumbnail. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.intGets the number of a page that is displayed as a thumbnail.Returns the parent content element.Gets height of a drawing object as a relative value within a frame.Gets width of a drawing object as a relative value within a frame.voidsetPageNumber(int pageNumber)Sets the number of a page that is displayed as a thumbnail.voidsetParent(IContentElement parent)Sets the parent content element.voidsetRelativeHeight(String relativeHeight)Sets height of a drawing object as a relative value within a frame.voidsetRelativeWidth(String relativeWidth)Sets width of a drawing object as a relative value within a frame.toString()Converts the value of the current PageThumbnail object to its equivalent string representation.
-
Constructor Details
-
PageThumbnail
public PageThumbnail()Initializes a new instance of the PageThumbnail class. -
PageThumbnail
Instantiates a new page thumbnail.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classShape- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classShape- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classShape- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceICellContent- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIIndexContent- Specified by:
clonein interfaceIParagraphContent- Specified by:
clonein interfaceITextContent- Specified by:
clonein classShape- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current PageThumbnail object to its equivalent string representation. -
getRelativeWidth
Gets width of a drawing object as a relative value within a frame.- Returns:
- the relative width
-
setRelativeWidth
Sets width of a drawing object as a relative value within a frame.- Parameters:
relativeWidth- the new relative width
-
getRelativeHeight
Gets height of a drawing object as a relative value within a frame.- Returns:
- the relative height
-
setRelativeHeight
Sets height of a drawing object as a relative value within a frame.- Parameters:
relativeHeight- the new relative height
-
getPageNumber
public int getPageNumber()Gets the number of a page that is displayed as a thumbnail. For thumbnails on notes pages, the value of this attribute is fixed to the drawing page of a notes page. For thumbnails on handout master pages, the value of this attribute is the order in which the pages are previewed on the handout.- Returns:
- the page number
-
setPageNumber
public void setPageNumber(int pageNumber)Sets the number of a page that is displayed as a thumbnail. For thumbnails on notes pages, the value of this attribute is fixed to the drawing page of a notes page. For thumbnails on handout master pages, the value of this attribute is the order in which the pages are previewed on the handout.- Parameters:
pageNumber- the new page number
-