public class

MeasurementLayerUI

extends CrossHairLayerUI<T extends JComponent>
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ org.jdesktop.jxlayer.plaf.LayerUI<V extends java.awt.Component>
       ↳ org.jdesktop.jxlayer.plaf.AbstractLayerUI<V extends javax.swing.JComponent>
         ↳ vars.annotation.ui.imagepanel.CrossHairLayerUI<T extends javax.swing.JComponent>
           ↳ vars.annotation.ui.imagepanel.MeasurementLayerUI<T extends org.mbari.swing.JImageUrlCanvas>

Summary

Constants
String PROP_OBSERVATION Name of the observation property that can be used with property change listeners
Public Constructors
MeasurementLayerUI(ToolBelt toolBelt)
Constructs ...
Public Methods
void addMeasurementCompletedListener(MeasurementCompletedListener listener)
By iteself this component does nothing with a measurement.
Observation getObservation()
PropertyChangeSupport getPropertyChangeSupport()
Handle to the class that handles property changes.
void resetUI()
resets the ui to a known state
void respondsTo(ObservationsChangedEvent event)
void respondsTo(ObservationsSelectedEvent event)
void setObservation(Observation newObservation)
Protected Methods
void paintLayer(Graphics2D g2, JXLayer<? extends T> jxl)
void processMouseEvent(MouseEvent me, JXLayer<? extends T> jxl)
void processMouseMotionEvent(MouseEvent me, JXLayer<? extends T> jxl)
[Expand]
Inherited Methods
From class vars.annotation.ui.imagepanel.CrossHairLayerUI
From class org.jdesktop.jxlayer.plaf.AbstractLayerUI
From class org.jdesktop.jxlayer.plaf.LayerUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Constants

public static final String PROP_OBSERVATION

Name of the observation property that can be used with property change listeners

Constant Value: "Observation"

Public Constructors

public MeasurementLayerUI (ToolBelt toolBelt)

Constructs ...

Public Methods

public void addMeasurementCompletedListener (MeasurementCompletedListener listener)

By iteself this component does nothing with a measurement. In order to add functionality just add a listener to process a measurement.

public Observation getObservation ()

Returns
  • The observation that we're adding measurements to

public PropertyChangeSupport getPropertyChangeSupport ()

Handle to the class that handles property changes. Used to hang listeners onto the 'measuring' property.

public void resetUI ()

resets the ui to a known state

public void respondsTo (ObservationsChangedEvent event)

public void respondsTo (ObservationsSelectedEvent event)

public void setObservation (Observation newObservation)

Protected Methods

protected void paintLayer (Graphics2D g2, JXLayer<? extends T> jxl)

protected void processMouseEvent (MouseEvent me, JXLayer<? extends T> jxl)

protected void processMouseMotionEvent (MouseEvent me, JXLayer<? extends T> jxl)