001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.io.Serializable;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class SpriteImage implements Serializable {
023    
024            public SpriteImage(
025                    String spriteFileName, String imageFileName, int offset, int height,
026                    int width) {
027    
028                    _spriteFileName = spriteFileName;
029                    _imageFileName = imageFileName;
030                    _offset = offset;
031                    _height = height;
032                    _width = width;
033            }
034    
035            public int getHeight() {
036                    return _height;
037            }
038    
039            public String getImageFileName() {
040                    return _imageFileName;
041            }
042    
043            public int getOffset() {
044                    return _offset;
045            }
046    
047            public String getSpriteFileName() {
048                    return _spriteFileName;
049            }
050    
051            public int getWidth() {
052                    return _width;
053            }
054    
055            private int _height;
056            private String _imageFileName;
057            private int _offset;
058            private String _spriteFileName;
059            private int _width;
060    
061    }