Class DialogAnnotation
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.render.AbstractAnnotation
-
- gov.nasa.worldwind.render.GlobeAnnotation
-
- gov.nasa.worldwindx.examples.util.DialogAnnotation
-
- All Implemented Interfaces:
AVList,Disposable,Draggable,Locatable,Movable,Annotation,Renderable,Restorable,java.awt.event.ActionListener,java.util.EventListener
- Direct Known Subclasses:
AudioPlayerAnnotation,SlideShowAnnotation
public abstract class DialogAnnotation extends GlobeAnnotation implements java.awt.event.ActionListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDialogAnnotation.BusyImage-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractAnnotation
AbstractAnnotation.TextCacheKey
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanbusyprotected static java.lang.StringBUSY_IMAGE_PATHprotected ImageAnnotationbusyImageprotected static java.lang.StringCLOSE_IMAGE_PATHprotected static java.lang.StringCLOSE_TOOLTIP_TEXTprotected ButtonAnnotationcloseButtonprotected static java.lang.StringDEPRESSED_MASK_PATHprotected javax.swing.event.EventListenerListlistenerList-
Fields inherited from class gov.nasa.worldwind.render.GlobeAnnotation
altitudeMode, dragEnabled, draggableSupport, heightInMeter, position
-
Fields inherited from class gov.nasa.worldwind.render.AbstractAnnotation
alwaysOnTop, attributes, childList, delegateOwner, layoutManager, maxActiveAltitude, minActiveAltitude, pickEnabled, pickSupport, text, textBoundsMap, vertexBuffer, wrappedTextMap
-
Fields inherited from interface gov.nasa.worldwind.render.Annotation
ANTIALIAS_DONT_CARE, ANTIALIAS_FASTEST, ANTIALIAS_NICEST
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDialogAnnotation(Position position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidaddActionListener(java.awt.event.ActionListener listener)protected voidfireActionPerformed(java.awt.event.ActionEvent e)java.awt.event.ActionListener[]getActionListeners()ImageAnnotationgetBusyImage()ButtonAnnotationgetCloseButton()protected voidinitComponents()booleanisBusy()protected voidlayoutComponents()voidremoveActionListener(java.awt.event.ActionListener listener)voidsetBusy(boolean busy)protected voidsetupContainer(Annotation annotation)protected voidsetupDefaultAttributes(AnnotationAttributes attributes)protected voidsetupLabel(Annotation annotation)-
Methods inherited from class gov.nasa.worldwind.render.GlobeAnnotation
computeBounds, computeDistanceScaleAndOpacity, computeLookAtDistance, doDrag, doRenderNow, drag, getAltitudeMode, getAnnotationDrawPoint, getAnnotationDrawPointLegacy, getHeightInMeter, getPosition, getReferencePosition, getRestorableState, isDragEnabled, move, moveTo, restoreState, setAltitudeMode, setDepthFunc, setDragEnabled, setHeightInMeter, setPosition
-
Methods inherited from class gov.nasa.worldwind.render.AbstractAnnotation
addChild, adjustSizeToChildren, adjustSizeToText, applyBackgroundTextureState, applyColor, applyScreenTransform, beginDraw, beginDrawChildren, bindPickableObject, computeBoundingRectangle, computeFreeBounds, computeInsetBounds, computeOpacity, computeScale, computeTextBounds, dispose, doDraw, doDrawBackgroundTexture, doDrawChildren, draw, drawBackground, drawBackgroundImage, drawBorder, drawCallout, drawChildren, drawContent, drawHTML, drawPlainText, drawText, drawText, drawTopLevelAnnotation, endDraw, endDrawChildren, getAttributes, getBounds, getChildren, getDelegateOwner, getLayout, getMaxActiveAltitude, getMinActiveAltitude, getMultiLineTextRenderer, getPickSupport, getPreferredSize, getText, getTextBounds, getTextRenderer, getWrappedText, glPointFromAWTPoint, isAlwaysOnTop, isPickEnabled, modulateColorOpacity, pick, removeAllChildren, removeChild, render, renderNow, setAlwaysOnTop, setAttributes, setDelegateOwner, setLayout, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setPickSupport, setText, transformBackgroundImageCoordsToAnnotationCoords, transformByModelview, transformImageCoordsToBackgroundImageCoords, wrapText
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
-
-
-
Field Detail
-
CLOSE_IMAGE_PATH
protected static final java.lang.String CLOSE_IMAGE_PATH
- See Also:
- Constant Field Values
-
BUSY_IMAGE_PATH
protected static final java.lang.String BUSY_IMAGE_PATH
- See Also:
- Constant Field Values
-
DEPRESSED_MASK_PATH
protected static final java.lang.String DEPRESSED_MASK_PATH
- See Also:
- Constant Field Values
-
CLOSE_TOOLTIP_TEXT
protected static final java.lang.String CLOSE_TOOLTIP_TEXT
- See Also:
- Constant Field Values
-
busy
protected boolean busy
-
closeButton
protected ButtonAnnotation closeButton
-
busyImage
protected ImageAnnotation busyImage
-
listenerList
protected javax.swing.event.EventListenerList listenerList
-
-
Constructor Detail
-
DialogAnnotation
protected DialogAnnotation(Position position)
-
-
Method Detail
-
isBusy
public boolean isBusy()
-
setBusy
public void setBusy(boolean busy)
-
getCloseButton
public ButtonAnnotation getCloseButton()
-
getBusyImage
public ImageAnnotation getBusyImage()
-
getActionListeners
public java.awt.event.ActionListener[] getActionListeners()
-
addActionListener
public void addActionListener(java.awt.event.ActionListener listener)
-
removeActionListener
public void removeActionListener(java.awt.event.ActionListener listener)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
fireActionPerformed
protected void fireActionPerformed(java.awt.event.ActionEvent e)
-
initComponents
protected void initComponents()
-
layoutComponents
protected void layoutComponents()
-
setupContainer
protected void setupContainer(Annotation annotation)
-
setupLabel
protected void setupLabel(Annotation annotation)
-
setupDefaultAttributes
protected void setupDefaultAttributes(AnnotationAttributes attributes)
-
-