public class ContinousMeasurementPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
ContinousMeasurementPanel(YouScopeClient client,
YouScopeServer server,
java.lang.String camera,
int imagingPeriod,
java.lang.String configGroup,
java.lang.String channel,
double exposure,
boolean increaseContrast)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
flipHorizontal()
Flips the image horizontally.
|
void |
flipVertical()
Flips the image vertically.
|
boolean |
isMeasurementRunning()
Returns if measurement is currently running or not.
|
void |
newImage(ImageEvent<?> event)
Displays the new image.
|
void |
paintComponent(java.awt.Graphics grp) |
void |
rotateClockwise()
Rotates the image clockwise.
|
void |
rotateCounterClockwise()
Rotates the image counter clockwise.
|
void |
setCamera(java.lang.String camera)
Sets the camera with which it should be imaged.
|
void |
setChannel(java.lang.String configGroup,
java.lang.String channel)
Sets the channel in which it is imaged.
|
void |
setCutoff(float lowerCutoff,
float upperCutoff)
Sets the lower and the upper cutoff, if the contrast is increased.
|
void |
setExposure(double exposure)
Sets the exposure time for the continuous imaging.
|
void |
setImagingPeriod(int imagingPeriod)
Sets the period length between two successive images.
|
void |
setIncreaseContrast(boolean increaseContrast)
Sets if the contrast should be automatically increased.
|
void |
startMeasurement()
Starts the continuous measurement.
|
void |
stopMeasurement()
Stops the measurement.
|
void |
stopMeasurementAndWait()
Stops the measurement and waits until it is finished.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
public ContinousMeasurementPanel(YouScopeClient client, YouScopeServer server, java.lang.String camera, int imagingPeriod, java.lang.String configGroup, java.lang.String channel, double exposure, boolean increaseContrast)
client
- Interface to the client.server
- Interface to the server.camera
- The ID of the camera with which it should be imaged, or null to use the default camera.imagingPeriod
- The period between two images.configGroup
- The config group in which the channel is defined.channel
- The channel which should be imaged.exposure
- The exposure time for the imaging.increaseContrast
- True if the contrast of the image should be automatically increased.public void setIncreaseContrast(boolean increaseContrast)
increaseContrast
- True if the contrast should be increased.public void setCamera(java.lang.String camera)
camera
- Camera with which it should be imaged.public void setChannel(java.lang.String configGroup, java.lang.String channel)
configGroup
- The config group in which the channel is defined.channel
- The channel to image.public void setExposure(double exposure)
exposure
- The exposure time.public void setImagingPeriod(int imagingPeriod)
imagingPeriod
- The period time.public boolean isMeasurementRunning()
public void stopMeasurement()
public void stopMeasurementAndWait()
public void startMeasurement()
public void newImage(ImageEvent<?> event)
event
- image to be displayedpublic void paintComponent(java.awt.Graphics grp)
paintComponent
in class javax.swing.JComponent
public void setCutoff(float lowerCutoff, float upperCutoff)
lowerCutoff
- The lower cutoff.upperCutoff
- The upper cutoff.public void rotateClockwise()
public void rotateCounterClockwise()
public void flipHorizontal()
public void flipVertical()