Package com.volantis.map.sti.model

Examples of com.volantis.map.sti.model.Image


     * @param prefix prefix of parameter where parameter can be found.
     * @return image model object.
     * @throws ConverterException
     */
    private Image getImage() throws ConverterException {
        Image image = new Image();

        setMediaParameters(image);

        String limitParameter = getParameterValue(ParameterNames.MAX_IMAGE_SIZE);

        if (limitParameter != null) {
            image.setSizeLimit(Long.parseLong(limitParameter));
        }

        // Set image width
        image.setWidth(getIntParameterValue(ParameterNames.IMAGE_WIDTH, 0));

        // Set image transformations
        Transformations transformations = getTransformations();

        if (null != transformations) {
            image.setTransformations(transformations);
        }

        return image;
    }
View Full Code Here

TOP

Related Classes of com.volantis.map.sti.model.Image

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.