gov.nasa.worldwind.examples.util
Class ImageAnnotation
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.AbstractAnnotation
gov.nasa.worldwind.render.ScreenAnnotation
gov.nasa.worldwind.examples.util.ImageAnnotation
- All Implemented Interfaces:
- AVList, Disposable, Pickable, Annotation, Renderable, Restorable
- Direct Known Subclasses:
- ButtonAnnotation, DialogAnnotation.BusyImage
public class ImageAnnotation
- extends ScreenAnnotation
Method Summary |
protected void |
adjustTextureToSize(DrawContext dc,
int width,
int height,
AnnotationTexture texture)
|
protected void |
applyBackgroundTextureState(DrawContext dc,
int width,
int height,
double opacity,
AnnotationTexture texture)
|
protected void |
applyBackgroundTextureTransform(DrawContext dc,
int width,
int height,
AnnotationTexture texture)
|
protected void |
doDrawToolTip(DrawContext dc,
String text,
int x,
int y)
|
void |
drawContent(DrawContext dc,
int width,
int height,
double opacity,
Position pickPosition)
|
protected void |
drawToolTip(DrawContext dc)
|
protected Dimension |
getImageDimensions()
|
protected Dimension |
getImageDimensions(AnnotationTexture texture)
|
Object |
getImageSource()
|
Dimension |
getPreferredSize(DrawContext dc)
|
Point |
getToolTipPoint()
|
String |
getToolTipText()
|
boolean |
isEnableSmoothing()
|
boolean |
isFitSizeToImage()
|
boolean |
isShowToolTip()
|
boolean |
isUseImageAspectRatio()
|
boolean |
isUseMipmaps()
|
void |
setEnableSmoothing(boolean enable)
|
void |
setFitSizeToImage(boolean fitSizeToImage)
|
void |
setImageSource(Object source)
|
void |
setShowToolTip(boolean show)
|
void |
setToolTipPoint(Point toolTipPoint)
|
void |
setToolTipText(String toolTipText)
|
protected void |
setupAnnotationAttributes(Annotation annotation)
|
void |
setUseImageAspectRatio(boolean useImageAspectRatio)
|
void |
setUseMipmaps(boolean useMipmaps)
|
Methods inherited from class gov.nasa.worldwind.render.AbstractAnnotation |
addChild, adjustSizeToChildren, adjustSizeToText, applyScreenTransform, beginDraw, beginDrawChildren, bindPickableObject, computeFreeBounds, computeInsetBounds, computeOpacity, computeScale, computeTextBounds, dispose, doDraw, doDrawBackgroundTexture, doDrawChildren, draw, drawBackground, drawBackgroundImage, drawBorder, drawCallout, drawChildren, drawHTML, drawPlainText, drawText, drawText, drawTopLevelAnnotation, endDraw, endDrawChildren, getAnnotationTexture, getAttributes, getCachedImage, getChildren, getDelegateOwner, getLayout, getMultiLineTextRenderer, getPickSupport, getText, getTextBounds, getTextRenderer, getWrappedText, glPointFromAWTPoint, isAlwaysOnTop, isPickEnabled, modulateColorOpacity, pick, removeAllChildren, removeChild, render, renderNow, setAlwaysOnTop, setAttributes, setCachedImage, setDelegateOwner, setDrawColor, setLayout, setPickEnabled, setPickSupport, setText, transformByModelview, wrapText |
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
enableSmoothing
protected boolean enableSmoothing
fitSizeToImage
protected boolean fitSizeToImage
showToolTip
protected boolean showToolTip
toolTipPoint
protected Point toolTipPoint
toolTipText
protected String toolTipText
useImageAspectRatio
protected boolean useImageAspectRatio
useMipmaps
protected boolean useMipmaps
ImageAnnotation
public ImageAnnotation()
ImageAnnotation
public ImageAnnotation(Object imageSource)
adjustTextureToSize
protected void adjustTextureToSize(DrawContext dc,
int width,
int height,
AnnotationTexture texture)
applyBackgroundTextureState
protected void applyBackgroundTextureState(DrawContext dc,
int width,
int height,
double opacity,
AnnotationTexture texture)
- Overrides:
applyBackgroundTextureState
in class AbstractAnnotation
applyBackgroundTextureTransform
protected void applyBackgroundTextureTransform(DrawContext dc,
int width,
int height,
AnnotationTexture texture)
- Overrides:
applyBackgroundTextureTransform
in class AbstractAnnotation
doDrawToolTip
protected void doDrawToolTip(DrawContext dc,
String text,
int x,
int y)
drawContent
public void drawContent(DrawContext dc,
int width,
int height,
double opacity,
Position pickPosition)
- Overrides:
drawContent
in class AbstractAnnotation
drawToolTip
protected void drawToolTip(DrawContext dc)
getImageDimensions
protected Dimension getImageDimensions()
getImageDimensions
protected Dimension getImageDimensions(AnnotationTexture texture)
getImageSource
public Object getImageSource()
getPreferredSize
public Dimension getPreferredSize(DrawContext dc)
- Specified by:
getPreferredSize
in interface Annotation
- Overrides:
getPreferredSize
in class AbstractAnnotation
getToolTipPoint
public Point getToolTipPoint()
getToolTipText
public String getToolTipText()
isEnableSmoothing
public boolean isEnableSmoothing()
isFitSizeToImage
public boolean isFitSizeToImage()
isShowToolTip
public boolean isShowToolTip()
isUseImageAspectRatio
public boolean isUseImageAspectRatio()
isUseMipmaps
public boolean isUseMipmaps()
setEnableSmoothing
public void setEnableSmoothing(boolean enable)
setFitSizeToImage
public void setFitSizeToImage(boolean fitSizeToImage)
setImageSource
public void setImageSource(Object source)
setShowToolTip
public void setShowToolTip(boolean show)
setToolTipPoint
public void setToolTipPoint(Point toolTipPoint)
setToolTipText
public void setToolTipText(String toolTipText)
setupAnnotationAttributes
protected void setupAnnotationAttributes(Annotation annotation)
setUseImageAspectRatio
public void setUseImageAspectRatio(boolean useImageAspectRatio)
setUseMipmaps
public void setUseMipmaps(boolean useMipmaps)