Class PlaceNameLayer.PlaceNameChunk
- java.lang.Object
-
- gov.nasa.worldwind.layers.placename.PlaceNameLayer.PlaceNameChunk
-
- All Implemented Interfaces:
Cacheable
- Enclosing class:
- PlaceNameLayer
protected static class PlaceNameLayer.PlaceNameChunk extends java.lang.Object implements Cacheable
-
-
Field Summary
Fields Modifier and Type Field Description protected long
estimatedMemorySize
protected double[]
latlonArray
protected int
numEntries
protected PlaceNameService
placeNameService
protected java.nio.CharBuffer
textArray
protected int[]
textIndexArray
-
Constructor Summary
Constructors Modifier Constructor Description protected
PlaceNameChunk(PlaceNameService service, java.nio.CharBuffer text, int[] textIndices, double[] positions, int numEntries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
computeEstimatedMemorySize()
protected PlaceNameService
getPlaceNameService()
protected Position
getPosition(int index)
long
getSizeInBytes()
Retrieves the approximate size of this object in bytes.protected java.lang.CharSequence
getText(int index)
protected java.lang.Iterable<GeographicText>
makeIterable(DrawContext dc)
-
-
-
Field Detail
-
placeNameService
protected final PlaceNameService placeNameService
-
textArray
protected final java.nio.CharBuffer textArray
-
textIndexArray
protected final int[] textIndexArray
-
latlonArray
protected final double[] latlonArray
-
numEntries
protected final int numEntries
-
estimatedMemorySize
protected final long estimatedMemorySize
-
-
Constructor Detail
-
PlaceNameChunk
protected PlaceNameChunk(PlaceNameService service, java.nio.CharBuffer text, int[] textIndices, double[] positions, int numEntries)
-
-
Method Detail
-
computeEstimatedMemorySize
protected long computeEstimatedMemorySize()
-
getPosition
protected Position getPosition(int index)
-
getPlaceNameService
protected PlaceNameService getPlaceNameService()
-
getText
protected java.lang.CharSequence getText(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 interfaceCacheable
- Returns:
- this
Cacheable
object's size in bytes
-
makeIterable
protected java.lang.Iterable<GeographicText> makeIterable(DrawContext dc)
-
-