public class FramePlacementManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
FramePlacementManager.FrameComparator
Local comparator for two Frame instances.
|
| Modifier and Type | Field and Description |
|---|---|
private FramePlacementManager.FrameComparator |
comparator
Reusable frame comparator.
|
private int |
hideNesting
hideFrames call nesting
|
private boolean |
placementQuirk
Track activation/deactivation of placement quirk.
|
private double |
startRow
Start row for the frame placement.
|
private TopLevelWindow<?> |
window
The window on which frames are placed by this instance.
|
| Constructor and Description |
|---|
FramePlacementManager(TopLevelWindow<?> window)
Create a new instance to place frames on the specified window.
|
| Modifier and Type | Method and Description |
|---|---|
private static double |
getNewRow(double current,
double proposed,
java.util.ArrayList<Frame<?>> list)
Calculate new value for start row for frame placement.
|
void |
hideAllFrames(boolean doPause)
Hide all frames.
|
void |
hideFrame(Frame<?> frame,
boolean doPause)
Hide single frame.
|
private void |
hideFrames(Widget<?>[] list,
boolean doPause,
boolean doHide,
boolean topOnly)
Hide frames from specified array of components.
|
private void |
hideMarkedFrames(boolean streamed)
Hide frames which can be hidden.
|
void |
placeFrame(Frame<?> frame)
Place new frame at the screen.
|
void |
placeFrame(Frame<?> frame,
boolean hideOthers)
Place new frame at the screen.
|
void |
placeFrame(Frame<?> frame,
boolean hideOthers,
boolean reuseLocation)
Place new frame at the screen.
|
void |
resetPlacementQuirk()
Reset placement quick mode.
|
void |
resetStartRow()
Reset initial row for frame placement.
|
private void |
setFrameLocation(Frame<?> frame,
Point pos)
Calculate and set frame physical location.
|
private int hideNesting
private double startRow
private boolean placementQuirk
private FramePlacementManager.FrameComparator comparator
private final TopLevelWindow<?> window
public FramePlacementManager(TopLevelWindow<?> window)
window - The target window.public void placeFrame(Frame<?> frame)
frame - Frame to place.public void placeFrame(Frame<?> frame, boolean hideOthers)
frame - Frame to place.hideOthers - Flag indicating that other overlapping frames should be hidden. Is set to false
only whent the frame is realized BEFORE is made visible.public void placeFrame(Frame<?> frame, boolean hideOthers, boolean reuseLocation)
frame - Frame to place.hideOthers - Flag indicating that other overlapping frames should be hidden. Is set to false
only whent the frame is realized BEFORE is made visible.reuseLocation - Flag forcing reusing location of the frameprivate void setFrameLocation(Frame<?> frame, Point pos)
frame - Target frame.pos - Location in character cells.public void hideAllFrames(boolean doPause)
doPause - If true then pause will be handled as necessary.public void hideFrame(Frame<?> frame, boolean doPause)
frame - Frame to hide.doPause - If true then pause will be handled if necessary.private void hideFrames(Widget<?>[] list, boolean doPause, boolean doHide, boolean topOnly)
list - Array of Component instances.doPause - If true pause will be handled if necessary.doHide - Perform real hiding if true and simulate
otherwise.topOnly - hide only frames with the TOP-ONLY attribute trueprivate static double getNewRow(double current,
double proposed,
java.util.ArrayList<Frame<?>> list)
current - Current value of the start row.proposed - Proposed value for start row.list - List of frames which will be deleted. Assume that these frames belong to one window.private void hideMarkedFrames(boolean streamed)
streamed - true hide streamed frames, false -
hide frames from interactive terminal.public void resetStartRow()
public void resetPlacementQuirk()