Package de.lessvoid.nifty.render.image

Examples of de.lessvoid.nifty.render.image.ImageMode


      return;
    }
   
  String areaProviderProperty = new ImageModeHelper().getAreaProviderProperty(attributes.getAttributes());
  String renderStrategyProperty = new ImageModeHelper().getRenderStrategyProperty(attributes.getAttributes());
    ImageMode imageMode = convert.imageMode(areaProviderProperty, renderStrategyProperty);

    image.setImageMode(imageMode);
    imageRenderer.setImage(image);
  }
View Full Code Here


      return;
    }

  String areaProviderProperty = new ImageModeHelper().getAreaProviderProperty(attributes.getAttributes());
  String renderStrategyProperty = new ImageModeHelper().getRenderStrategyProperty(attributes.getAttributes());
    ImageMode imageMode = convert.imageMode(areaProviderProperty, renderStrategyProperty);

    image.setImageMode(imageMode);
    imageRenderer.setImage(image);
   
    imageRenderer.setInset(convert.insetSizeValue(attributes.get("inset"), image.getHeight()));

    Size imageDimension = imageMode.getImageNativeSize(image);
    if (element.getConstraintWidth() == null) {
      element.setConstraintWidth(convert.sizeValue(imageDimension.getWidth() + "px"));
    }
    if (element.getConstraintHeight() == null) {
      element.setConstraintHeight(convert.sizeValue(imageDimension.getHeight() + "px"));
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.render.image.ImageMode

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.