Package de.lessvoid.nifty

Examples of de.lessvoid.nifty.Size


    return new Box(0, 0, renderImage.getWidth(), renderImage.getHeight());
  }

  @Override
  public Size getNativeSize(NiftyImage image) {
    return new Size(image.getWidth(), image.getHeight());
  }
View Full Code Here


    return m_subImageArea;
  }

  @Override
  public Size getNativeSize(NiftyImage image) {
    return new Size(image.getWidth(), image.getHeight());
  }
View Full Code Here

    return new Box(imageX, imageY, m_width, m_height);
  }

  @Override
  public Size getNativeSize(NiftyImage image) {
    return new Size(m_width, m_height);
  }
View Full Code Here

    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.Size

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.