public class JRPrintAnchorIndex extends Object
Constructor and Description |
---|
JRPrintAnchorIndex(int page,
JRPrintElement elem)
Creates an element anchor.
|
JRPrintAnchorIndex(int page,
JRPrintElement elem,
int offsetX,
int offsetY)
Creates an element anchor.
|
Modifier and Type | Method and Description |
---|---|
JRPrintElement |
getElement() |
int |
getElementAbsoluteX()
Returns the absolute (relative to the report page) X coordinate of the anchor element.
|
int |
getElementAbsoluteY()
Returns the absolute (relative to the report page) Y coordinate of the anchor element.
|
int |
getPageIndex() |
public JRPrintAnchorIndex(int page, JRPrintElement elem)
page
- the index of the page in the reportelem
- the elementpublic JRPrintAnchorIndex(int page, JRPrintElement elem, int offsetX, int offsetY)
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 systemgetElementAbsoluteX()
,
getElementAbsoluteY()
public int getPageIndex()
public JRPrintElement getElement()
public int getElementAbsoluteX()
This can be different than getElement().getX()
for elements
placed inside a frame
.
public int getElementAbsoluteY()
This can be different than getElement().getY()
for elements
placed inside a frame
.
Copyright © 2017. All rights reserved.