public static void applyHyperLinkToElement ( DynamicJasperDesign design , DJHyperLink djlink , JRDesignChart chart , String name ) { JRDesignExpression hlpe = ExpressionUtils . createAndRegisterExpression ( design , name , djlink . getExpression ( ) ) ; chart . setHyperlinkReferenceExpression ( hlpe ) ; chart . setHyperlinkType ( HyperlinkTypeEnum . REFERENCE ) ; //FIXME Should this be a parameter in the future? if ( djlink . getTooltip ( ) != null ) { JRDesignExpression tooltipExp = ExpressionUtils . createAndRegisterExpression ( design , "tooltip_" + name , djlink . getTooltip ( ) ) ; chart . setHyperlinkTooltipExpression ( tooltipExp ) ; } }
Creates necessary objects to make a chart an hyperlink