gov.nasa.worldwind.render
Class AbstractAnnotation.AnnotationTexture
java.lang.Object
gov.nasa.worldwind.render.AbstractAnnotation.AnnotationTexture
- All Implemented Interfaces:
- Cacheable
- Enclosing class:
- AbstractAnnotation
protected static class AbstractAnnotation.AnnotationTexture
- extends Object
- implements Cacheable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAnnotation.AnnotationTexture
public AbstractAnnotation.AnnotationTexture(Object source)
applyTransform
public void applyTransform(DrawContext dc,
AnnotationAttributes attributes)
bind
public boolean bind(DrawContext dc)
getImageDimensionsFromSource
protected int[] getImageDimensionsFromSource()
getImageFromSource
protected BufferedImage getImageFromSource()
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
getSizeOfSource
protected long getSizeOfSource()
getSource
public Object getSource()
getSourceDimensions
public int[] getSourceDimensions()
getTexture
public Texture getTexture(DrawContext dc)
getTexture
protected Texture getTexture(TextureCache cache)
initializeTexture
protected Texture initializeTexture(DrawContext dc)
setTexture
protected void setTexture(TextureCache cache,
Texture t)