public class SyncFrameGroup
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static int |
HIDE |
A variable representing the "hide" option for the frame state.
|
static int |
SET_ALL_FALSE |
|
static int |
SET_ALL_TRUE |
|
static int |
SHOW |
A variable representing the "Show" option for the frame state.
|
| Constructor | Description |
|---|---|
SyncFrameGroup() |
Create a SyncFrameGroup
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(java.awt.Frame newFrame) |
Add a new SyncFrame to the group
|
void |
changeState(java.awt.Frame origin,
int action) |
A common loop using switches
|
void |
moveFrames(java.awt.Frame origin,
int xMove,
int yMove) |
Move all the frames in this group with the exception of the "origin"
frame
|
void |
remove(java.awt.Frame origin) |
Remove a SyncFrame from the group
|
public static final int SHOW
public static final int HIDE
public static final int SET_ALL_TRUE
public static final int SET_ALL_FALSE
public void add(java.awt.Frame newFrame)
newFrame - A SyncFrame to be added to the SyncFrame group.public void remove(java.awt.Frame origin)
origin - The given SyncFrame to be removed from the SyncFrame group.public void moveFrames(java.awt.Frame origin,
int xMove,
int yMove)
origin - The frame that originated the move request.xMove - The relative number of pixels to move the frames
horizontally.yMove - The relative number of pixels to move the frames vertically.public void changeState(java.awt.Frame origin,
int action)
origin - The frame that originated the change state request.action - The action to be performed by the frames, such as HIDE.