|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent de.desy.acop.video.AcopVideo
public class AcopVideo
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.
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 |
---|
public static final java.lang.String PROPERTY_LIVE_MODE
public static final java.lang.String PROPERTY_AIMAGE
public static final java.lang.String PROPERTY_CAN_CHANGE_SETTINGS
public static final java.lang.String PROPERTY_DISPLAY_CLUT_HEADER
public static final java.lang.String DISPLAY_STATISTISC
Constructor Detail |
---|
public AcopVideo()
Method Detail |
---|
protected DisplayerManager getDisplayerManager()
public void setAnalysisServerConnectionParameters(ConnectionParameters param)
public void setBackgroundImage(de.desy.tine.types.IMAGE background)
setPreciseBackgroundImage(double[], int)
background
- the image to setpublic de.desy.tine.types.IMAGE getBackgroundImage()
getPreciseBackgroundImage()
public void setROI(java.awt.Rectangle rect)
rect
- the region of interest rectanglepublic java.awt.Rectangle getROI()
public void setThresholdROI(java.awt.Rectangle rect)
rect
- the region of interest used for threshold calculationpublic java.awt.Rectangle getThresholdROI()
public void setAutomaticThresholdCalculation(boolean automatic)
automatic
- true if threshold is calculated automatically or false
otherwisesetThresholdROI(Rectangle)
public boolean isAutomaticThresholdCalculation()
public void setPreciseBackgroundImage(double[] image, int width)
image
- the image double arraywidth
- the width of the background imagepublic double[] getPreciseBackgroundImage()
public int getBackgroundImageWidth()
public void setThreshold(double threshold)
ColorDecoder
lover than threshold value. Threshold value
has effect only between values Const2D and Amplitude2D as described by
AImage
.
threshold
- the threshold value to setAImage
,
AImage.getAmplitude2D()
,
AImage.getConst2D()
public double getThreshold()
setThreshold(double)
protected ImageAnalysisEngine getImageAnalysisEngine()
public void setColorMap(ColorMap newValue)
newValue
- - new color mappublic ColorMap getColorMap()
ImageDisplayer.getColorMap()
public void setImageZoom(ImageZoom newValue)
newValue
- public ImageZoom getImageZoom()
public void setOverlayState(OverlayState newValue)
newValue
- set overlay mode always on (true) or off(false)public OverlayState getOverlayState()
public void setHistogramEqualisation(boolean newValue)
newValue
- - switch histogram equalization on (true) or off (false)public boolean isHistogramEqualisation()
public void setHistogramMin(int newValue)
ImageDisplayer.setHistogramMin(int)
public int getHistogramMin()
ImageDisplayer#getHistogramMin()}
public void setHistogramMax(int newValue)
ImageDisplayer.setHistogramMax(int)
public int getHistogramMax()
ImageDisplayer#getHistogramMax()}
public void setAOIZoom(boolean newValue)
newValue
- enable (true) or disable (false) AOI zoomingpublic boolean isAOIZoom()
public void setKeepAspectRatio(boolean newValue)
newValue
- enable (true) or disable (false) keeping of aspect ratiopublic boolean isKeepAspectRatio()
public boolean isLiveMode()
public AImage getAImage()
public double getDecorationsWeight()
public void setDecorationsWeight(double decorationsWeight)
decorationsWeight
- the layout weight for decorations to setpublic AnalysisMode getAnalysisMode()
public void setAnalysisMode(AnalysisMode analysisMode)
analysisMode
- the the AnalysisModepublic void setPerformFit(boolean perform)
perform
- true to perform fit or false otherwisepublic boolean isPerformFit()
public boolean isDisplayStatistics()
public void setDisplayStatistics(boolean display)
display
- true if statistics are displayed or false otherwisepublic boolean isCanChangeSettings()
public void setCanChangeSettings(boolean canChange)
canChange
- if true analysis settings can be changed and
false if notpublic boolean isDisplayNumericalValues()
public void setDisplayNumericalValues(boolean displayNumericalValues)
displayNumericalValues
- if true numerical values are displayed and if
false they are notpublic boolean isDisplayClutHeader()
public void setDisplayClutHeader(boolean displayClutHeader)
displayClutHeader
- - true to make the CLUT panel visible; false to make it
invisiblepublic AbstractCustomizerPanel getCustomizer()
public PopupManager getPopupManager()
PopupManageable
getPopupManager
in interface PopupManageable
public void saveAsPNG()
public void exportToPNG()
public ConnectionParameters getConnectionParameters()
ConnectionParametersReceiver
getConnectionParameters
in interface ConnectionParametersReceiver
public void setConnectionParameters(ConnectionParameters cp) throws CommonException, java.beans.PropertyVetoException
ConnectionParametersReceiver
setConnectionParameters
in interface ConnectionParametersReceiver
cp
- new parameters
CommonException
- if connection establishing failed
java.beans.PropertyVetoException
- if setting failed due to improper parameterspublic void start()
ImageDisplayer.setLiveTransfer(boolean)
,
TineHandler#openLink(String, de.desy.acop.transport.AccessMode, int)
public void setEnabled(boolean enabled)
setEnabled
in class javax.swing.JComponent
public void stop()
ImageDisplayer.setLiveTransfer(boolean)
,
TineHandler.closeLink()
public static void main(java.lang.String[] args)
public ImageDisplayer getImageDisplayer()
public void updateValue(de.desy.tine.types.IMAGE newImage)
TineImageReceiver
updateValue
in interface TineImageReceiver
newImage
- the new IMAGEpublic void resetForReceiving()
TineImageReceiver
resetForReceiving
in interface TineImageReceiver
public boolean isPopupEnabled()
public void setPopupEnabled(boolean enabled)
enabled
- true if enable or false if disabled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |