当前位置: 首页>>代码示例>>Java>>正文


Java JRHyperlinkHelper类代码示例

本文整理汇总了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);
	}		
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:20,代码来源:JRFillPieDataset.java

示例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);
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:21,代码来源:JRBaseTextField.java

示例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;
		}
		
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:37,代码来源:JRBaseChart.java

示例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));
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:11,代码来源:JRBasePrintHyperlink.java

示例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;
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:38,代码来源:JRBaseImage.java

示例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;
		}
		
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:36,代码来源:JRDesignChart.java

示例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;
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:37,代码来源:JRTemplateImage.java

示例8: hasItemHyperlinks

import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
public boolean hasItemHyperlinks()
{
	return !JRHyperlinkHelper.isEmpty(getItemHyperlink()); 
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:5,代码来源:JRFillXyzSeries.java

示例9: hasItemHyperlink

import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
public boolean hasItemHyperlink()
{
	return !JRHyperlinkHelper.isEmpty(getItemHyperlink()); 
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:5,代码来源:JRFillTimeSeries.java

示例10: hasSectionHyperlinks

import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
public boolean hasSectionHyperlinks()
{
	return !JRHyperlinkHelper.isEmpty(getSectionHyperlink()); 
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:5,代码来源:JRFillPieSeries.java

示例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;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:69,代码来源:JRFillPieDataset.java

示例12: getHyperlinkTypeValue

import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@Override
public HyperlinkTypeEnum getHyperlinkTypeValue()
{
	return JRHyperlinkHelper.getHyperlinkTypeValue(this);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:6,代码来源:JRBaseChart.java

示例13: getHyperlinkTarget

import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@Override
public byte getHyperlinkTarget()
{
	return JRHyperlinkHelper.getHyperlinkTarget(this);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:6,代码来源:JRBaseChart.java

示例14: getHyperlinkTargetValue

import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@Override
public HyperlinkTargetEnum getHyperlinkTargetValue()
{
	return JRHyperlinkHelper.getHyperlinkTargetValue(getLinkTarget());
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:6,代码来源:JRBasePrintHyperlink.java

示例15: getHyperlinkTypeValue

import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入依赖的package包/类
@Override
public HyperlinkTypeEnum getHyperlinkTypeValue()
{
	return JRHyperlinkHelper.getHyperlinkTypeValue(getLinkType());
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:6,代码来源:JRBasePrintHyperlink.java


注:本文中的net.sf.jasperreports.engine.JRHyperlinkHelper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。