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


Java ScaleImageEnum.getByValue方法代码示例

本文整理汇总了Java中net.sf.jasperreports.engine.type.ScaleImageEnum.getByValue方法的典型用法代码示例。如果您正苦于以下问题:Java ScaleImageEnum.getByValue方法的具体用法?Java ScaleImageEnum.getByValue怎么用?Java ScaleImageEnum.getByValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.sf.jasperreports.engine.type.ScaleImageEnum的用法示例。


在下文中一共展示了ScaleImageEnum.getByValue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readObject

import net.sf.jasperreports.engine.type.ScaleImageEnum; //导入方法依赖的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

示例2: readObject

import net.sf.jasperreports.engine.type.ScaleImageEnum; //导入方法依赖的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

示例3: readObject

import net.sf.jasperreports.engine.type.ScaleImageEnum; //导入方法依赖的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)
	{
		modeValue = ModeEnum.getByValue(mode);
		horizontalAlignmentValue = net.sf.jasperreports.engine.type.HorizontalAlignEnum.getByValue(horizontalAlignment);
		verticalAlignmentValue = net.sf.jasperreports.engine.type.VerticalAlignEnum.getByValue(verticalAlignment);
		rotationValue = RotationEnum.getByValue(rotation);
		lineSpacingValue = LineSpacingEnum.getByValue(lineSpacing);
		scaleImageValue = ScaleImageEnum.getByValue(scaleImage);
		fillValue = FillEnum.getByValue(fill);
		
		mode = null;
		horizontalAlignment = null;
		verticalAlignment = null;
		rotation = null;
		lineSpacing = null;
		scaleImage = null;
		fill = null;
	}

	if (isStyledText != null)
	{
		markup = isStyledText.booleanValue() ? JRCommonText.MARKUP_STYLED_TEXT : JRCommonText.MARKUP_NONE;
		isStyledText = null;
	}

	if (paragraph == null)
	{
		paragraph = new JRBaseParagraph(this);
		paragraph.setLineSpacing(lineSpacingValue);
		lineSpacingValue = null;
	}

	if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_5_5_2)
	{
		fontsize = fontSize == null ? null : fontSize.floatValue();

		fontSize = null;
	}

	if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_6_0_2)
	{
		horizontalTextAlign = net.sf.jasperreports.engine.type.HorizontalAlignEnum.getHorizontalTextAlignEnum(horizontalAlignmentValue);
		verticalTextAlign = net.sf.jasperreports.engine.type.VerticalAlignEnum.getVerticalTextAlignEnum(verticalAlignmentValue);

		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,代码行数:57,代码来源:JRBaseStyle.java

示例4: readObject

import net.sf.jasperreports.engine.type.ScaleImageEnum; //导入方法依赖的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 (renderer != null && renderable == null)
	{
		if (renderer instanceof Renderable)
		{
			renderable = (Renderable)renderer;
		}
		else
		{
			renderable = net.sf.jasperreports.engine.RenderableUtil.getWrappingRenderable(renderer);
		}
	}

	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,代码行数:49,代码来源:JRBasePrintImage.java


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