DESY ACOP Beans Home

de.desy.acop.video
Class DisplayerManager

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by de.desy.acop.video.DisplayerManager
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

public class DisplayerManager
extends java.awt.event.MouseAdapter

DisplayerManager manages the ImageDisplayer and the two SideProfileDisplayers contained in AcopVideo. It is supposed to give a better overview of updating the displayers.

Author:
Tilen Kusterle, Cosylab

Field Summary
static java.lang.String PROPERTY_ON_SCREEN_ROI
           
 
Constructor Summary
DisplayerManager(ImageAnalysisEngine imageAnalysisEngine, ImageDisplayer imageDisplayer, SideProfileDisplayer horizontalDisplayer, SideProfileDisplayer verticalDisplayer)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a PropertyChangeListener.
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Adds a PropertyChangeListener for the specified propertyName.
 java.awt.Shape getCross()
           
 java.awt.Shape getCrossFit()
           
 java.awt.geom.Rectangle2D getDraggingRectangle()
           
 java.awt.geom.Rectangle2D getScaledSelectedRectangle()
           
 java.awt.geom.Rectangle2D getScaledThresholdROIRectangle()
           
 javax.swing.event.ChangeListener getViewPortListener()
           
 boolean isCanChangeSettings()
           
 boolean isCrossAvailable()
           
 boolean isCrossFitAvailable()
           
 boolean isDisplayStatistics()
           
 boolean isRoiSelected()
           
 boolean isThresholdROISelected()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a PropertyChangeListener.
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Removes a PropertyChangeListener for the specified propertyName.
 void setCanChangeSettings(boolean canChangeSettings)
           
 void setDisplayStatistics(boolean display)
           
 void updateAImage(AImage aImage)
           
 void updateImageDisplayerSize(java.awt.Dimension size)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_ON_SCREEN_ROI

public static final java.lang.String PROPERTY_ON_SCREEN_ROI
See Also:
Constant Field Values
Constructor Detail

DisplayerManager

public DisplayerManager(ImageAnalysisEngine imageAnalysisEngine,
                        ImageDisplayer imageDisplayer,
                        SideProfileDisplayer horizontalDisplayer,
                        SideProfileDisplayer verticalDisplayer)
Method Detail

setDisplayStatistics

public void setDisplayStatistics(boolean display)

isDisplayStatistics

public boolean isDisplayStatistics()

updateImageDisplayerSize

public void updateImageDisplayerSize(java.awt.Dimension size)

updateAImage

public void updateAImage(AImage aImage)

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class java.awt.event.MouseAdapter

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class java.awt.event.MouseAdapter

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class java.awt.event.MouseAdapter

getDraggingRectangle

public java.awt.geom.Rectangle2D getDraggingRectangle()

isRoiSelected

public boolean isRoiSelected()

getScaledSelectedRectangle

public java.awt.geom.Rectangle2D getScaledSelectedRectangle()

isThresholdROISelected

public boolean isThresholdROISelected()

getScaledThresholdROIRectangle

public java.awt.geom.Rectangle2D getScaledThresholdROIRectangle()

isCrossAvailable

public boolean isCrossAvailable()

getCross

public java.awt.Shape getCross()

isCrossFitAvailable

public boolean isCrossFitAvailable()

getCrossFit

public java.awt.Shape getCrossFit()

getViewPortListener

public javax.swing.event.ChangeListener getViewPortListener()

isCanChangeSettings

public boolean isCanChangeSettings()
Returns:
the canChangeSettings

setCanChangeSettings

public void setCanChangeSettings(boolean canChangeSettings)
Parameters:
canChangeSettings - the canChangeSettings to set

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for the specified propertyName.

Parameters:
propertyName - the name of the property
listener - the PropertyChangeListener to add

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for the specified propertyName.

Parameters:
propertyName - the name of the property
listener - the PropertyChangeListener to remove

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener.

Parameters:
listener - the PropertyChangeListener to add

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener.

Parameters:
listener - the PropertyChangeListener to remove


Copyright © 2010. All Rights Reserved.