Package net.sf.jasperreports.engine
Class JRPrintAnchorIndex
- java.lang.Object
-
- net.sf.jasperreports.engine.JRPrintAnchorIndex
-
public class JRPrintAnchorIndex extends java.lang.Object- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description JRPrintAnchorIndex(int page, JRPrintElement elem)Creates an element anchor.JRPrintAnchorIndex(int page, JRPrintElement elem, int offsetX, int offsetY)Creates an element anchor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JRPrintElementgetElement()intgetElementAbsoluteX()Returns the absolute (relative to the report page) X coordinate of the anchor element.intgetElementAbsoluteY()Returns the absolute (relative to the report page) Y coordinate of the anchor element.intgetPageIndex()
-
-
-
Constructor Detail
-
JRPrintAnchorIndex
public JRPrintAnchorIndex(int page, JRPrintElement elem)Creates an element anchor.- Parameters:
page- the index of the page in the reportelem- the element
-
JRPrintAnchorIndex
public JRPrintAnchorIndex(int page, JRPrintElement elem, int offsetX, int offsetY)Creates an element anchor.- Parameters:
page- the index of the page in the reportelem- the elementoffsetX- the X offset of the element coordinates systemoffsetY- the Y offset of the element coordinates system- See Also:
getElementAbsoluteX(),getElementAbsoluteY()
-
-
Method Detail
-
getPageIndex
public int getPageIndex()
-
getElement
public JRPrintElement getElement()
-
getElementAbsoluteX
public int getElementAbsoluteX()
Returns the absolute (relative to the report page) X coordinate of the anchor element.This can be different than
getElement().getX()for elements placed inside aframe.- Returns:
- the absolute X coordinate of the anchor element
-
getElementAbsoluteY
public int getElementAbsoluteY()
Returns the absolute (relative to the report page) Y coordinate of the anchor element.This can be different than
getElement().getY()for elements placed inside aframe.- Returns:
- the absolute Y coordinate of the anchor element
-
-