public class PMIIPCamViewer extends javax.swing.JComponent implements ComponentLifecycle
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected int |
cameraBufferSize |
protected int |
connectRetries |
protected int |
cursorCode |
protected int |
mode |
static int |
MODE_JPEG |
static int |
MODE_MJPEG |
protected java.lang.String |
password |
protected int |
refreshRate |
protected int |
retryDelay |
protected int |
scaleMode |
protected boolean |
scaleVideo |
protected boolean |
showStats |
protected boolean |
threadingEnabled |
protected java.lang.String |
url |
protected boolean |
useAuthentication |
protected java.lang.String |
userAgent |
protected java.lang.String |
username |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
COMPONENT_RUNNING
Constructor and Description |
---|
PMIIPCamViewer() |
Modifier and Type | Method and Description |
---|---|
VisionClientContext |
getAppContext() |
int |
getCameraBufferSize() |
int |
getConnectRetries() |
int |
getCursorCode() |
int |
getMode() |
java.lang.String |
getPassword() |
int |
getRefreshRate() |
int |
getRetryDelay() |
int |
getScaleMode() |
java.lang.String |
getUrl() |
java.lang.String |
getUserAgent() |
java.lang.String |
getUsername() |
boolean |
isOpaque() |
boolean |
isScaleVideo() |
boolean |
isShowStats() |
boolean |
isUseAuthentication() |
void |
nextFrame()
Grabs the next frame from the current frame parser and repaints
|
void |
notifyStateChanged() |
void |
paintComponent(java.awt.Graphics g) |
void |
reconnect() |
void |
setCameraBufferSize(int cameraBufferSize) |
void |
setConnectRetries(int connectRetries) |
void |
setCursorCode(int cursorCode) |
void |
setMode(int mode) |
void |
setPassword(java.lang.String password) |
void |
setRefreshRate(int refreshRate) |
void |
setRetryDelay(int retryDelay) |
void |
setScaleMode(int scaleMode) |
void |
setScaleVideo(boolean scaleVideo) |
void |
setShowStats(boolean showStats) |
void |
setUrl(java.lang.String url) |
void |
setUseAuthentication(boolean useAuthentication) |
void |
setUserAgent(java.lang.String userAgent) |
void |
setUsername(java.lang.String username) |
void |
setVisible(boolean visible) |
void |
shutdownComponent()
Called when the component is now shown anymore.
|
void |
startupComponent(VisionClientContext context)
Called when the component is first shown.
|
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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update, updateUI
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, getAccessibleContext, 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 static final int MODE_MJPEG
public static final int MODE_JPEG
protected java.lang.String url
protected boolean useAuthentication
protected java.lang.String username
protected java.lang.String password
protected int mode
protected int refreshRate
protected int cameraBufferSize
protected boolean showStats
protected int connectRetries
protected int retryDelay
protected boolean scaleVideo
protected int scaleMode
protected java.lang.String userAgent
protected boolean threadingEnabled
protected int cursorCode
public int getCursorCode()
public void setCursorCode(int cursorCode)
public void startupComponent(VisionClientContext context)
ComponentLifecycle
startupComponent
in interface ComponentLifecycle
public void shutdownComponent()
ComponentLifecycle
shutdownComponent
in interface ComponentLifecycle
public VisionClientContext getAppContext()
getAppContext
in interface ComponentLifecycle
public boolean isOpaque()
isOpaque
in class javax.swing.JComponent
public void setVisible(boolean visible)
setVisible
in class javax.swing.JComponent
public void reconnect()
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public void nextFrame()
public void notifyStateChanged()
public int getConnectRetries()
public void setConnectRetries(int connectRetries)
public int getMode()
public void setMode(int mode)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public int getRefreshRate()
public void setRefreshRate(int refreshRate)
public int getRetryDelay()
public void setRetryDelay(int retryDelay)
public boolean isShowStats()
public void setShowStats(boolean showStats)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public boolean isUseAuthentication()
public void setUseAuthentication(boolean useAuthentication)
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.lang.String getUserAgent()
public void setUserAgent(java.lang.String userAgent)
public boolean isScaleVideo()
public void setScaleVideo(boolean scaleVideo)
public int getScaleMode()
public void setScaleMode(int scaleMode)
public int getCameraBufferSize()
public void setCameraBufferSize(int cameraBufferSize)