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 ButtonAnnotation
toolTipComponent
-
Constructor Summary
Constructors Constructor Description DialogAnnotationController(WorldWindow worldWindow, DialogAnnotation annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
protected void
doDisable()
protected void
doEnable()
protected void
forwardToButtonAnnotations(Annotation annotation, SelectEvent e)
DialogAnnotation
getAnnotation()
protected java.awt.Point
getToolTipPoint(SelectEvent e)
WorldWindow
getWorldWindow()
protected java.awt.Point
glPointFromAwt(java.awt.Component c, java.awt.Point p)
boolean
isEnabled()
protected void
onActionPerformed(java.awt.event.ActionEvent e)
protected void
onSelected(SelectEvent e)
void
selected(SelectEvent e)
void
setAnnotation(DialogAnnotation annotation)
protected void
setCursor(java.awt.Cursor cursor)
void
setEnabled(boolean enabled)
protected void
showToolTip(SelectEvent e, ButtonAnnotation annotation)
protected void
updateCursor(SelectEvent e)
protected void
updateToolTip(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:
actionPerformed
in interfacejava.awt.event.ActionListener
-
onActionPerformed
protected void onActionPerformed(java.awt.event.ActionEvent e)
-
selected
public void selected(SelectEvent e)
- Specified by:
selected
in 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)
-
-