Class CAMframeControl
- java.lang.Object
-
- de.desy.mst.libs.framework.mstapp.util.camInstrumentation.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 windowstatic void
doDaemonHandshake(boolean lookForChildProcesses)
int
getHeight()
Get Height of the windowjava.lang.String
getId()
returns identification stringlong
getNextSeqNumber()
javax.management.MBeanNotificationInfo[]
getNotificationInfo()
int
getState()
Get Window state (iconified,normal,maximized)int
getWidth()
Get Width of the windowint
getX()
Get X-Position of the windowint
getY()
Get Y-Position of the windowvoid
invokeLater(java.lang.Runnable runnable)
static boolean
isWebstart()
void
move(int newX, int newY)
Moves window to the given positionvoid
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 Descriptionvoid
setGeometry(int x, int y, int width, int height)
newOperation0 Descriptionvoid
setHeight(int value)
Set Height of the windowvoid
setState(int value)
Set Window state (iconified,normal,maximized)void
setWidth(int value)
Set Width of the windowvoid
setX(int value)
Set X-Position of the windowvoid
setY(int value)
Set Y-Position of the windowvoid
windowState(int windowState)
newOperation0 Description
-
-
-
Field Detail
-
CAM_MANAGER_PORT
public static final int CAM_MANAGER_PORT
-
CAMPORT
public static final java.lang.String CAMPORT
- See Also:
- Constant Field Values
-
CAMHOST
public static final java.lang.String CAMHOST
- See Also:
- Constant Field Values
-
-
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 interfacejavax.management.NotificationBroadcaster
- Throws:
java.lang.IllegalArgumentException
-
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo
in interfacejavax.management.NotificationBroadcaster
-
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
- Specified by:
removeNotificationListener
in interfacejavax.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 interfacejavax.management.NotificationEmitter
- Throws:
javax.management.ListenerNotFoundException
-
getNextSeqNumber
public long getNextSeqNumber()
-
getX
public int getX()
Get X-Position of the window- Specified by:
getX
in interfaceCAMframeControlMBean
-
setX
public void setX(int value)
Set X-Position of the window- Specified by:
setX
in interfaceCAMframeControlMBean
-
getY
public int getY()
Get Y-Position of the window- Specified by:
getY
in interfaceCAMframeControlMBean
-
setY
public void setY(int value)
Set Y-Position of the window- Specified by:
setY
in interfaceCAMframeControlMBean
-
getWidth
public int getWidth()
Get Width of the window- Specified by:
getWidth
in interfaceCAMframeControlMBean
-
setWidth
public void setWidth(int value)
Set Width of the window- Specified by:
setWidth
in interfaceCAMframeControlMBean
-
getHeight
public int getHeight()
Get Height of the window- Specified by:
getHeight
in interfaceCAMframeControlMBean
-
setHeight
public void setHeight(int value)
Set Height of the window- Specified by:
setHeight
in interfaceCAMframeControlMBean
-
getState
public int getState()
Get Window state (iconified,normal,maximized)- Specified by:
getState
in interfaceCAMframeControlMBean
-
setState
public void setState(int value)
Set Window state (iconified,normal,maximized)- Specified by:
setState
in interfaceCAMframeControlMBean
-
move
public void move(int newX, int newY)
Moves window to the given position- Specified by:
move
in interfaceCAMframeControlMBean
- Parameters:
newX
- new X-positionnewY
- new Y-position
-
resize
public void resize(int newWidth, int newHeight)
newOperation1 Description- Specified by:
resize
in interfaceCAMframeControlMBean
- Parameters:
newWidth
- New width of the windownewHeight
- New height of the window
-
close
public void close()
Close window- Specified by:
close
in interfaceCAMframeControlMBean
-
getId
public java.lang.String getId()
returns identification string- Specified by:
getId
in interfaceCAMframeControlMBean
- Returns:
- java.lang.String
-
setGeometry
public void setGeometry(int x, int y, int width, int height)
newOperation0 Description- Specified by:
setGeometry
in interfaceCAMframeControlMBean
- Parameters:
x
- xy
- ywidth
- widthheight
- height
-
windowState
public void windowState(int windowState)
newOperation0 Description- Specified by:
windowState
in interfaceCAMframeControlMBean
- Parameters:
windowState
- Frame.ICONIFIED, Frame.NORMAL, etc...
-
invokeLater
public void invokeLater(java.lang.Runnable runnable)
-
doDaemonHandshake
public static void doDaemonHandshake(boolean lookForChildProcesses)
-
-