Class ExceedingContent
A type that describes one instance of content exceeding its page or parent.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the bottom coordinate of the the container box in the page in pixels.int
Returns the left coordinate of the the container box in the page in pixels.int
Returns the right coordinate of the the container box in the page in pixels.int
Returns the top coordinate of the the container box in the page in pixels.Returns a description of the content.int
Returns the bottom coordinate of the the exceeding box in the page in pixels.int
Returns the left coordinate of the the exceeding box in the page in pixels.int
Returns the right coordinate of the the exceeding box in the page in pixels.int
Returns the top coordinate of the the exceeding box in the page in pixels.getHtml()
Returns the HTML of the box that contains the exceeding content.int
Returns the bottom coordinate of the the page in pixels.int
Returns the left coordinate of the the page in pixels.int
Returns the number of the page that contains the exceeding content.int
Returns the right coordinate of the the page in pixels.int
Returns the top coordinate of the the page in pixels.int[]
getPath()
Returns an array of integers denoting the indexes of the ancestors of the DOM node corresponding to the box containing the exceeding content, starting from below the root node down to the element itself.Returns a summary of this exceeding content object.boolean
isBottom()
Returns whether the content exceeds the page at the bottom.boolean
isBox()
Returns whether the exceeding content is a box instead of text or image content.boolean
isLeft()
Returns whether the content exceeds the page to the left.boolean
isRight()
Returns whether the content exceeds the page to the right.boolean
isTop()
Returns whether the content exceeds the page at the top.toString()
Equivalent togetSummary()
.
-
Method Details
-
getPageNumber
public int getPageNumber()Returns the number of the page that contains the exceeding content.
-
isRight
public boolean isRight()Returns whether the content exceeds the page to the right.
-
isBottom
public boolean isBottom()Returns whether the content exceeds the page at the bottom.
-
isLeft
public boolean isLeft()Returns whether the content exceeds the page to the left.
-
isTop
public boolean isTop()Returns whether the content exceeds the page at the top.
-
getDescription
Returns a description of the content. In case of text content, the text is returned. In case of images the URL is returned if available.
-
isBox
public boolean isBox()Returns whether the exceeding content is a box instead of text or image content.
-
getHtml
Returns the HTML of the box that contains the exceeding content.
-
getPath
public int[] getPath()Returns an array of integers denoting the indexes of the ancestors of the DOM node corresponding to the box containing the exceeding content, starting from below the root node down to the element itself.
-
getPageLeft
public int getPageLeft()Returns the left coordinate of the the page in pixels.
-
getPageTop
public int getPageTop()Returns the top coordinate of the the page in pixels.
-
getPageRight
public int getPageRight()Returns the right coordinate of the the page in pixels.
-
getPageBottom
public int getPageBottom()Returns the bottom coordinate of the the page in pixels.
-
getContainerLeft
public int getContainerLeft()Returns the left coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.
-
getContainerTop
public int getContainerTop()Returns the top coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.
-
getContainerRight
public int getContainerRight()Returns the right coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.
-
getContainerBottom
public int getContainerBottom()Returns the bottom coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.
-
getExceedingBoxLeft
public int getExceedingBoxLeft()Returns the left coordinate of the the exceeding box in the page in pixels.
-
getExceedingBoxTop
public int getExceedingBoxTop()Returns the top coordinate of the the exceeding box in the page in pixels.
-
getExceedingBoxRight
public int getExceedingBoxRight()Returns the right coordinate of the the exceeding box in the page in pixels.
-
getExceedingBoxBottom
public int getExceedingBoxBottom()Returns the bottom coordinate of the the exceeding box in the page in pixels.
-
getSummary
Returns a summary of this exceeding content object.
-
toString
Equivalent to
getSummary()
.
-