NASA World Wind

gov.nasa.worldwindx.applications.worldwindow.features
Class MeasurementPanel

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
          extended by gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeaturePanel
              extended by gov.nasa.worldwindx.applications.worldwindow.features.MeasurementPanel
All Implemented Interfaces:
Initializable, WWOPanel, Feature, FeaturePanel, ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action

public class MeasurementPanel
extends AbstractFeaturePanel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeaturePanel
panel
 
Fields inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
controller, featureID
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
MeasurementPanel(Registry registry)
           
 
Method Summary
 void clearPanel()
           
 void deletePanel()
           
protected  void disposeCurrentMeasureTool()
           
 JComponent[] getDialogControls()
           
 WWOMeasureTool getMeasureTool()
           
 Renderable getShape()
           
 RenderableLayer getShapeLayer()
           
 void initialize(Controller controller)
           
protected  void installNewMeasureTool(String shapeType)
           
protected  void makeToolListener()
           
 void setFillColor(Color color)
           
 void setLayers(RenderableLayer shapeLayer, RenderableLayer controlPointsLayer)
           
 void setLineColor(Color color)
           
protected  void setPathType(String pathType)
           
 void setShapeColor(Renderable shape, Color lineColor, Color fillColor)
           
protected  void updatePanelValues()
           
 
Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeaturePanel
getJPanel
 
Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, isOn, isTwoState, propertyChange, register, setMenuAccellerator, turnOn
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.features.Feature
getFeatureID, getName, isOn, isTwoState, turnOn
 
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.core.Initializable
isInitialized
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Constructor Detail

MeasurementPanel

public MeasurementPanel(Registry registry)
Method Detail

clearPanel

public void clearPanel()

deletePanel

public void deletePanel()

disposeCurrentMeasureTool

protected void disposeCurrentMeasureTool()

getDialogControls

public JComponent[] getDialogControls()
Specified by:
getDialogControls in interface FeaturePanel
Overrides:
getDialogControls in class AbstractFeaturePanel

getMeasureTool

public WWOMeasureTool getMeasureTool()

getShape

public Renderable getShape()

getShapeLayer

public RenderableLayer getShapeLayer()

initialize

public void initialize(Controller controller)
Specified by:
initialize in interface Initializable
Overrides:
initialize in class AbstractFeaturePanel

installNewMeasureTool

protected void installNewMeasureTool(String shapeType)

makeToolListener

protected void makeToolListener()

setFillColor

public void setFillColor(Color color)

setLayers

public void setLayers(RenderableLayer shapeLayer,
                      RenderableLayer controlPointsLayer)

setLineColor

public void setLineColor(Color color)

setPathType

protected void setPathType(String pathType)

setShapeColor

public void setShapeColor(Renderable shape,
                          Color lineColor,
                          Color fillColor)

updatePanelValues

protected void updatePanelValues()

NASA World Wind