com.partnersoft.maps.model
Class RoverBytes

java.lang.Object
  extended by com.partnersoft.maps.model.RoverBytes
All Implemented Interfaces:
RoverConstants

public class RoverBytes
extends java.lang.Object
implements RoverConstants

A packet of rover bytecode along with any parameters needed for interpretation.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Field Summary
 ByteBuffer bytes
           
 TiledRoverSet dataSet
           
 int geometryType
           
 double originX
           
 double originY
           
 boolean tiled
           
 int tileLOD
           
 double tileSize
           
 int tileX
           
 int tileY
           
 
Fields inherited from interface com.partnersoft.io.formats.rover.RoverConstants
ALIGN_BOTTOM_CENTER, ALIGN_BOTTOM_FIT, ALIGN_BOTTOM_LEFT, ALIGN_BOTTOM_RIGHT, ALIGN_CENTER, ALIGN_CENTER_LEFT, ALIGN_CENTER_RIGHT, ALIGN_CODE_CENTER, ALIGN_CODE_FIT, ALIGN_CODE_HIGH, ALIGN_CODE_LOW, ALIGN_FIT, ALIGN_FIT_LEFT, ALIGN_FIT_RIGHT, ALIGN_TOP_CENTER, ALIGN_TOP_FIT, ALIGN_TOP_LEFT, ALIGN_TOP_RIGHT, COMMENT, DATA_FIELDS_MAX, EOF, FLOAT_COORDS, GEOMETRY_TYPE_NAMES, HAS_DATA, HAS_OFFSET, HAS_ROTATION, LIST, MASK_TYPECODE, NAMING, POINT, POLYGON, POLYLINE, POP, PUSH, RENDER_FINDITEM, RENDER_INDICATION, RENDER_NORMAL, RENDER_SELECTION, ROTATION_MULT, TEXEL_COORD_MAX, TEXEL_COORD_SIZE, TEXT, TILE_COORD_MAX, TILE_SIZE_PIXELS, VALUE
 
Constructor Summary
protected RoverBytes()
           
  RoverBytes(byte[] bytes)
           
  RoverBytes(ByteBuffer bytes)
           
  RoverBytes(TiledRoverSet dataSet, int geometryType, int tileLOD, int tileX, int tileY)
           
 
Method Summary
 java.lang.Object clone()
           
 RoverBytes copy()
           
 long generateKey()
           
 java.lang.String generateKeyString()
           
 boolean isEmpty()
           
 java.lang.String readASCII(int length)
           
 Point readCoord(boolean floatCoords)
           
 Point readCoordNearest(double x, double y)
           
 Point readFirstCoord()
           
 float readFloat()
           
 int readInt8()
           
 int readUInt16()
           
 int readUInt32()
           
 int readUInt8()
           
 void reset()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tiled

public boolean tiled

tileLOD

public int tileLOD

tileX

public int tileX

tileY

public int tileY

geometryType

public int geometryType

originX

public double originX

originY

public double originY

tileSize

public double tileSize

bytes

public ByteBuffer bytes

dataSet

public TiledRoverSet dataSet
Constructor Detail

RoverBytes

public RoverBytes(TiledRoverSet dataSet,
                  int geometryType,
                  int tileLOD,
                  int tileX,
                  int tileY)

RoverBytes

public RoverBytes(ByteBuffer bytes)

RoverBytes

public RoverBytes(byte[] bytes)

RoverBytes

protected RoverBytes()
Method Detail

copy

public RoverBytes copy()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

generateKey

public long generateKey()

generateKeyString

public java.lang.String generateKeyString()

reset

public void reset()

readUInt8

public int readUInt8()

readInt8

public int readInt8()

readUInt16

public int readUInt16()

readUInt32

public int readUInt32()

readFloat

public float readFloat()

isEmpty

public boolean isEmpty()

readASCII

public java.lang.String readASCII(int length)

readFirstCoord

public Point readFirstCoord()

readCoord

public Point readCoord(boolean floatCoords)

readCoordNearest

public Point readCoordNearest(double x,
                              double y)