2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
7 package gov
.nasa
.worldwind
;
10 * The top-level interface common to all toolkit-specific World Wind windows.
13 * @version $Id: WorldWindow.java 1765 2007-05-07 20:51:41Z tgaskins $
15 public interface WorldWindow
18 * Sets the model to display in this window. If <code>null</code> is specified for the model, the current model, if
19 * any, is disassociated with the window.
21 * @param model the model to display. May be <code>null</code>.
23 void setModel(Model model
);
26 * Returns the window's current model.
28 * @return the window's current model
33 * Sets the view to use when displaying this window's model. If <code>null</code> is specified for the view, the
34 * current view, if any, is disassociated with the window.
36 * @param view the view to use to display this window's model. May be null.
38 void setView(View view
);
41 * Returns this window's current view.
43 * @return the window's current view
48 * Sets the model to display in this window and the view used to display it. If <code>null</code> is specified for
49 * the model, the current model, if any, is disassociated with the window. If <code>null</code> is specified for the
50 * view, the current view, if any, is disassociated with the window.
52 * @param model the model to display. May be<code>null</code>.
53 * @param view the view to use to display this window's model. May be<code>null</code>.
55 void setModelAndView(Model model
, View view
);
58 * Returns the scene controller assocciated with this instance.
60 * @return The scene controller associated with the instance, or null if no scene controller is associated.
62 SceneController
getSceneController();
64 PickedObjectList
pick(java
.awt
.Point pickPoint
);
66 InputHandler
getInputHandler();
68 void setInputHandler(InputHandler eventSource
);
70 void addRenderingListener(RenderingListener listener
);
72 void removeRenderingListener(RenderingListener listener
);
74 void addSelectListener(SelectListener listener
);
76 void removeSelectListener(SelectListener listener
);
78 void addPositionListener(PositionListener listener
);
80 void removePositionListener(PositionListener listener
);