DESY ACOP Beans Home

de.desy.acop.video
Class AcopVideo

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by de.desy.acop.video.AcopVideo
All Implemented Interfaces:
PopupManageable, ConnectionParametersReceiver, TineImageReceiver, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class AcopVideo
extends javax.swing.JComponent
implements ConnectionParametersReceiver, PopupManageable, TineImageReceiver

AcopVideo is a an AcopBean which can display a video image. This bean encapsulates the ImageDisplayer which handles all the rendering of the image, while this wrapper handles the common ACOP features. It implements ConnectionParametersReceiver, which allows it to use the common ConnectionCustomizer. However, in contrary to other AcopBeans the the AcopVideo connection is not created automatically. Data acquisition is not started until the start() method is called. AcopVideo also implements other standard ACOP features such as drag and drop (drag and drop requires holding down of the Control key), common customizer, info dialog etc.

Version:
$Id: Templates.xml,v 1.10 2004/01/13 16:17:13 jbobnar Exp $
Author:
Jaka Bobnar
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.lang.String DISPLAY_STATISTISC
           
static java.lang.String PROPERTY_AIMAGE
           
static java.lang.String PROPERTY_CAN_CHANGE_SETTINGS
           
static java.lang.String PROPERTY_DISPLAY_CLUT_HEADER
           
static java.lang.String PROPERTY_LIVE_MODE
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface de.desy.acop.displayers.tools.ConnectionParametersReceiver
CONNECTION_PARAMETERS_PROPERTY
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AcopVideo()
          Constructs a new AcopVideo.
 
Method Summary
 void exportToPNG()
          Exports TINE Image to PNG (in "export" mode)
 AImage getAImage()
          Gets the current AImage object for this AcopVideo.
 AnalysisMode getAnalysisMode()
          Gets the AnalysisMode for this AcopVideo.
 de.desy.tine.types.IMAGE getBackgroundImage()
          Deprecated. use getPreciseBackgroundImage()
 int getBackgroundImageWidth()
          Returns the background image width as set on the analysis engine.
 ColorMap getColorMap()
          Returns the color map used to render the image.
 ConnectionParameters getConnectionParameters()
          Returns ConnectionParameters associated with this receiver.
 AbstractCustomizerPanel getCustomizer()
          Finds the customizer for this bean.
 double getDecorationsWeight()
          Gets layout weight for decorations.
protected  DisplayerManager getDisplayerManager()
           
 int getHistogramMax()
           
 int getHistogramMin()
           
protected  ImageAnalysisEngine getImageAnalysisEngine()
           
 ImageDisplayer getImageDisplayer()
           
 ImageZoom getImageZoom()
          Returns image zoom.
 OverlayState getOverlayState()
          Returns overlay information state.
 PopupManager getPopupManager()
          Returns popup manager, which manages popup menu.
 double[] getPreciseBackgroundImage()
          Returns the precise background image double array.
 java.awt.Rectangle getROI()
          Returns the region of interest.
 double getThreshold()
          Gets the threshold value.
 java.awt.Rectangle getThresholdROI()
          Returns the region of interest used for threshold calculation.
 boolean isAOIZoom()
          returns whether out zooming of AOI (no black border around AOI which depicts full frame) is currently enabled.
 boolean isAutomaticThresholdCalculation()
          Returns true if the threshold is calculated automatically within the threshold region of interest.
 boolean isCanChangeSettings()
          Checks if analysis settings can be changed.
 boolean isDisplayClutHeader()
          Returns the display CLUT panel option.
 boolean isDisplayNumericalValues()
          Gets the display numerical values option.
 boolean isDisplayStatistics()
          Returns true if statistics are displayed or false otherwise.
 boolean isHistogramEqualisation()
          returns whether histogram equalization (normalization) is currently enabled.
 boolean isKeepAspectRatio()
          returns whether 'aspect ratio is kept' is currently enabled.
 boolean isLiveMode()
          Returns true if this bean is in live mode (ConnectionParameters have been set and start method has been invoked).
 boolean isPerformFit()
          Returns true if fitting is performed or false otherwise.
 boolean isPopupEnabled()
          Return true if the popup menu is enabled, otherwise false.
static void main(java.lang.String[] args)
           
 void resetForReceiving()
          Resets this receiver for receiving.
 void saveAsPNG()
          Saves TINE Image to PNG (in "archival" mode)
 void setAnalysisMode(AnalysisMode analysisMode)
          Sets the AnalysisMode for this AcopVideo.
 void setAnalysisServerConnectionParameters(ConnectionParameters param)
           
 void setAOIZoom(boolean newValue)
          Switches 'AOI zoom' on or off.
 void setAutomaticThresholdCalculation(boolean automatic)
          Sets a flag if the threshold should be calculated automatically within the threshold region of interest.
 void setBackgroundImage(de.desy.tine.types.IMAGE background)
          Deprecated. use setPreciseBackgroundImage(double[], int)
 void setCanChangeSettings(boolean canChange)
          Sets if analysis settings can be changed.
 void setColorMap(ColorMap newValue)
          Sets the color map for the image.
 void setConnectionParameters(ConnectionParameters cp)
          Sets the ConnectionParameters to the receiver.
 void setDecorationsWeight(double decorationsWeight)
          Sets layout weight for decorations.
 void setDisplayClutHeader(boolean displayClutHeader)
          Makes the CLUT panel visible or invisible.
 void setDisplayNumericalValues(boolean displayNumericalValues)
          Sets the display numerical values option.
 void setDisplayStatistics(boolean display)
          Sets the flag whether the statistics are displayed on the canvas or not.
 void setEnabled(boolean enabled)
           
 void setHistogramEqualisation(boolean newValue)
          Switches 'histogram equalization' on or off.
 void setHistogramMax(int newValue)
          see ImageDisplayer.setHistogramMax(int)
 void setHistogramMin(int newValue)
          see ImageDisplayer.setHistogramMin(int)
 void setImageZoom(ImageZoom newValue)
          Sets the image zoom
 void setKeepAspectRatio(boolean newValue)
          Switches 'aspect ratio is kept' on or off.
 void setOverlayState(OverlayState newValue)
           
 void setPerformFit(boolean perform)
          Sets the flag whether fitting should be performed during the analysis.
 void setPopupEnabled(boolean enabled)
          Enables or disables the popup menu.
 void setPreciseBackgroundImage(double[] image, int width)
          Sets the precise background image double array and width of the image.
 void setROI(java.awt.Rectangle rect)
          Sets the region of interest for the analysis.
 void setThreshold(double threshold)
          Sets the threshold value, which discards all pixels which have returned by ColorDecoder lover than threshold value.
 void setThresholdROI(java.awt.Rectangle rect)
          Sets the region of interest used for threshold calculation.
 void start()
          Starts data acquisition.
 void stop()
          Stops data acquisition and image rendering.
 void updateValue(de.desy.tine.types.IMAGE newImage)
          Updates this receiver's IMAGE.
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.desy.acop.displayers.tools.ConnectionParametersReceiver
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

PROPERTY_LIVE_MODE

public static final java.lang.String PROPERTY_LIVE_MODE
See Also:
Constant Field Values

PROPERTY_AIMAGE

public static final java.lang.String PROPERTY_AIMAGE
See Also:
Constant Field Values

PROPERTY_CAN_CHANGE_SETTINGS

public static final java.lang.String PROPERTY_CAN_CHANGE_SETTINGS
See Also:
Constant Field Values

PROPERTY_DISPLAY_CLUT_HEADER

public static final java.lang.String PROPERTY_DISPLAY_CLUT_HEADER
See Also:
Constant Field Values

DISPLAY_STATISTISC

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

AcopVideo

public AcopVideo()
Constructs a new AcopVideo.

Method Detail

getDisplayerManager

protected DisplayerManager getDisplayerManager()

setAnalysisServerConnectionParameters

public void setAnalysisServerConnectionParameters(ConnectionParameters param)

setBackgroundImage

public void setBackgroundImage(de.desy.tine.types.IMAGE background)
Deprecated. use setPreciseBackgroundImage(double[], int)

Sets the background image to be used by this ImageAnalysisEngine.

Parameters:
background - the image to set

getBackgroundImage

public de.desy.tine.types.IMAGE getBackgroundImage()
Deprecated. use getPreciseBackgroundImage()

Gets the background image used by this ImageAnalysisEngine.

Returns:
the background image

setROI

public void setROI(java.awt.Rectangle rect)
Sets the region of interest for the analysis.

Parameters:
rect - the region of interest rectangle

getROI

public java.awt.Rectangle getROI()
Returns the region of interest.

Returns:
the region of interest

setThresholdROI

public void setThresholdROI(java.awt.Rectangle rect)
Sets the region of interest used for threshold calculation.

Parameters:
rect - the region of interest used for threshold calculation

getThresholdROI

public java.awt.Rectangle getThresholdROI()
Returns the region of interest used for threshold calculation.

Returns:
the region of interest used for thereshold calculation

setAutomaticThresholdCalculation

public void setAutomaticThresholdCalculation(boolean automatic)
Sets a flag if the threshold should be calculated automatically within the threshold region of interest.

Parameters:
automatic - true if threshold is calculated automatically or false otherwise
See Also:
setThresholdROI(Rectangle)

isAutomaticThresholdCalculation

public boolean isAutomaticThresholdCalculation()
Returns true if the threshold is calculated automatically within the threshold region of interest.

Returns:
true if threshold is calculated automatically or false otherwise

setPreciseBackgroundImage

public void setPreciseBackgroundImage(double[] image,
                                      int width)
Sets the precise background image double array and width of the image. Negative values in the image array are also accepted and will be used during analysis but not for presentation.

Parameters:
image - the image double array
width - the width of the background image

getPreciseBackgroundImage

public double[] getPreciseBackgroundImage()
Returns the precise background image double array.

Returns:
the background image double array

getBackgroundImageWidth

public int getBackgroundImageWidth()
Returns the background image width as set on the analysis engine.

Returns:
the background width

setThreshold

public void setThreshold(double threshold)
Sets the threshold value, which discards all pixels which have returned by ColorDecoder lover than threshold value. Threshold value has effect only between values Const2D and Amplitude2D as described by AImage.

Parameters:
threshold - the threshold value to set
See Also:
AImage, AImage.getAmplitude2D(), AImage.getConst2D()

getThreshold

public double getThreshold()
Gets the threshold value.

Returns:
the threshold value
See Also:
setThreshold(double)

getImageAnalysisEngine

protected ImageAnalysisEngine getImageAnalysisEngine()

setColorMap

public void setColorMap(ColorMap newValue)
Sets the color map for the image.

Parameters:
newValue - - new color map

getColorMap

public ColorMap getColorMap()
Returns the color map used to render the image.

Returns:
the applied color map
See Also:
ImageDisplayer.getColorMap()

setImageZoom

public void setImageZoom(ImageZoom newValue)
Sets the image zoom

Parameters:
newValue -

getImageZoom

public ImageZoom getImageZoom()
Returns image zoom.


setOverlayState

public void setOverlayState(OverlayState newValue)
Parameters:
newValue - set overlay mode always on (true) or off(false)

getOverlayState

public OverlayState getOverlayState()
Returns overlay information state.


setHistogramEqualisation

public void setHistogramEqualisation(boolean newValue)
Switches 'histogram equalization' on or off. Get/Set. This method will do nothing if the histogram equalization mode is already in the state about to be set. After new assignment, drawing as well as repainting is enforced to update all involved parts of code so that Histogram Equalization is immediately applied to image.

Parameters:
newValue - - switch histogram equalization on (true) or off (false)

isHistogramEqualisation

public boolean isHistogramEqualisation()
returns whether histogram equalization (normalization) is currently enabled. Get/Set.

Returns:
true - histogram equalization is switched on
false - histogram equalization is switched off

setHistogramMin

public void setHistogramMin(int newValue)
see ImageDisplayer.setHistogramMin(int)


getHistogramMin

public int getHistogramMin()
See Also:
ImageDisplayer#getHistogramMin()}

setHistogramMax

public void setHistogramMax(int newValue)
see ImageDisplayer.setHistogramMax(int)


getHistogramMax

public int getHistogramMax()
See Also:
ImageDisplayer#getHistogramMax()}

setAOIZoom

public void setAOIZoom(boolean newValue)
Switches 'AOI zoom' on or off. Get/Set. This method will do nothing if the AOI zoom mode is already in the state about to be set. Repainting is enforced to have an immediate update.

Parameters:
newValue - enable (true) or disable (false) AOI zooming

isAOIZoom

public boolean isAOIZoom()
returns whether out zooming of AOI (no black border around AOI which depicts full frame) is currently enabled. Get/Set.

Returns:
true - AOI Zoom is switched on
false - AOI Zoom is switched off

setKeepAspectRatio

public void setKeepAspectRatio(boolean newValue)
Switches 'aspect ratio is kept' on or off. Get/Set. This method will do nothing if the aspect ratio mode is already in the state about to be set. Repainting is enforced to have an immediate update.

Parameters:
newValue - enable (true) or disable (false) keeping of aspect ratio

isKeepAspectRatio

public boolean isKeepAspectRatio()
returns whether 'aspect ratio is kept' is currently enabled. Get/Set.

Returns:
true - 'aspect ratio is kept' is switched on
false - 'aspect ratio is kept' is switched off

isLiveMode

public boolean isLiveMode()
Returns true if this bean is in live mode (ConnectionParameters have been set and start method has been invoked).

Returns:
true if in live mode, false otherwise

getAImage

public AImage getAImage()
Gets the current AImage object for this AcopVideo.

Returns:
the current AImage

getDecorationsWeight

public double getDecorationsWeight()
Gets layout weight for decorations.

Returns:
the layout weight for decorations

setDecorationsWeight

public void setDecorationsWeight(double decorationsWeight)
Sets layout weight for decorations.

Parameters:
decorationsWeight - the layout weight for decorations to set

getAnalysisMode

public AnalysisMode getAnalysisMode()
Gets the AnalysisMode for this AcopVideo.

Returns:
the selected AnalysisMode

setAnalysisMode

public void setAnalysisMode(AnalysisMode analysisMode)
Sets the AnalysisMode for this AcopVideo.

Parameters:
analysisMode - the the AnalysisMode

setPerformFit

public void setPerformFit(boolean perform)
Sets the flag whether fitting should be performed during the analysis.

Parameters:
perform - true to perform fit or false otherwise

isPerformFit

public boolean isPerformFit()
Returns true if fitting is performed or false otherwise. Fitting is performed only if analysis is turned on (local or remote).

Returns:
true if fitting is performed or false otherwise

isDisplayStatistics

public boolean isDisplayStatistics()
Returns true if statistics are displayed or false otherwise.

Returns:
true if statistics are displayed in the sideview or false if not

setDisplayStatistics

public void setDisplayStatistics(boolean display)
Sets the flag whether the statistics are displayed on the canvas or not.

Parameters:
display - true if statistics are displayed or false otherwise

isCanChangeSettings

public boolean isCanChangeSettings()
Checks if analysis settings can be changed.

Returns:
true if analysis settings can be changed and false otherwise

setCanChangeSettings

public void setCanChangeSettings(boolean canChange)
Sets if analysis settings can be changed.

Parameters:
canChange - if true analysis settings can be changed and false if not

isDisplayNumericalValues

public boolean isDisplayNumericalValues()
Gets the display numerical values option.

Returns:
true if numerical values are displayed and false if they are not

setDisplayNumericalValues

public void setDisplayNumericalValues(boolean displayNumericalValues)
Sets the display numerical values option.

Parameters:
displayNumericalValues - if true numerical values are displayed and if false they are not

isDisplayClutHeader

public boolean isDisplayClutHeader()
Returns the display CLUT panel option.

Returns:
true if CLUT panel is visible, otherwise false

setDisplayClutHeader

public void setDisplayClutHeader(boolean displayClutHeader)
Makes the CLUT panel visible or invisible.

Parameters:
displayClutHeader - - true to make the CLUT panel visible; false to make it invisible

getCustomizer

public AbstractCustomizerPanel getCustomizer()
Finds the customizer for this bean.

Returns:
the customized

getPopupManager

public PopupManager getPopupManager()
Description copied from interface: PopupManageable
Returns popup manager, which manages popup menu.

Specified by:
getPopupManager in interface PopupManageable
Returns:
returns popup manager, which manages popup menu

saveAsPNG

public void saveAsPNG()
Saves TINE Image to PNG (in "archival" mode)


exportToPNG

public void exportToPNG()
Exports TINE Image to PNG (in "export" mode)


getConnectionParameters

public ConnectionParameters getConnectionParameters()
Description copied from interface: ConnectionParametersReceiver
Returns ConnectionParameters associated with this receiver.

Specified by:
getConnectionParameters in interface ConnectionParametersReceiver
Returns:
the connection parameters

setConnectionParameters

public void setConnectionParameters(ConnectionParameters cp)
                             throws CommonException,
                                    java.beans.PropertyVetoException
Description copied from interface: ConnectionParametersReceiver
Sets the ConnectionParameters to the receiver. If a receiver is a a displayer it should connect to the remote point upon setting the parameters.

Specified by:
setConnectionParameters in interface ConnectionParametersReceiver
Parameters:
cp - new parameters
Throws:
CommonException - if connection establishing failed
java.beans.PropertyVetoException - if setting failed due to improper parameters

start

public void start()
Starts data acquisition. Due to high duty task of rendering, the AcopVideo will display image only after this method is invoked.

See Also:
ImageDisplayer.setLiveTransfer(boolean), TineHandler#openLink(String, de.desy.acop.transport.AccessMode, int)

setEnabled

public void setEnabled(boolean enabled)
Overrides:
setEnabled in class javax.swing.JComponent

stop

public void stop()
Stops data acquisition and image rendering.

See Also:
ImageDisplayer.setLiveTransfer(boolean), TineHandler.closeLink()

main

public static void main(java.lang.String[] args)

getImageDisplayer

public ImageDisplayer getImageDisplayer()

updateValue

public void updateValue(de.desy.tine.types.IMAGE newImage)
Description copied from interface: TineImageReceiver
Updates this receiver's IMAGE.

Specified by:
updateValue in interface TineImageReceiver
Parameters:
newImage - the new IMAGE

resetForReceiving

public void resetForReceiving()
Description copied from interface: TineImageReceiver
Resets this receiver for receiving.

Specified by:
resetForReceiving in interface TineImageReceiver

isPopupEnabled

public boolean isPopupEnabled()
Return true if the popup menu is enabled, otherwise false.

Returns:
true if popup is enabled

setPopupEnabled

public void setPopupEnabled(boolean enabled)
Enables or disables the popup menu.

Parameters:
enabled - true if enable or false if disabled


Copyright © 2010. All Rights Reserved.