1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  /**
20   * <a href="SpriteImage.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class SpriteImage implements Serializable {
25  
26      public SpriteImage(
27          String spriteFileName, String imageFileName, int offset, int height,
28          int width) {
29  
30          _spriteFileName = spriteFileName;
31          _imageFileName = imageFileName;
32          _offset = offset;
33          _height = height;
34          _width = width;
35      }
36  
37      public String getSpriteFileName() {
38          return _spriteFileName;
39      }
40  
41      public String getImageFileName() {
42          return _imageFileName;
43      }
44  
45      public int getOffset() {
46          return _offset;
47      }
48  
49      public int getHeight() {
50          return _height;
51      }
52  
53      public int getWidth() {
54          return _width;
55      }
56  
57      private String _spriteFileName;
58      private String _imageFileName;
59      private int _offset;
60      private int _height;
61      private int _width;
62  
63  }