jwo.landserf.structure
Class VectorObject

java.lang.Object
  extended by jwo.landserf.structure.VectorObject
All Implemented Interfaces:
Serializable

Deprecated. Should use GISVector. This class is only maintained to allow deserialization of vectors saved in pre 2.0 format.

public class VectorObject
extends Object
implements Serializable

Stores single vector objects (points, lines or areas) for older versions of LandSerf files. This cut down version (in comparison with version 1.8 and below) is maintained for backward compatibility only.

Version:
2.3, 8th September, 2002.
Author:
Jo Wood
See Also:
Serialized Form

Field Summary
static int AREA
          Deprecated. Area vector type.
static int FLOW
          Deprecated. Flow vector type.
static int LINE
          Deprecated. Line vector type.
static int POINT
          Deprecated. Point vector type.
static int TIN
          Deprecated. Triangulated Irregular Network vector type.
 
Constructor Summary
VectorObject()
          Deprecated.  
 
Method Summary
 float getAttribute()
          Deprecated. Reports the attribute of the vector object.
 int getType()
          Deprecated. Reports the type of vector object (POINT, LINE etc.).
 float[] getX()
          Deprecated. Returns the array of X coordinates making up the vector object.
 float[] getY()
          Deprecated. Returns the array of Y coordinates making up the vector object.
 float[] getZ()
          Deprecated. Returns the array of Z coordinates making up the vector object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POINT

public static final int POINT
Deprecated. 
Point vector type.

See Also:
Constant Field Values

LINE

public static final int LINE
Deprecated. 
Line vector type.

See Also:
Constant Field Values

AREA

public static final int AREA
Deprecated. 
Area vector type.

See Also:
Constant Field Values

FLOW

public static final int FLOW
Deprecated. 
Flow vector type.

See Also:
Constant Field Values

TIN

public static final int TIN
Deprecated. 
Triangulated Irregular Network vector type.

See Also:
Constant Field Values
Constructor Detail

VectorObject

public VectorObject()
Deprecated. 
Method Detail

getX

public float[] getX()
Deprecated. 
Returns the array of X coordinates making up the vector object.

Returns:
X coordinate array.

getY

public float[] getY()
Deprecated. 
Returns the array of Y coordinates making up the vector object.

Returns:
Y coordinate array.

getZ

public float[] getZ()
Deprecated. 
Returns the array of Z coordinates making up the vector object. This will be null of z coordinates have not been initialised with initZ().

Returns:
Z coordinate array.

getType

public int getType()
Deprecated. 
Reports the type of vector object (POINT, LINE etc.).

Returns:
Vector object type (POINT, LINE etc.).

getAttribute

public float getAttribute()
Deprecated. 
Reports the attribute of the vector object.

Returns:
Vector object attribute.


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009