Package ch.entwine.weblounge.common.impl.content.image

Examples of ch.entwine.weblounge.common.impl.content.image.ImageStyleImpl


    action.setIdentifier(actionIdentifier);

    renderer = new PageletRendererImpl();
    renderer.setIdentifier(rendererIdentifier);

    imageStyle = new ImageStyleImpl(imageStyleIdentifier);
  }
View Full Code Here


  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    imageURL = JAIPreviewGeneratorTest.class.getResource(imagePath).toURI().toURL();

    styles = new ArrayList<ImageStyle>();
    styles.add(new ImageStyleImpl("box", (int) styleWidth, (int) styleHeight, ImageScalingMode.Box, false, false));
    styles.add(new ImageStyleImpl("cover", (int) styleWidth, (int) styleHeight, ImageScalingMode.Cover, false, false));
    styles.add(new ImageStyleImpl("fill", (int) styleWidth, (int) styleHeight, ImageScalingMode.Fill, false, false));
    styles.add(new ImageStyleImpl("width", (int) styleWidth, (int) styleHeight, ImageScalingMode.Width, false, false));
    styles.add(new ImageStyleImpl("height", (int) styleWidth, (int) styleHeight, ImageScalingMode.Height, false, false));
    styles.add(new ImageStyleImpl("none", (int) styleWidth, (int) styleHeight, ImageScalingMode.None, false, false));

    // Make sure it's working on headless systems
    System.setProperty("java.awt.headless", "true");
    System.setProperty("weblounge.jai", Boolean.TRUE.toString());
  }
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.impl.content.image.ImageStyleImpl

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.