Docmosis API 4.5.0

com.docmosis.document
Class ImageScalingDefault

java.lang.Object
  extended bycom.docmosis.document.ImageScalingDefault

public class ImageScalingDefault
extends Object

This class provides constants for the types of image scaling available when images are inserted into a template. Use these constants with a RenderRequest to specify the default behaviour for image scaling for the render being invoked.

See Also:
RenderRequest.setImageSupplier(com.docmosis.template.population.ImageSupplier)

Field Summary
static ImageScalingDefault FIT
          Use this constant to specify default images should scale to fit preserving aspect ratio
static ImageScalingDefault STRETCH
          Use this constant to specify default images should stretch to fit both x and y
static ImageScalingDefault SYSTEM_SETTINGS
          Use this constant to specify default images should just do system default (docmosis.analyzer.image.scaling.default property)
 
Method Summary
 boolean equals(Object obj)
           
 String getValue()
           
 int hashCode()
           
static ImageScalingDefault valueOf(String value)
          Find the ImageScalingDefault matching the given value
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_SETTINGS

public static ImageScalingDefault SYSTEM_SETTINGS
Use this constant to specify default images should just do system default (docmosis.analyzer.image.scaling.default property)


STRETCH

public static ImageScalingDefault STRETCH
Use this constant to specify default images should stretch to fit both x and y


FIT

public static ImageScalingDefault FIT
Use this constant to specify default images should scale to fit preserving aspect ratio

Method Detail

getValue

public String getValue()

valueOf

public static ImageScalingDefault valueOf(String value)
Find the ImageScalingDefault matching the given value

Parameters:
value -
Returns:
SYSTEM_SETTINGS if not found or null given

hashCode

public int hashCode()

equals

public boolean equals(Object obj)

Docmosis API 4.5.0

Copyright © 2014 Docmosis Pty Ltd. All Rights Reserved.