Package ch.entwine.weblounge.common.site

Examples of ch.entwine.weblounge.common.site.ImageScalingMode


    // Preview
    boolean preview = ConfigurationUtils.isTrue(XPathHelper.valueOf(node, "@preview", xpath), false);

    // Scaling mode
    String mode = XPathHelper.valueOf(node, "m:scalingmode", xpath);
    ImageScalingMode scalingMode = mode == null ? None : ImageScalingMode.parseString(mode);

    if (Width.equals(scalingMode) && width <= 0)
      throw new IllegalStateException("Width scaling needs positive width");
    if (Height.equals(scalingMode) && height <= 0)
      throw new IllegalStateException("Height scaling needs positive height");
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.site.ImageScalingMode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.