break;
case JRHyperlink.HYPERLINK_TYPE_LOCAL_ANCHOR:
if (hyperlink.getHyperlinkAnchor() != null) {
Map anchorIndexes = jasperPrint.getAnchorIndexes();
JRPrintAnchorIndex anchorIndex = (JRPrintAnchorIndex) anchorIndexes
.get(hyperlink.getHyperlinkAnchor());
if (anchorIndex.getPageIndex() != pageIndex) {
setPageIndex(anchorIndex.getPageIndex());
refreshPage();
}
Container container = pnlInScroll.getParent();
if (container instanceof JViewport) {
JViewport viewport = (JViewport) container;
int newX = (int) (anchorIndex.getElement().getX() * realZoom);
int newY = (int) (anchorIndex.getElement().getY() * realZoom);
int maxX = pnlInScroll.getWidth() - viewport.getWidth();
int maxY = pnlInScroll.getHeight() - viewport.getHeight();
if (newX < 0) {