Worldwind public release 0.2
[worldwind-tracker.git] / gov / nasa / worldwind / WorldWindow.java
blobcc5a0afbdb0c259a2d8eb5b4179a314bfb0b887d
1 /*
2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
5 All Rights Reserved.
6 */
7 package gov.nasa.worldwind;
9 /**
10 * The top-level interface common to all toolkit-specific World Wind windows.
12 * @author Tom Gaskins
13 * @version $Id: WorldWindow.java 1765 2007-05-07 20:51:41Z tgaskins $
15 public interface WorldWindow
17 /**
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);
25 /**
26 * Returns the window's current model.
28 * @return the window's current model
30 Model getModel();
32 /**
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);
40 /**
41 * Returns this window's current view.
43 * @return the window's current view
45 View getView();
47 /**
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);
57 /**
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);