|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.yospace.yae.yogi.YogiComponent
|
+--com.yospace.yae.yogi.YogiLayeredPane
A layered panel-style container. Z-ordering associated with 'standard' components still exists, but the abstract concept of 'layers' is introduced, each with their own internal z-ordering. These layers consist of a YogiPaneletDisplay and zero or more associated YogiPopups with higher z-ordering. On top of this, a layer of zero or more system-level YogiPopups exists. The root content pane is a layered pane, and this allows for both Panelet-level and system-level popups to be displayed.
| Constructor Summary | |
YogiLayeredPane()
Simply sets up the system (popup) layer to be empty. |
|
| Method Summary | |
void |
add(YogiComponent comp)
Can be used to add a YogiPaneletDisplay or a YogiPopup to this YogiLayeredPane. |
void |
bringForwards(YogiComponent c)
If we have a YogiPaneletDisplay, bring the whole YogiPaneletDisplay's layer in front of the layer currently above that YogiPaneletDisplay's layer (if it is not at the top already). |
void |
bringInFrontOf(YogiComponent firstComp,
YogiComponent secondComp)
If both parameters are YogiPaneletDisplays, bring that whole of the first YogiPaneletDisplay's layer in front of the second YogiPaneletDisplay's layer. |
void |
bringToFront(YogiComponent c)
If we have a YogiPaneletDisplay, bring that whole YogiPaneletDisplay's layer to the front of the layers, but behind the system popups layer if one exists. |
protected void |
ensureVisible(YogiComponent child,
int fx,
int fy,
int fw,
int fh)
Ensures that the specified area of this component is visible, where possible; if there is a choice (perhaps because this component supports layers), then the supplied child component is the one that should be shown. |
YogiComponent |
getTopInLayer(YogiComponent c)
Returns the component highest in the z-ordering which is in the same layer as the given component. |
void |
remove(YogiComponent c)
Can be used to remove a YogiPaneletDisplay or a YogiPopup from this YogiLayeredPane. |
void |
sendBackwards(YogiComponent c)
If we have a YogiPaneletDisplay, send that whole YogiPaneletDisplay's layer behind the layer currently below that YogiPaneletDisplay's layer (if it is not at the bottom already). |
void |
sendBehind(YogiComponent firstComp,
YogiComponent secondComp)
If both parameters are YogiPaneletDisplays, send that whole of the first YogiPaneletDisplay's layer behind the second YogiPaneletDisplay's layer. |
void |
sendToBack(YogiComponent c)
If we have a YogiPaneletDisplay, send that whole YogiPaneletDisplay's layer to the bottom of the layers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public YogiLayeredPane()
| Method Detail |
public void add(YogiComponent comp)
YogiPopup's getPopupModalRoot(). If the modal root is a panelet display, the popup is
added to the top of that panelet display's layer. If ?????add in class YogiComponentcomp - the component to add.java.lang.IllegalArgumentException - if the component to add is not either a
panelet display or a popup, or if the modal root is not already in the layered pane.public void remove(YogiComponent c)
remove in class YogiComponentc - the component to remove. Must be an instance of a YogiPaneletDisplay or a YogiPopup.java.lang.IllegalArgumentException - if the component to be removed is not in the layered pane.public void sendToBack(YogiComponent c)
sendToBack in class YogiComponentc - the component to send to the back.java.lang.IllegalArgumentException - if the component is not already in this layered pane.public void bringToFront(YogiComponent c)
bringToFront in class YogiComponentc - the component to bring to the front.java.lang.IllegalArgumentException - if the component is not already in this layered pane.public void sendBackwards(YogiComponent c)
sendBackwards in class YogiComponentc - the component to send backwards.java.lang.IllegalArgumentException - if the component is not already in this layered pane.public void bringForwards(YogiComponent c)
bringForwards in class YogiComponentc - the component to bring forwards.java.lang.IllegalArgumentException - if the component is not already in this layered pane.
public void sendBehind(YogiComponent firstComp,
YogiComponent secondComp)
sendBehind in class YogiComponentfirstComp - the component to move.secondComp - the component to send the firstComp behind.java.lang.IllegalArgumentException - if either parameter is not either a YogiPaneletDisplay or a
YogiPopup.
public void bringInFrontOf(YogiComponent firstComp,
YogiComponent secondComp)
bringInFrontOf in class YogiComponentfirstComp - the component to move.secondComp - the component to bring the firstComp in front of.java.lang.IllegalArgumentException - if either parameter is not either a YogiPaneletDisplay or a
YogiPopup.
protected void ensureVisible(YogiComponent child,
int fx,
int fy,
int fw,
int fh)
YogiComponentensureVisible in class YogiComponentcom.yospace.yae.yogi.YogiComponentchild - the component which, if there is a choice, should be made visible.fx - the x-coordinate (in this component's coordinate space) of the rectangle that
should be made visible.fy - the y-coordinate (in this component's coordinate space) of the rectangle that
should be made visible.fw - the width of the rectangle that should be made visible.fh - the height of the rectangle that should be made visible.public YogiComponent getTopInLayer(YogiComponent c)
c - the component that is in the same layer as the desired "top-in-layer" component.
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||