create changelog entry
[debian/openrocket] / android-libraries / achartengine / src / org / achartengine / tools / ZoomEvent.java
1 /**\r
2  * Copyright (C) 2009 - 2012 SC 4ViewSoft SRL\r
3  *  \r
4  * Licensed under the Apache License, Version 2.0 (the "License");\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *  \r
8  *      http://www.apache.org/licenses/LICENSE-2.0\r
9  *  \r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an "AS IS" BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License.\r
15  */\r
16 package org.achartengine.tools;\r
17 \r
18 \r
19 /**\r
20  * A zoom event.\r
21  */\r
22 public class ZoomEvent {\r
23   /** A flag to be used to know if this is a zoom in or out. */\r
24   private boolean mZoomIn;\r
25   /** The zoom rate. */\r
26   private float mZoomRate;\r
27 \r
28   /**\r
29    * Builds the zoom tool.\r
30    * \r
31    * @param in zoom in or out\r
32    * @param rate the zoom rate\r
33    */\r
34   public ZoomEvent(boolean in, float rate) {\r
35     mZoomIn = in;\r
36     mZoomRate = rate;\r
37   }\r
38 \r
39   /**\r
40    * Returns the zoom type.\r
41    * \r
42    * @return true if zoom in, false otherwise\r
43    */\r
44   public boolean isZoomIn() {\r
45     return mZoomIn;\r
46   }\r
47   \r
48   /**\r
49    * Returns the zoom rate.\r
50    * \r
51    * @return the zoom rate\r
52    */\r
53   public float getZoomRate() {\r
54     return mZoomRate;\r
55   }\r
56 }\r