public class KMLController extends WWObjectImpl implements PreRenderable, Renderable, MessageListener
Modifier and Type | Field and Description |
---|---|
protected KMLRoot |
kmlRoot |
protected KMLTraversalContext |
tc |
Constructor and Description |
---|
KMLController(KMLRoot root) |
Modifier and Type | Method and Description |
---|---|
KMLRoot |
getKmlRoot() |
KMLTraversalContext |
getTraversalContext() |
protected void |
initializeTraversalContext(KMLTraversalContext tc)
Initializes this KML controller's traversal context to its default state.
|
void |
onMessage(Message msg)
Empty implementation of MessageListener.
|
void |
preRender(DrawContext dc) |
void |
render(DrawContext dc)
Causes this
Renderable to render itself using the provided draw context. |
void |
setKmlRoot(KMLRoot kmlRoot) |
void |
setTraversalContext(KMLTraversalContext tc) |
propertyChange
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected KMLRoot kmlRoot
protected KMLTraversalContext tc
public KMLController(KMLRoot root)
public KMLRoot getKmlRoot()
public KMLTraversalContext getTraversalContext()
protected void initializeTraversalContext(KMLTraversalContext tc)
tc
- the KML traversal context to initialize.public void onMessage(Message msg)
WWObjectImpl
onMessage
in interface MessageListener
onMessage
in class WWObjectImpl
msg
- The message that was received.public void preRender(DrawContext dc)
preRender
in interface PreRenderable
public void render(DrawContext dc)
Renderable
Renderable
to render itself using the provided draw context.render
in interface Renderable
dc
- the DrawContext
to be usedDrawContext
public void setKmlRoot(KMLRoot kmlRoot)
public void setTraversalContext(KMLTraversalContext tc)