Package gov.nasa.worldwind.symbology
Class AbstractTacticalSymbol.IconAtlasElement
- java.lang.Object
-
- gov.nasa.worldwind.util.TextureAtlasElement
-
- gov.nasa.worldwind.symbology.AbstractTacticalSymbol.IconAtlasElement
-
- All Implemented Interfaces:
Disposable
- Enclosing class:
- AbstractTacticalSymbol
protected static class AbstractTacticalSymbol.IconAtlasElement extends TextureAtlasElement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.util.TextureAtlasElement
TextureAtlasElement.RequestTask
-
-
Field Summary
Fields Modifier and Type Field Description protected long
lastUsed
Indicates the last time, in milliseconds, the element was requested or added.protected java.awt.Point
point
-
Fields inherited from class gov.nasa.worldwind.util.TextureAtlasElement
atlas, image, imageInitializationFailed, imageSource, listener
-
-
Constructor Summary
Constructors Constructor Description IconAtlasElement(TextureAtlas atlas, AbstractTacticalSymbol.IconSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.image.BufferedImage
createModifierImage()
java.awt.Point
getPoint()
protected boolean
loadImage()
Loads this element's image source into itsimage
property.void
setPoint(java.awt.Point point)
-
Methods inherited from class gov.nasa.worldwind.util.TextureAtlasElement
addAtlasImage, createRequestTask, dispose, equals, getImage, getImageSource, getSize, getTexCoords, getTextureAtlas, hashCode, isBufferedImageSource, isImageInitializationFailed, load, notifyImageLoaded, readImage, requestImage, setImage, toString
-
-
-
-
Constructor Detail
-
IconAtlasElement
public IconAtlasElement(TextureAtlas atlas, AbstractTacticalSymbol.IconSource source)
-
-
Method Detail
-
getPoint
public java.awt.Point getPoint()
-
setPoint
public void setPoint(java.awt.Point point)
-
loadImage
protected boolean loadImage()
Description copied from class:TextureAtlasElement
Loads this element's image source into itsimage
property. If the image source is a remote resource, this initiates a request for it and returnsnull
.- Overrides:
loadImage
in classTextureAtlasElement
- Returns:
true
if the image source has been loaded successfully, andfalse
otherwise.
-
createModifierImage
protected java.awt.image.BufferedImage createModifierImage()
-
-