com.oziexplorer
Class Point

java.lang.Object
  extended by com.oziexplorer.Point

public class Point
extends Object

This class represents points.

Copyright 2011 Alan Burlison, . All rights reserved. Use is subject to license terms, see LICENSE.txt.
SourceForge.net


Field Summary
protected  double altitude
           
protected  String description1
           
protected  String description2
           
protected  String description3
           
protected  String name
           
protected  Position position
          Point position.
protected  int rotation
           
 
Constructor Summary
Point(Position position, String name, int rotation, String description1, String description2, String description3, double altitude)
          Create a new Point.
 
Method Summary
 boolean equals(Object that)
          Test if two points are equal.
 double getAltitude()
          Get the altitude of the point.
 String getDescription1()
          Get the first description line for the point.
 String getDescription2()
          Get the second description line for the point.
 String getDescription3()
          Get the third description line for the point.
 String getName()
          Get the name of the point.
 Position getPosition()
          Get the position of the point.
 int getRotation()
          Get the text rotation angle.
 int hashCode()
          Return the hash code for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

protected final Position position
Point position.


name

protected final String name

rotation

protected final int rotation

description1

protected final String description1

description2

protected final String description2

description3

protected final String description3

altitude

protected final double altitude
Constructor Detail

Point

public Point(Position position,
             String name,
             int rotation,
             String description1,
             String description2,
             String description3,
             double altitude)
Create a new Point.

Parameters:
position - position of the point.
name - name of the point.
rotation - rotation angle of the text.
description1 - first description line.
description2 - second description line.
description3 - third description line.
altitude - altitude of the point.
Method Detail

equals

public boolean equals(Object that)
Test if two points are equal. The position and name are compared.

Overrides:
equals in class Object
Parameters:
that - the object to compare against.
Returns:
true if the objects are equal.

hashCode

public int hashCode()
Return the hash code for this object.

Overrides:
hashCode in class Object
Returns:
the hash code for this object.

getAltitude

public double getAltitude()
Get the altitude of the point.

Returns:
the altitude of the point.

getDescription1

public String getDescription1()
Get the first description line for the point.

Returns:
the first description line for the point.

getDescription2

public String getDescription2()
Get the second description line for the point.

Returns:
the second description line for the point.

getDescription3

public String getDescription3()
Get the third description line for the point.

Returns:
the third description line for the point.

getName

public String getName()
Get the name of the point.

Returns:
the name of the point.

getPosition

public Position getPosition()
Get the position of the point.

Returns:
the position of the point.

getRotation

public int getRotation()
Get the text rotation angle.

Returns:
the text rotation angle.