Class DialogAnnotationController
- java.lang.Object
-
- gov.nasa.worldwindx.examples.util.DialogAnnotationController
-
- All Implemented Interfaces:
SelectListener,java.awt.event.ActionListener,java.util.EventListener
- Direct Known Subclasses:
AudioPlayerAnnotationController,SlideShowAnnotationController
public abstract class DialogAnnotationController extends java.lang.Object implements java.awt.event.ActionListener, SelectListener
-
-
Field Summary
Fields Modifier and Type Field Description protected ButtonAnnotationtoolTipComponent
-
Constructor Summary
Constructors Constructor Description DialogAnnotationController(WorldWindow worldWindow, DialogAnnotation annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)protected voiddoDisable()protected voiddoEnable()protected voidforwardToButtonAnnotations(Annotation annotation, SelectEvent e)DialogAnnotationgetAnnotation()protected java.awt.PointgetToolTipPoint(SelectEvent e)WorldWindowgetWorldWindow()protected java.awt.PointglPointFromAwt(java.awt.Component c, java.awt.Point p)booleanisEnabled()protected voidonActionPerformed(java.awt.event.ActionEvent e)protected voidonSelected(SelectEvent e)voidselected(SelectEvent e)voidsetAnnotation(DialogAnnotation annotation)protected voidsetCursor(java.awt.Cursor cursor)voidsetEnabled(boolean enabled)protected voidshowToolTip(SelectEvent e, ButtonAnnotation annotation)protected voidupdateCursor(SelectEvent e)protected voidupdateToolTip(SelectEvent e)
-
-
-
Field Detail
-
toolTipComponent
protected ButtonAnnotation toolTipComponent
-
-
Constructor Detail
-
DialogAnnotationController
public DialogAnnotationController(WorldWindow worldWindow, DialogAnnotation annotation)
-
-
Method Detail
-
getWorldWindow
public WorldWindow getWorldWindow()
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
doEnable
protected void doEnable()
-
doDisable
protected void doDisable()
-
getAnnotation
public DialogAnnotation getAnnotation()
-
setAnnotation
public void setAnnotation(DialogAnnotation annotation)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
onActionPerformed
protected void onActionPerformed(java.awt.event.ActionEvent e)
-
selected
public void selected(SelectEvent e)
- Specified by:
selectedin interfaceSelectListener
-
onSelected
protected void onSelected(SelectEvent e)
-
forwardToButtonAnnotations
protected void forwardToButtonAnnotations(Annotation annotation, SelectEvent e)
-
updateCursor
protected void updateCursor(SelectEvent e)
-
setCursor
protected void setCursor(java.awt.Cursor cursor)
-
updateToolTip
protected void updateToolTip(SelectEvent e)
-
showToolTip
protected void showToolTip(SelectEvent e, ButtonAnnotation annotation)
-
getToolTipPoint
protected java.awt.Point getToolTipPoint(SelectEvent e)
-
glPointFromAwt
protected java.awt.Point glPointFromAwt(java.awt.Component c, java.awt.Point p)
-
-