本文整理汇总了Java中net.sf.jasperreports.engine.JRHyperlinkHelper类的典型用法代码示例。如果您正苦于以下问题:Java JRHyperlinkHelper类的具体用法?Java JRHyperlinkHelper怎么用?Java JRHyperlinkHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JRHyperlinkHelper类属于net.sf.jasperreports.engine包,在下文中一共展示了JRHyperlinkHelper类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: customEvaluate
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@Override
protected void customEvaluate(JRCalculator calculator) throws JRExpressionEvalException
{
if (pieSeries != null && pieSeries.length > 0)
{
for(int i = 0; i < pieSeries.length; i++)
{
pieSeries[i].evaluate(calculator);
}
}
otherKey = (String)calculator.evaluate(getOtherKeyExpression());
otherLabel = (String)calculator.evaluate(getOtherLabelExpression());
if (!JRHyperlinkHelper.isEmpty(getOtherSectionHyperlink()))
{
evaluateOtherSectionHyperlink(calculator);
}
}
示例2: readObject
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (linkType == null)
{
linkType = JRHyperlinkHelper.getLinkType(HyperlinkTypeEnum.getByValue(hyperlinkType));
}
if (linkTarget == null)
{
linkTarget = JRHyperlinkHelper.getLinkTarget(HyperlinkTargetEnum.getByValue(hyperlinkTarget));
}
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
{
evaluationTimeValue = EvaluationTimeEnum.getByValue(evaluationTime);
}
}
示例3: readObject
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (linkType == null)
{
linkType = JRHyperlinkHelper.getLinkType(HyperlinkTypeEnum.getByValue(hyperlinkType));
}
if (linkTarget == null)
{
linkTarget = JRHyperlinkHelper.getLinkTarget(HyperlinkTargetEnum.getByValue(hyperlinkTarget));
}
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
{
evaluationTimeValue = EvaluationTimeEnum.getByValue(evaluationTime);
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_1_3)
{
legendPositionValue = EdgeEnum.getByValue(legendPosition);
titlePositionValue = EdgeEnum.getByValue(titlePosition);
showLegend = Boolean.valueOf(isShowLegend);
}
else
{
legendPositionValue = EdgeEnum.getByValue(legendPositionByte);
titlePositionValue = EdgeEnum.getByValue(titlePositionByte);
legendPositionByte = null;
titlePositionByte = null;
}
}
}
示例4: readObject
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (linkTarget == null)
{
linkTarget = JRHyperlinkHelper.getLinkTarget(HyperlinkTargetEnum.getByValue(hyperlinkTarget));
}
}
示例5: readObject
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
{
horizontalAlignmentValue = net.sf.jasperreports.engine.type.HorizontalAlignEnum.getByValue(horizontalAlignment);
verticalAlignmentValue = net.sf.jasperreports.engine.type.VerticalAlignEnum.getByValue(verticalAlignment);
scaleImageValue = ScaleImageEnum.getByValue(scaleImage);
onErrorTypeValue = OnErrorTypeEnum.getByValue(onErrorType);
evaluationTimeValue = EvaluationTimeEnum.getByValue(evaluationTime);
horizontalAlignment = null;
verticalAlignment = null;
scaleImage = null;
}
if (linkType == null)
{
linkType = JRHyperlinkHelper.getLinkType(HyperlinkTypeEnum.getByValue(hyperlinkType));
}
if (linkTarget == null)
{
linkTarget = JRHyperlinkHelper.getLinkTarget(HyperlinkTargetEnum.getByValue(hyperlinkTarget));
}
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_6_0_2)
{
horizontalImageAlign = net.sf.jasperreports.engine.type.HorizontalAlignEnum.getHorizontalImageAlignEnum(horizontalAlignmentValue);
verticalImageAlign = net.sf.jasperreports.engine.type.VerticalAlignEnum.getVerticalImageAlignEnum(verticalAlignmentValue);
horizontalAlignmentValue = null;
verticalAlignmentValue = null;
}
}
示例6: readObject
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (linkType == null)
{
linkType = JRHyperlinkHelper.getLinkType(HyperlinkTypeEnum.getByValue(hyperlinkType));
}
if (linkTarget == null)
{
linkTarget = JRHyperlinkHelper.getLinkTarget(HyperlinkTargetEnum.getByValue(hyperlinkTarget));
}
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
{
evaluationTimeValue = EvaluationTimeEnum.getByValue(evaluationTime);
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_1_3)
{
legendPositionValue = EdgeEnum.getByValue(legendPosition);
titlePositionValue = EdgeEnum.getByValue(titlePosition);
showLegend = Boolean.valueOf(isShowLegend);
}
else
{
legendPositionValue = EdgeEnum.getByValue(legendPositionByte);
titlePositionValue = EdgeEnum.getByValue(titlePositionByte);
legendPositionByte = null;
titlePositionByte = null;
}
}
}
示例7: readObject
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2)
{
horizontalAlignmentValue = net.sf.jasperreports.engine.type.HorizontalAlignEnum.getByValue(horizontalAlignment);
verticalAlignmentValue = net.sf.jasperreports.engine.type.VerticalAlignEnum.getByValue(verticalAlignment);
scaleImageValue = ScaleImageEnum.getByValue(scaleImage);
onErrorTypeValue = OnErrorTypeEnum.getByValue(onErrorType);
horizontalAlignment = null;
verticalAlignment = null;
scaleImage = null;
}
if (linkType == null)
{
linkType = JRHyperlinkHelper.getLinkType(HyperlinkTypeEnum.getByValue(hyperlinkType));
}
if (linkTarget == null)
{
linkTarget = JRHyperlinkHelper.getLinkTarget(HyperlinkTargetEnum.getByValue(hyperlinkTarget));
}
if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_6_0_2)
{
horizontalImageAlign = net.sf.jasperreports.engine.type.HorizontalAlignEnum.getHorizontalImageAlignEnum(horizontalAlignmentValue);
verticalImageAlign = net.sf.jasperreports.engine.type.VerticalAlignEnum.getVerticalImageAlignEnum(verticalAlignmentValue);
horizontalAlignmentValue = null;
verticalAlignmentValue = null;
}
}
示例8: hasItemHyperlinks
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
public boolean hasItemHyperlinks()
{
return !JRHyperlinkHelper.isEmpty(getItemHyperlink());
}
示例9: hasItemHyperlink
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
public boolean hasItemHyperlink()
{
return !JRHyperlinkHelper.isEmpty(getItemHyperlink());
}
示例10: hasSectionHyperlinks
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
public boolean hasSectionHyperlinks()
{
return !JRHyperlinkHelper.isEmpty(getSectionHyperlink());
}
示例11: getCustomDataset
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@Override
public Dataset getCustomDataset()
{
double total = 0;
List<Double> sortedValues = new ArrayList<Double>();
for(Number nv: values.values())
{
double dvalue = nv.doubleValue();
total += dvalue;
sortedValues.add(dvalue);
}
Collections.sort(sortedValues);
Double minValue = null;
if (getMinPercentage() != null && getMinPercentage().intValue() >= 0 && getMinPercentage().intValue() <= 100)//FIXMENOW why intValue?
{
minValue = new Double((getMinPercentage().doubleValue() * total) / 100);
}
if (getMaxCount() != null && getMaxCount().intValue() >= 0 && getMaxCount().intValue() <= values.size())
{
Double minValue2 = sortedValues.get(sortedValues.size() - getMaxCount().intValue());
minValue = minValue != null && minValue.doubleValue() > minValue2.doubleValue() ? minValue : minValue2;
}
int otherCount = 0;
Comparable<?> lastOtherKey = null;
Number lastOtherValue = null;
double otherTotal = 0;
DefaultPieDataset dataset = new DefaultPieDataset();
for(Iterator<Comparable<?>> it = values.keySet().iterator(); it.hasNext();)
{
Comparable<?> key = it.next();
Number value = values.get(key);
if (
minValue == null
|| value.doubleValue() >= minValue.doubleValue()
)
{
dataset.setValue(key, value);
}
else
{
otherCount++;
lastOtherKey = key;
lastOtherValue = value;
otherTotal += value.doubleValue();
}
}
if (otherCount == 1)
{
dataset.setValue(lastOtherKey, lastOtherValue);
}
else if (otherCount > 1)
{
otherKey = otherKey == null ? "Other" : otherKey;
dataset.setValue(otherKey, new Double(otherTotal));
labels.put(otherKey, otherLabel);
if (!JRHyperlinkHelper.isEmpty(getOtherSectionHyperlink()))
{
sectionHyperlinks.put(otherKey, otherSectionHyperlink);
}
}
return dataset;
}
示例12: getHyperlinkTypeValue
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@Override
public HyperlinkTypeEnum getHyperlinkTypeValue()
{
return JRHyperlinkHelper.getHyperlinkTypeValue(this);
}
示例13: getHyperlinkTarget
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@Override
public byte getHyperlinkTarget()
{
return JRHyperlinkHelper.getHyperlinkTarget(this);
}
示例14: getHyperlinkTargetValue
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@Override
public HyperlinkTargetEnum getHyperlinkTargetValue()
{
return JRHyperlinkHelper.getHyperlinkTargetValue(getLinkTarget());
}
示例15: getHyperlinkTypeValue
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@Override
public HyperlinkTypeEnum getHyperlinkTypeValue()
{
return JRHyperlinkHelper.getHyperlinkTypeValue(getLinkType());
}