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 longestimatedMemorySizeprotected double[]latlonArrayprotected intnumEntriesprotected PlaceNameServiceplaceNameServiceprotected java.nio.CharBuffertextArrayprotected int[]textIndexArray
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlaceNameChunk(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 longcomputeEstimatedMemorySize()protected PlaceNameServicegetPlaceNameService()protected PositiongetPosition(int index)longgetSizeInBytes()Retrieves the approximate size of this object in bytes.protected java.lang.CharSequencegetText(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:CacheableRetrieves 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:
getSizeInBytesin interfaceCacheable- Returns:
- this
Cacheableobject's size in bytes
-
makeIterable
protected java.lang.Iterable<GeographicText> makeIterable(DrawContext dc)
-
-