Source code: com/eireneh/bible/control/map/Position.java
1
2 package com.eireneh.bible.control.map;
3
4 import java.io.*;
5
6 /**
7 * A Position is simply an array of floats that specify a place for a
8 * Node to be.
9 *
10 * <table border='1' cellPadding='3' cellSpacing='0' width="100%">
11 * <tr><td bgColor='white'class='TableRowColor'><font size='-7'>
12 * Distribution Licence:<br />
13 * Project B is free software; you can redistribute it
14 * and/or modify it under the terms of the GNU General Public License,
15 * version 2 as published by the Free Software Foundation.<br />
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.<br />
20 * The License is available on the internet
21 * <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, by writing to
22 * <i>Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
23 * MA 02111-1307, USA</i>, Or locally at the Licence link below.<br />
24 * The copyright to this program is held by it's authors.
25 * </font></td></tr></table>
26 * @see <a href='http://www.eireneh.com/servlets/Web'>Project B Home</a>
27 * @see docs.Licence
28 * @author Joe Walker
29 * @version D0.I0.T0
30 */
31 public class Position implements Serializable
32 {
33 /**
34 * Basic constructor
35 */
36 public Position(float[] pos)
37 {
38 this.pos = pos;
39 }
40
41 /**
42 * Accessor for the array of positions
43 * @return The array of positions
44 */
45 public float[] getPosition()
46 {
47 return pos;
48 }
49
50 /**
51 * Accessor for the array of positions
52 * @return The array of positions
53 */
54 public void setPosition(float[] pos)
55 {
56 this.pos = pos;
57 }
58
59 /** The array of floats */
60 protected float[] pos;
61
62 /** Serialization ID - a serialization of pos */
63 static final long serialVersionUID = -2737633670295539140L;
64 }