NASA World Wind

gov.nasa.worldwind.layers.placename
Class PlaceNameLayer.PlaceNameChunk

java.lang.Object
  extended by gov.nasa.worldwind.layers.placename.PlaceNameLayer.PlaceNameChunk
All Implemented Interfaces:
Cacheable
Enclosing class:
PlaceNameLayer

protected static class PlaceNameLayer.PlaceNameChunk
extends Object
implements Cacheable


Field Summary
protected  long estimatedMemorySize
           
protected  double[] latlonArray
           
protected  int numEntries
           
protected  PlaceNameService placeNameService
           
protected  CharBuffer textArray
           
protected  int[] textIndexArray
           
 
Constructor Summary
protected PlaceNameLayer.PlaceNameChunk(PlaceNameService service, CharBuffer text, int[] textIndices, double[] positions, int numEntries)
           
 
Method Summary
protected  long computeEstimatedMemorySize()
           
protected  PlaceNameService getPlaceNameService()
           
protected  Position getPosition(int index)
           
 long getSizeInBytes()
          Retrieves the approximate size of this object in bytes.
protected  CharSequence getText(int index)
           
protected  Iterable<GeographicText> makeIterable(DrawContext dc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

estimatedMemorySize

protected final long estimatedMemorySize

latlonArray

protected final double[] latlonArray

numEntries

protected final int numEntries

placeNameService

protected final PlaceNameService placeNameService

textArray

protected final CharBuffer textArray

textIndexArray

protected final int[] textIndexArray
Constructor Detail

PlaceNameLayer.PlaceNameChunk

protected PlaceNameLayer.PlaceNameChunk(PlaceNameService service,
                                        CharBuffer text,
                                        int[] textIndices,
                                        double[] positions,
                                        int numEntries)
Method Detail

computeEstimatedMemorySize

protected long computeEstimatedMemorySize()

getPlaceNameService

protected PlaceNameService getPlaceNameService()

getPosition

protected Position getPosition(int index)

getSizeInBytes

public long getSizeInBytes()
Description copied from interface: Cacheable
Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size for smaller objects, but use approximate values for objects that include such large components that the approximation would produce an error so small that the extra computation would be wasteful.

Specified by:
getSizeInBytes in interface Cacheable
Returns:
this Cacheable object's size in bytes

getText

protected CharSequence getText(int index)

makeIterable

protected Iterable<GeographicText> makeIterable(DrawContext dc)

NASA World Wind