|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.neu.ccs.gui.DisplayPanel
edu.neu.ccs.gui.ZooContainer
edu.neu.ccs.gui.Zoo
allowing selection and direct manipulation of components.ZooContainer
A zoo is a container used to contain components that can be moved and resized through direct manipulation. In this way, a Zoo is like a desktop for components.
An individual component, or a collection of components, can be selected through direct manipulation or through method calls. A selected component is painted with a box surrounding its bounds. Selected components can be retrieved using various methods described below. A component is selected if it is clicked with the mouse. To select multiple components, hold the Shift key when selecting the components.
Components in a zoo are called child items.
All child items are contained at the top level of the zoo.
Components can be grouped into a
, which is treated
as a single entity in the zoo.
Components in a zoo that are contained within a group
are called items.
Since a group can be recursively contained within a group,
there can be any number of levels to the containment hierarchy
for items in a zoo.
Only the top level items are considered to be child items.
A zoo could have only one child item, but many items,
if the single child item is a group of components.ZooGroup
If a zoo is restricting the bounds of its components, it will not allow a component to be moved or resized so that the component is not completely contained within the bounds of the zoo. If a zoo is not restricting the bounds of its components, a component can be moved or resized to any extent. A zoo restricts bounds by default.
If a zoo is in design mode, a child item can be moved and resized by clicking and dragging a side or corner of the component as noted by a rectangular anchor. An anchor is not shown if the component can not be resized. A component can not be resized to a width or height out of the limits of its minimum and maximum sizes. If a zoo is not in design mode, all of its items behave normally. A zoo is in design mode by default.
A 3rd dimension -- z-order -- is applied to the child items in a zoo. This z-order determines the order in which components are painted and will cause one of two overlapping components to appear to be on top of the other. Several methods described below can modify the z-order of child items contained in a zoo. Items in a group reside at the z-order of the group itself. The z-order within a group determines the order in which the components of the group are painted.
Technical details:This panel assumes an AbsoluteLayout.
Behavior is undefined if this panel is set to have a layout
other than an AbsoluteLayout.
A grouped component resized through direct manipulation will appear to scale in size as the group is resized, whether or not the component will actually scale in size when the resize is completed. If the parent container for the grouped component does not scale its contents, the grouped component will snap back to its original size when the resize is completed.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
Action |
BRING_TO_FRONT_ACTION
Action to bring the first selected component in this zoo to the front of the z-order. |
private Stroke |
dashedStroke
Stroke used to paint the lasso. |
Action |
DESELECT_ALL_ACTION
Action to deselect all components in this zoo. |
protected boolean |
designMode
Whether or not this zoo is in design mode. |
protected Color |
focusedHighlightColor
Highlight color of selected components for when this zoo has the keyboard focus. |
Action |
GROUP_SELECTED_COMPONENTS_ACTION
Action to group all selected components in this zoo. |
protected Hashtable |
laminateTable
Table mapping components to laminates. |
protected Point |
lassoLast
Last point used to calculate the current lasso. |
protected Point |
lassoStart
Point at which the current lasso originated. |
protected MouseActionAdapter |
mouseAdapter
Mouse action adapter for this zoo. |
Action |
MOVE_DOWN_ACTION
Action to move the first selected component in this zoo to the next deeper z-order position. |
Action |
MOVE_UP_ACTION
Action to move the first selected component in this zoo to the next higher z-order position. |
protected boolean |
moveable
Whether or not the child items in this zoo can be moved. |
protected boolean |
resizeable
Whether or not the child items in this zoo can be resized. |
protected boolean |
restrictingBounds
Whether or not this zoo is restricting its child components' bounds. |
Action |
SELECT_ALL_ACTION
Action to select all components in this zoo. |
protected ListSelectionModel |
selectionModel
Selection model for this zoo. |
Action |
SEND_TO_BACK_ACTION
Action to send the first selected component in this zoo to the back of the z-order. |
Action |
SET_DESIGN_MODE_OFF_ACTION
Action to turn off design mode for this zoo. |
Action |
SET_DESIGN_MODE_ON_ACTION
Action to turn on design mode for this zoo. |
Action |
TOGGLE_DESIGN_MODE_ACTION
Action to toggle design mode for this zoo. |
protected Color |
unfocusedHighlightColor
Highlight color of selected components for when this zoo does not have the keyboard focus. |
Action |
UNGROUP_SELECTED_COMPONENT_ACTION
Action to ungroup the first selected component in this zoo, as long as it is an instance of ZooGroup. |
Action |
UNGROUP_SELECTED_COMPONENTS_ACTION
Action to ungroup all selected components in this zoo. |
| Fields inherited from class edu.neu.ccs.gui.DisplayPanel |
background, codec, CODEC |
| Fields inherited from class javax.swing.JPanel |
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface edu.neu.ccs.gui.Displayable |
DEFAULT_VIEW_STATE, VIEW_STATE |
| Fields inherited from interface edu.neu.ccs.util.JPTConstants |
ABOVE, ALIGNMENT, BELOW, BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, FONT, INPUT_PROPERTIES, MANDATORY, OPTIONAL, ORIENTATION, TOP_LEFT, TOP_RIGHT, VALUE |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
Zoo()
Constructs a new zoo that restricts its child components' bounds to be contained within the bounds of this zoo. |
|
Zoo(boolean isRestricting)
Constructs a new zoo that either restricts its child components' bounds or does not restrict its child components' bounds. |
|
| Method Summary | |
Component |
addChildItem(Component c)
Adds the given component to this zoo at the highest z-order position and prepares the component for direct manipulation, grouping, and selection. |
Component |
addChildItem(Component c,
int z)
Adds the given component to this zoo at the given z-order position and prepares the component for direct manipulation, grouping, and selection. |
private Component |
addChildItemImpl(Component c,
int z)
Adds the given component at the given z-order position. |
void |
addToSelection(Component c)
Adds the given top-level component to the list of selected components in this zoo. |
boolean |
allowsMove()
Returns whether or not the child items in this zoo can be moved using direct manipulation. |
boolean |
allowsResize()
Returns whether or not the child items in this zoo can be resized using direct manipulation. |
protected Color |
computeUnfocusedHighlightColor(Color c)
Computes a suitable color of the highlight of selected components for when this zoo does not have focus, from the given color. |
protected Laminate |
createLaminateFor(Component c)
Returns a new laminate for the given component. |
void |
deselectAll()
Deselects all top-level components in this zoo. |
protected void |
endLasso(MouseEvent evt)
Ends the current lasso given the mouse event that prompted its destruction. |
Component |
getChildItem(int z)
Returns the top-level component in this zoo at the given z-order. |
int |
getChildItemCount()
Returns the number of top-level components in this container. |
Component[] |
getChildItems()
Returns an array containing all of the top-level components in this zoo. |
Color |
getFocusedHighlightColor()
Returns the color used to highlight a selected component when this zoo has the keyboard focus. |
Component[] |
getItems()
Returns an array containing all of the components contained in this zoo, including components that are nested within groups. |
Laminate |
getLaminateFor(Component c)
Returns the laminate for the given component, or null if the given component
is not a child item of this zoo. |
protected Rectangle |
getLassoBounds()
Returns the bounds of the current lasso, or null if there is no current lasso. |
Component |
getSelectedComponent()
Returns the selected component in this zoo at the highest z-order position, or null if the selection is empty. |
Component |
getSelectedComponent(int index)
Returns the selected component in this zoo at the given index into the list of selected components, or null if the selection is empty. |
int |
getSelectedComponentCount()
Returns the number of selected components in this zoo. |
Component[] |
getSelectedComponents()
Returns an array containing the selected components in this zoo in the order of their z-order positions, or a zero-length array if the selection is empty. |
ListSelectionModel |
getSelectionModel()
Returns the selection model for this zoo. |
Color |
getUnfocusedHighlightColor()
Returns the color used to highlight a selected component when this zoo does not have the keyboard focus. |
ZooGroup |
group(Component[] components)
Groups the given top-level components of this zoo. |
ZooGroup |
groupSelection()
Groups the currently selected components. |
protected void |
installFocusAdapter()
Installs the focus adapter for this zoo. |
protected void |
installMouseAdapter()
Installs the mouse adapter for this zoo. |
protected void |
installSelectionModel()
installs the selection model for this zoo. |
boolean |
isFocusTraversable()
Returns true if this zoo is in design mode,
or false otherwise. |
boolean |
isInDesignMode()
Returns whether or not this zoo is in design mode. |
boolean |
isManagingFocus()
Returns true if this zoo is in design mode,
or false otherwise. |
boolean |
isRestrictingBounds()
Returns whether or not this zoo is restricting its child components' bounds to be contained within the bounds of this zoo. |
boolean |
isSelectionEmpty()
Returns whether or not the selection is empty. |
int |
moveToZOrder(Component c,
int newZ)
Moves the given component to the given z-order position. |
protected void |
paintComponent(Graphics g)
Paints this component to the given graphics context. |
void |
removeAllItems()
Removes all of the components from this container. |
Component |
removeChildItem(Component c)
Removes the given top-level component from this zoo. |
Component |
removeChildItem(int z)
Removes the top-level component at the given z-order position from this zoo. |
private Component |
removeChildItemImpl(Component c)
Removes the given component from this zoo. |
private void |
removeComponentImpl(Component c,
int z)
Removes the given component and its laminate. |
void |
removeFromSelection(Component c)
Removes the given top-level component from the list of selected components in this zoo. |
protected void |
resizeLasso(MouseEvent evt)
Resizes the current lasso given the mouse event that prompted its resize. |
void |
selectAll()
Selects all top-level components in this zoo. |
void |
selectOnly(Component c)
Sets the selection for this zoo to only the the given component. |
void |
setAllowsMove(boolean allowsMove)
Sets whether or not the child items of this zoo can be moved using direct manipulation. |
void |
setAllowsResize(boolean allowsResize)
Sets whether or not the child items of this zoo can be resized using direct manipulation. |
void |
setFocusedHighlightColor(Color c)
Sets the color used to highlight a selected component when this zoo has the keyboard focus. |
void |
setInDesignMode(boolean designing)
Sets whether or not this zoo is in design mode. |
void |
setRestrictingBounds(boolean isRestricting)
Sets whether or not this zoo is restricting its child components' bounds to be contained within the bounds of this zoo. |
void |
setSelectedComponents(Component[] c)
Sets the selection for this zoo to exactly the components in the given array that are not-null and are contained at top-level in this zoo. |
void |
setUnfocusedHighlightColor(Color c)
Sets the color used to highlight a selected component when this zoo does not have the keyboard focus. |
protected void |
startLasso(MouseEvent evt)
Starts a new lasso given the mouse event that prompted its origination. |
Component[] |
ungroup(ZooGroup group)
Disassociates the components in the given group. |
void |
ungroupSelection()
Ungroups the currently selected components. |
protected void |
updateDesignModeActions()
Enables or disables design mode actions based on the current design mode. |
protected void |
updateSelection()
Selects or deselects the appropriate components based on the state of the selection model. |
protected void |
updateSelectionActions()
Enables or disables selection actions based on the current selection. |
private int |
zOrderToIndex(int z)
Returns the Java container index of the component at the given z-order. |
| Methods inherited from class edu.neu.ccs.gui.ZooContainer |
bringToFront, findChildItemAt, findChildItemAt, findItemAt, findItemAt, getAncestorZoo, getItem, getItemCount, getParentContainer, getRootZoo, inverseGetChildItem, inverseGetItem, moveDown, moveUp, nextDeeperInZOrder, nextHigherInZOrder, sendToBack |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected MouseActionAdapter mouseAdapter
protected Hashtable laminateTable
protected ListSelectionModel selectionModel
protected boolean restrictingBounds
protected boolean moveable
protected boolean resizeable
protected boolean designMode
private Stroke dashedStroke
protected Point lassoStart
protected Point lassoLast
protected Color focusedHighlightColor
SystemColor.textHighlight.
setFocusedHighlightColor(Color),
getFocusedHighlightColor()protected Color unfocusedHighlightColor
null,
which means that it is computed from the
highlight color for when this zoo has focus.
setUnfocusedHighlightColor(Color),
getUnfocusedHighlightColor()public final Action SELECT_ALL_ACTION
selectAll()public final Action DESELECT_ALL_ACTION
deselectAll()public final Action GROUP_SELECTED_COMPONENTS_ACTION
groupSelection()public final Action UNGROUP_SELECTED_COMPONENT_ACTION
ZooGroup.
ungroup(ZooGroup),
getSelectedComponent()public final Action UNGROUP_SELECTED_COMPONENTS_ACTION
ungroupSelection()public final Action TOGGLE_DESIGN_MODE_ACTION
public final Action SET_DESIGN_MODE_ON_ACTION
public final Action SET_DESIGN_MODE_OFF_ACTION
public final Action SEND_TO_BACK_ACTION
public final Action BRING_TO_FRONT_ACTION
public final Action MOVE_UP_ACTION
public final Action MOVE_DOWN_ACTION
| Constructor Detail |
public Zoo()
public Zoo(boolean isRestricting)
isRestricting - whether or not the zoo
will restrict its child components' bounds| Method Detail |
public Component addChildItem(Component c)
addChildItem in class ZooContainerc - a component to be added to this zoo
addChildItem(Component, int)
public Component addChildItem(Component c,
int z)
addChildItem in class ZooContainerc - a component to be added to this zooz - the z-order position at which
to add the component, or -1 if the component
is to be added at the deepest z-order position
addChildItem(Component)public Component[] getItems()
getItems in class ZooContainergetChildItems(),
ZooContainer.getItem(int),
ZooContainer.getItemCount()public Component getChildItem(int z)
getChildItem in class ZooContainerz - the z-order of the desired component
ArrayIndexOutOfBoundsException - if the given z-order position is invalidZooContainer.getItem(int),
getChildItems(),
ZooContainer.getChildItemCount()public Component[] getChildItems()
getChildItems in class ZooContainergetItems(),
getChildItem(int),
getChildItemCount()public int getChildItemCount()
getChildItemCount in class ZooContainerZooContainer.getItemCount(),
getChildItem(int),
getChildItems()public Component removeChildItem(Component c)
removeChildItem in class ZooContainerc - a component to remove from this zoo
null
if the given component is not at the top level
of this zooremoveChildItem(int),
removeAllItems()public Component removeChildItem(int z)
removeChildItem in class ZooContainerz - the z-order position of a component
to be removed from this container
ArrayIndexOutOfBoundsException - if the given z-order position is invalidremoveChildItem(Component),
removeAllItems()public void removeAllItems()
removeAllItems in class ZooContainerremoveChildItem(Component),
removeChildItem(int)
public int moveToZOrder(Component c,
int newZ)
moveToZOrder in class ZooContainerc - the component to movenewZ - the z-order position
to which to move the component
ArrayIndexOutOfBoundsException - if the given z-order is invalidZooContainer.bringToFront(Component),
ZooContainer.sendToBack(Component),
ZooContainer.moveUp(Component),
ZooContainer.moveDown(Component),
ZooContainer.nextHigherInZOrder(int),
ZooContainer.nextDeeperInZOrder(int)public ZooGroup group(Component[] components)
group in class ZooContainercomponents - the components to be grouped
null if there were
less than two components to be grouped
NullPointerException - if the given array is nullungroup(ZooGroup)public Component[] ungroup(ZooGroup group)
ungroup in class ZooContainergroup - the group of components to disassociate
group(Component[])public void selectAll()
deselectAll(),
addToSelection(Component),
removeFromSelection(Component)public void deselectAll()
selectAll(),
removeFromSelection(Component),
addToSelection(Component)public void addToSelection(Component c)
c - the component to be selectedremoveFromSelection(Component),
selectAll(),
deselectAll()public void removeFromSelection(Component c)
c - the component to be deselectedaddToSelection(Component),
deselectAll(),
selectAll()public void selectOnly(Component c)
null,
or is not in this zoo, this method does nothing.
c - component to selectaddToSelection(Component)public void setSelectedComponents(Component[] c)
Sets the selection for this zoo to exactly the components in the given array that are not-null and are contained at top-level in this zoo.
If the given array is null,
or no changes to the selection for this zoo
are to be made as a result of this operation,
this method does nothing.
For this method, changes to the selection model are made in exactly the following order: First, the selection is cleared. Next, each discrete interval of components in the given array are selected, by z-order. In this way, the number of changes to the selection model will be at least 2, and at most the length of the given array.
c - components to be selectedgetSelectedComponents()public Component getSelectedComponent()
null if the selection is empty.
getSelectedComponent(int),
getSelectedComponents(),
getSelectedComponentCount(),
isSelectionEmpty()public Component getSelectedComponent(int index)
null if the selection is empty.
ArrayIndexOutOfBoundsException - if the given index is out of boundsgetSelectedComponent(),
getSelectedComponents(),
getSelectedComponentCount(),
isSelectionEmpty()public Component[] getSelectedComponents()
getSelectedComponent(),
getSelectedComponent(int),
getSelectedComponentCount(),
isSelectionEmpty()public int getSelectedComponentCount()
getSelectedComponent(),
getSelectedComponent(int),
getSelectedComponents(),
isSelectionEmpty()public boolean isSelectionEmpty()
getSelectedComponent(),
getSelectedComponent(int),
getSelectedComponents(),
getSelectedComponentCount()public ListSelectionModel getSelectionModel()
public ZooGroup groupSelection()
null
if the selection is too few to be groupedungroupSelection()public void ungroupSelection()
groupSelection()public void setInDesignMode(boolean designing)
designing - whether or not this zoo
is in design modeisInDesignMode()public boolean isInDesignMode()
setInDesignMode(boolean)public void setRestrictingBounds(boolean isRestricting)
isRestricting - whether or not this zoo
is restricting its child components' boundsisRestrictingBounds()public boolean isRestrictingBounds()
setRestrictingBounds(boolean)public void setAllowsMove(boolean allowsMove)
setLocation are not affected
by the value of this property.
allowsMove - whether or not this zoo allows child items
to be moved using direct manipulationallowsMove()public boolean allowsMove()
setLocation are not affected
by the value of this property.
setAllowsMove(boolean)public void setAllowsResize(boolean allowsResize)
setSize are not affected
by the value of this property.
allowsResize - whether or not this zoo allows child items
to be resized using direct manipulationallowsResize()public boolean allowsResize()
setSize are not affected
by the value of this property.
setAllowsResize(boolean)public void setFocusedHighlightColor(Color c)
null,
the highlight color is not changed.
c - highlight color for when this zoo has focusgetFocusedHighlightColor(),
setUnfocusedHighlightColor(Color)public Color getFocusedHighlightColor()
getUnfocusedHighlightColor(),
setFocusedHighlightColor(Color)public void setUnfocusedHighlightColor(Color c)
null,
the highlight color is computed from
the highlight color for when this zoo has focus.
c - highlight color for when this zoo does not have focussetFocusedHighlightColor(Color),
getUnfocusedHighlightColor()public Color getUnfocusedHighlightColor()
null,
the color returned is a color computed
from the highlight color for when this zoo has focus.
setUnfocusedHighlightColor(Color),
getFocusedHighlightColor()public Laminate getLaminateFor(Component c)
null if the given component
is not a child item of this zoo.
c - the component whose laminate is to be returnedpublic boolean isFocusTraversable()
true if this zoo is in design mode,
or false otherwise.
isFocusTraversable in class ZooContainerComponent.isFocusTraversable()public boolean isManagingFocus()
true if this zoo is in design mode,
or false otherwise.
isManagingFocus in class ZooContainerJComponent.isManagingFocus()protected void paintComponent(Graphics g)
g - the graphics context to which to paintprotected Laminate createLaminateFor(Component c)
c - the component to be laminatedprotected void installMouseAdapter()
protected void installSelectionModel()
protected void installFocusAdapter()
protected void updateSelection()
protected Rectangle getLassoBounds()
null if there is no current lasso.
protected void startLasso(MouseEvent evt)
evt - the mouse event that prompted a lassoprotected void resizeLasso(MouseEvent evt)
evt - the mouse event that prompted a lasso resizeprotected void endLasso(MouseEvent evt)
evt - the mouse event that prompted
the end of the current lassoprotected void updateSelectionActions()
SELECT_ALL_ACTION is enabled if
there is at least one top-level component not selected,
and is disabled otherwise.
DESELECT_ALL_ACTION is enabled if
there is at least one top-level component selected,
and is disabled otherwise.
GROUP_SELECTED_COMPONENTS_ACTION is enabled if
there are at least two top-level components selected,
and is disabled otherwise.
UNGROUP_SELECTED_COMPONENT_ACTION is enabled if
there is at least one top-level component selected
and the first selected component
is an instance of ZooGroup,
and is disabled otherwise.
UNGROUP_SELECTED_COMPONENTS_ACTION is enabled if
there is at least one top-level component selected
and all of those components
are instances of ZooGroup,
and is disabled otherwise.
SEND_TO_BACK_ACTION is enabled if
there is only one top-level component selected
and the selected component is not at the deepest z-order,
and is disabled otherwise.
BRING_TO_FRONT_ACTION is enabled if
there is only one top-level component selected
and the selected component is not at the highest z-order,
and is disabled otherwise.
MOVE_UP_ACTION is enabled if
there is only one top-level component selected
and the selected component is not at the highest z-order,
and is disabled otherwise.
MOVE_DOWN_ACTION is enabled if
there is only one top-level component selected
and the selected component is not at the deepest z-order,
and is disabled otherwise.
SELECT_ALL_ACTION,
DESELECT_ALL_ACTION,
GROUP_SELECTED_COMPONENTS_ACTION,
UNGROUP_SELECTED_COMPONENT_ACTION,
UNGROUP_SELECTED_COMPONENTS_ACTION,
SEND_TO_BACK_ACTION,
BRING_TO_FRONT_ACTION,
MOVE_UP_ACTION,
MOVE_DOWN_ACTIONprotected void updateDesignModeActions()
SET_DESIGN_MODE_ON_ACTION is enabled if
this zoo is not in design mode,
and is disabled otherwise.
SET_DESIGN_MODE_OFF_ACTION is enabled if
this zoo is in design mode,
and is disabled otherwise.
SET_DESIGN_MODE_ON_ACTION,
SET_DESIGN_MODE_OFF_ACTIONprotected Color computeUnfocusedHighlightColor(Color c)
null,
this method returns the color black.
c - color used to compute the suitable color
private Component addChildItemImpl(Component c,
int z)
c - a component to be addedz - the desired z-order position of the component
ArrayIndexOutOfBoundsException - if the given z-order position is invalidprivate Component removeChildItemImpl(Component c)
c - a component to be removed
private void removeComponentImpl(Component c,
int z)
c - a component to be removedz - the z-order position of the component,
or -1 if the z-order position is not knownprivate int zOrderToIndex(int z)
z - the z-order position of the component
whose Java container index is desired
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||