public interface HComponentOrdering
HScene,
HContainer| Modifier and Type | Method and Description |
|---|---|
Component |
addAfter(Component component,
Component front)
Adds a
java.awt.Component to this HComponentOrdering directly behind a previously
added java.awt.Component. |
Component |
addBefore(Component component,
Component behind)
Adds a
java.awt.Component to this HComponentOrdering directly in front of a
previously added java.awt.Component. |
boolean |
pop(Component component)
Moves the specified
java.awt.Component one
component nearer in the Z-order, i.e. |
boolean |
popInFrontOf(Component move,
Component behind)
Puts the specified
java.awt.Component in front of
another java.awt.Component in the Z-order of this
HComponentOrdering. |
boolean |
popToFront(Component component)
Brings the specified
java.awt.Component to the
"front" of the Z-order in this HComponentOrdering. |
boolean |
push(Component component)
Moves the specified
java.awt.Component one
component further away in the Z-order, i.e. |
boolean |
pushBehind(Component move,
Component front)
Puts the specified
java.awt.Component behind
another java.awt.Component in the Z-order of this
HComponentOrdering. |
boolean |
pushToBack(Component component)
Place the specified
java.awt.Component at the
"back" of the Z-order in this HComponentOrdering. |
Component addBefore(Component component, Component behind)
java.awt.Component to this HComponentOrdering directly in front of a
previously added java.awt.Component.
If component has already been added to this
container, then addBefore moves
component in front of behind. If
behind and component are the same
component which was already added to this container,
addBefore does not change the ordering of the
components and returns component.
This method affects the Z-order of the
java.awt.Component children within the HComponentOrdering, and may also implicitly
change the numeric ordering of those children.
component - is the java.awt.Component to be
added to the HComponentOrderingbehind - is the java.awt.Component, which
component will be placed in front of, i.e.
behind will be directly behind the added
java.awt.Componentjava.awt.Component is successfully
added or was already present, then it will be returned from
this call. If the
java.awt.Component is not successfully added,
e.g. behind is not a
java.awt.Component currently added to the HComponentOrdering, then null will
be returned. This method must be implemented in a thread safe manner.
Component addAfter(Component component, Component front)
java.awt.Component to this HComponentOrdering directly behind a previously
added java.awt.Component.
If component has already been added to this
container, then addAfter moves component behind
front. If front and
component are the same component which was already
added to this container, addAfter does not change
the ordering of the components and returns
component.
This method affects the Z-order of the
java.awt.Component children within the HComponentOrdering, and may also implicitly
change the numeric ordering of those children.
component - is the java.awt.Component to be
added to the HComponentOrderingfront - is the java.awt.Component, which
component will be placed behind, i.e.
front will be directly in front of the added
java.awt.Componentjava.awt.Component is successfully
added or was already present, then it will be returned from
this call. If the
java.awt.Component is not successfully added,
e.g. front is not a java.awt.Component currently
added to the HComponentOrdering, then
null will be returned.
This method must be implemented in a thread safe manner.
boolean popToFront(Component component)
java.awt.Component to the
"front" of the Z-order in this HComponentOrdering.
If component is already at the front of the
Z-order, the order is unchanged and popToFront
returns true.
component - The java.awt.Component to bring to the
"front" of the Z-order of this HComponentOrdering.true on success,
false on failure, for example when the
java.awt.Component has yet to be added to the
HComponentOrdering. If this method
fails, the Z-order is unchanged.boolean pushToBack(Component component)
java.awt.Component at the
"back" of the Z-order in this HComponentOrdering.
If component is already at the back the Z-order is
unchanged and pushToBack returns true.
component - The java.awt.Component to place
at the "back" of the Z-order of this HComponentOrdering.true on success,
false on failure, for example when the
java.awt.Component has yet to be added to the
HComponentOrdering. If the component was
not added to the container pushToBack does not change the
Z-order.boolean pop(Component component)
java.awt.Component one
component nearer in the Z-order, i.e. swapping it with the
java.awt.Component that was directly in front of
it.
If component is already at the front of the
Z-order, the order is unchanged and pop returns
true.
component - The java.awt.Component to be moved.true on success, false on failure, for example
if the java.awt.Component has yet to be added to
the HComponentOrdering.boolean push(Component component)
java.awt.Component one
component further away in the Z-order, i.e. swapping it with
the java.awt.Component that was directly behind
it.
If component is already at the back of the
Z-order, the order is unchanged and push returns
true.
component - The java.awt.Component to be
moved.true on success,
false on failure, for example if the
java.awt.Component has yet to be added to the
HComponentOrdering.boolean popInFrontOf(Component move, Component behind)
java.awt.Component in front of
another java.awt.Component in the Z-order of this
HComponentOrdering.
If move and behind are the same
component which has been added to the container
popInFront does not change the Z-order and returns
true.
move - The java.awt.Component to be moved
directly in front of the "behind" Component in the
Z-order of this HComponentOrdering.behind - The java.awt.Component which the
"move" Component should be placed directly in front
of.true on success,
false on failure, for example when either
java.awt.Component has yet to be added to the
HComponentOrdering. If this method
fails, the Z-order is unchanged.boolean pushBehind(Component move, Component front)
java.awt.Component behind
another java.awt.Component in the Z-order of this
HComponentOrdering.
If move and front are the same
component which has been added to the container
pushBehind does not change the Z-order and returns
true.
move - The java.awt.Component to be moved
directly behind the "front" Component in the Z-order
of this HComponentOrdering.front - The java.awt.Component which the
"move" Component should be placed directly behind.true on success,
false on failure, for example when either
java.awt.Component has yet to be added to the
HComponentOrdering.Copyright © 2012 code4tv.com. All Rights Reserved.