Class MeasurementPanel
- java.lang.Object
-
- javax.swing.AbstractAction
-
- gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
-
- gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeaturePanel
-
- gov.nasa.worldwindx.applications.worldwindow.features.MeasurementPanel
-
- All Implemented Interfaces:
Initializable
,WWOPanel
,Feature
,FeaturePanel
,java.awt.event.ActionListener
,java.beans.PropertyChangeListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.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
-
-
Constructor Summary
Constructors Constructor Description MeasurementPanel(Registry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearPanel()
void
deletePanel()
protected void
disposeCurrentMeasureTool()
javax.swing.JComponent[]
getDialogControls()
WWOMeasureTool
getMeasureTool()
Renderable
getShape()
RenderableLayer
getShapeLayer()
void
initialize(Controller controller)
protected void
installNewMeasureTool(java.lang.String shapeType)
protected void
makeToolListener()
void
setFillColor(java.awt.Color color)
void
setLayers(RenderableLayer shapeLayer, RenderableLayer controlPointsLayer)
void
setLineColor(java.awt.Color color)
protected void
setPathType(java.lang.String pathType)
void
setShapeColor(Renderable shape, java.awt.Color lineColor, java.awt.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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
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
-
-
-
-
Constructor Detail
-
MeasurementPanel
public MeasurementPanel(Registry registry)
-
-
Method Detail
-
initialize
public void initialize(Controller controller)
- Specified by:
initialize
in interfaceInitializable
- Overrides:
initialize
in classAbstractFeaturePanel
-
setLayers
public void setLayers(RenderableLayer shapeLayer, RenderableLayer controlPointsLayer)
-
getShapeLayer
public RenderableLayer getShapeLayer()
-
getShape
public Renderable getShape()
-
getDialogControls
public javax.swing.JComponent[] getDialogControls()
- Specified by:
getDialogControls
in interfaceFeaturePanel
- Overrides:
getDialogControls
in classAbstractFeaturePanel
-
getMeasureTool
public WWOMeasureTool getMeasureTool()
-
clearPanel
public void clearPanel()
-
deletePanel
public void deletePanel()
-
setLineColor
public void setLineColor(java.awt.Color color)
-
setFillColor
public void setFillColor(java.awt.Color color)
-
setShapeColor
public void setShapeColor(Renderable shape, java.awt.Color lineColor, java.awt.Color fillColor)
-
setPathType
protected void setPathType(java.lang.String pathType)
-
installNewMeasureTool
protected void installNewMeasureTool(java.lang.String shapeType)
-
disposeCurrentMeasureTool
protected void disposeCurrentMeasureTool()
-
makeToolListener
protected void makeToolListener()
-
updatePanelValues
protected void updatePanelValues()
-
-