Class CAMframeControl

  • All Implemented Interfaces:
    CAMframeControlMBean, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter

    public class CAMframeControl
    extends java.lang.Object
    implements CAMframeControlMBean, javax.management.NotificationEmitter
    Class CAMframeControl
    Author:
    karol
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CAM_MANAGER_PORT  
      static java.lang.String CAMHOST  
      static java.lang.String CAMPORT  
    • Constructor Summary

      Constructors 
      Constructor Description
      CAMframeControl​(java.awt.Frame frame)  
      CAMframeControl​(java.awt.Frame frame, java.lang.String identification)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addNotificationListener​(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)  
      void close()
      Close window
      static void doDaemonHandshake​(boolean lookForChildProcesses)  
      int getHeight()
      Get Height of the window
      java.lang.String getId()
      returns identification string
      long getNextSeqNumber()  
      javax.management.MBeanNotificationInfo[] getNotificationInfo()  
      int getState()
      Get Window state (iconified,normal,maximized)
      int getWidth()
      Get Width of the window
      int getX()
      Get X-Position of the window
      int getY()
      Get Y-Position of the window
      void invokeLater​(java.lang.Runnable runnable)  
      static boolean isWebstart()  
      void move​(int newX, int newY)
      Moves window to the given position
      void removeNotificationListener​(javax.management.NotificationListener listener)  
      void removeNotificationListener​(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)  
      void resize​(int newWidth, int newHeight)
      newOperation1 Description
      void setGeometry​(int x, int y, int width, int height)
      newOperation0 Description
      void setHeight​(int value)
      Set Height of the window
      void setState​(int value)
      Set Window state (iconified,normal,maximized)
      void setWidth​(int value)
      Set Width of the window
      void setX​(int value)
      Set X-Position of the window
      void setY​(int value)
      Set Y-Position of the window
      void windowState​(int windowState)
      newOperation0 Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CAM_MANAGER_PORT

        public static final int CAM_MANAGER_PORT
    • Constructor Detail

      • CAMframeControl

        public CAMframeControl​(java.awt.Frame frame,
                               java.lang.String identification)
      • CAMframeControl

        public CAMframeControl​(java.awt.Frame frame)
    • Method Detail

      • isWebstart

        public static boolean isWebstart()
      • addNotificationListener

        public void addNotificationListener​(javax.management.NotificationListener listener,
                                            javax.management.NotificationFilter filter,
                                            java.lang.Object handback)
                                     throws java.lang.IllegalArgumentException
        Specified by:
        addNotificationListener in interface javax.management.NotificationBroadcaster
        Throws:
        java.lang.IllegalArgumentException
      • getNotificationInfo

        public javax.management.MBeanNotificationInfo[] getNotificationInfo()
        Specified by:
        getNotificationInfo in interface javax.management.NotificationBroadcaster
      • removeNotificationListener

        public void removeNotificationListener​(javax.management.NotificationListener listener)
                                        throws javax.management.ListenerNotFoundException
        Specified by:
        removeNotificationListener in interface javax.management.NotificationBroadcaster
        Throws:
        javax.management.ListenerNotFoundException
      • removeNotificationListener

        public void removeNotificationListener​(javax.management.NotificationListener listener,
                                               javax.management.NotificationFilter filter,
                                               java.lang.Object handback)
                                        throws javax.management.ListenerNotFoundException
        Specified by:
        removeNotificationListener in interface javax.management.NotificationEmitter
        Throws:
        javax.management.ListenerNotFoundException
      • getNextSeqNumber

        public long getNextSeqNumber()
      • setX

        public void setX​(int value)
        Set X-Position of the window
        Specified by:
        setX in interface CAMframeControlMBean
      • setY

        public void setY​(int value)
        Set Y-Position of the window
        Specified by:
        setY in interface CAMframeControlMBean
      • setState

        public void setState​(int value)
        Set Window state (iconified,normal,maximized)
        Specified by:
        setState in interface CAMframeControlMBean
      • move

        public void move​(int newX,
                         int newY)
        Moves window to the given position
        Specified by:
        move in interface CAMframeControlMBean
        Parameters:
        newX - new X-position
        newY - new Y-position
      • resize

        public void resize​(int newWidth,
                           int newHeight)
        newOperation1 Description
        Specified by:
        resize in interface CAMframeControlMBean
        Parameters:
        newWidth - New width of the window
        newHeight - New height of the window
      • getId

        public java.lang.String getId()
        returns identification string
        Specified by:
        getId in interface CAMframeControlMBean
        Returns:
        java.lang.String
      • setGeometry

        public void setGeometry​(int x,
                                int y,
                                int width,
                                int height)
        newOperation0 Description
        Specified by:
        setGeometry in interface CAMframeControlMBean
        Parameters:
        x - x
        y - y
        width - width
        height - height
      • windowState

        public void windowState​(int windowState)
        newOperation0 Description
        Specified by:
        windowState in interface CAMframeControlMBean
        Parameters:
        windowState - Frame.ICONIFIED, Frame.NORMAL, etc...
      • invokeLater

        public void invokeLater​(java.lang.Runnable runnable)
      • doDaemonHandshake

        public static void doDaemonHandshake​(boolean lookForChildProcesses)