java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.inductiveautomation.factorypmi.application.components.PMIIPCamViewer
All Implemented Interfaces:
ComponentLifecycle, ImageObserver, MenuContainer, Serializable

public class PMIIPCamViewer extends JComponent implements ComponentLifecycle
History: Base code pieced together from code found on java.sun.com forum posting http://forum.java.sun.com/thread.jspa?threadID=494920&start=15&tstart=0

Modified by Carl Gould

See Also:
  • Field Details

    • MODE_MJPEG

      public static final int MODE_MJPEG
      See Also:
    • MODE_JPEG

      public static final int MODE_JPEG
      See Also:
    • url

      protected String url
    • useAuthentication

      protected boolean useAuthentication
    • username

      protected String username
    • password

      protected String password
    • mode

      protected int mode
    • refreshRate

      protected int refreshRate
    • cameraBufferSize

      protected int cameraBufferSize
    • showStats

      protected boolean showStats
    • connectRetries

      protected int connectRetries
    • retryDelay

      protected int retryDelay
    • scaleVideo

      protected boolean scaleVideo
    • scaleMode

      protected int scaleMode
    • userAgent

      protected String userAgent
    • threadingEnabled

      protected boolean threadingEnabled
    • cursorCode

      protected int cursorCode
  • Constructor Details

    • PMIIPCamViewer

      public PMIIPCamViewer()
  • Method Details

    • getCursorCode

      public int getCursorCode()
    • setCursorCode

      public void setCursorCode(int cursorCode)
    • startupComponent

      public void startupComponent(VisionClientContext context)
      Description copied from interface: ComponentLifecycle
      Called when the component is first shown.
      Specified by:
      startupComponent in interface ComponentLifecycle
    • shutdownComponent

      public void shutdownComponent()
      Description copied from interface: ComponentLifecycle
      Called when the component is now shown anymore. Any long-running processes should be stopped. All bindings will have also been shutdown.
      Specified by:
      shutdownComponent in interface ComponentLifecycle
    • getAppContext

      public VisionClientContext getAppContext()
      Specified by:
      getAppContext in interface ComponentLifecycle
    • isOpaque

      public boolean isOpaque()
      Overrides:
      isOpaque in class JComponent
    • setVisible

      public void setVisible(boolean visible)
      Overrides:
      setVisible in class JComponent
    • reconnect

      public void reconnect()
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • nextFrame

      public void nextFrame()
      Grabs the next frame from the current frame parser and repaints
    • notifyStateChanged

      public void notifyStateChanged()
    • getConnectRetries

      public int getConnectRetries()
    • setConnectRetries

      public void setConnectRetries(int connectRetries)
    • getMode

      public int getMode()
    • setMode

      public void setMode(int mode)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getRefreshRate

      public int getRefreshRate()
    • setRefreshRate

      public void setRefreshRate(int refreshRate)
    • getRetryDelay

      public int getRetryDelay()
    • setRetryDelay

      public void setRetryDelay(int retryDelay)
    • isShowStats

      public boolean isShowStats()
    • setShowStats

      public void setShowStats(boolean showStats)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • isUseAuthentication

      public boolean isUseAuthentication()
    • setUseAuthentication

      public void setUseAuthentication(boolean useAuthentication)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getUserAgent

      public String getUserAgent()
    • setUserAgent

      public void setUserAgent(String userAgent)
    • isScaleVideo

      public boolean isScaleVideo()
    • setScaleVideo

      public void setScaleVideo(boolean scaleVideo)
    • getScaleMode

      public int getScaleMode()
    • setScaleMode

      public void setScaleMode(int scaleMode)
    • getCameraBufferSize

      public int getCameraBufferSize()
    • setCameraBufferSize

      public void setCameraBufferSize(int cameraBufferSize)