NASA World Wind

gov.nasa.worldwind.examples.util
Class DialogAnnotationController

java.lang.Object
  extended by gov.nasa.worldwind.examples.util.DialogAnnotationController
All Implemented Interfaces:
SelectListener, ActionListener, EventListener
Direct Known Subclasses:
AudioPlayerAnnotationController, SlideShowAnnotationController

public abstract class DialogAnnotationController
extends Object
implements ActionListener, SelectListener


Field Summary
protected  ButtonAnnotation toolTipComponent
           
 
Constructor Summary
DialogAnnotationController(WorldWindow worldWindow, DialogAnnotation annotation)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  void doDisable()
           
protected  void doEnable()
           
protected  void forwardToButtonAnnotations(Annotation annotation, SelectEvent e)
           
 DialogAnnotation getAnnotation()
           
protected  Point getToolTipPoint(SelectEvent e)
           
 WorldWindow getWorldWindow()
           
protected  Point glPointFromAwt(Component c, Point p)
           
 boolean isEnabled()
           
protected  void onActionPerformed(ActionEvent e)
           
protected  void onSelected(SelectEvent e)
           
 void selected(SelectEvent e)
           
 void setAnnotation(DialogAnnotation annotation)
           
protected  void setCursor(Cursor cursor)
           
 void setEnabled(boolean enabled)
           
protected  void showToolTip(SelectEvent e, ButtonAnnotation annotation)
           
protected  void updateCursor(SelectEvent e)
           
protected  void updateToolTip(SelectEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toolTipComponent

protected ButtonAnnotation toolTipComponent
Constructor Detail

DialogAnnotationController

public DialogAnnotationController(WorldWindow worldWindow,
                                  DialogAnnotation annotation)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

doDisable

protected void doDisable()

doEnable

protected void doEnable()

forwardToButtonAnnotations

protected void forwardToButtonAnnotations(Annotation annotation,
                                          SelectEvent e)

getAnnotation

public DialogAnnotation getAnnotation()

getToolTipPoint

protected Point getToolTipPoint(SelectEvent e)

getWorldWindow

public WorldWindow getWorldWindow()

glPointFromAwt

protected Point glPointFromAwt(Component c,
                               Point p)

isEnabled

public boolean isEnabled()

onActionPerformed

protected void onActionPerformed(ActionEvent e)

onSelected

protected void onSelected(SelectEvent e)

selected

public void selected(SelectEvent e)
Specified by:
selected in interface SelectListener

setAnnotation

public void setAnnotation(DialogAnnotation annotation)

setCursor

protected void setCursor(Cursor cursor)

setEnabled

public void setEnabled(boolean enabled)

showToolTip

protected void showToolTip(SelectEvent e,
                           ButtonAnnotation annotation)

updateCursor

protected void updateCursor(SelectEvent e)

updateToolTip

protected void updateToolTip(SelectEvent e)

NASA World Wind