Lines Matching defs:position

111  * A component can be moved to the top or bottom position within its
114 * The position of a component within a layer can also be specified directly.
117 * position. A value of 0 indicates the topmost position. Unlike layer
118 * numbers, higher position values are <i>lower</i> in the display.
124 * Here are some examples using the method add(Component, layer, position):
294 /// MAKE SURE THIS AND setLayer(Component c, int layer, int position) are SYNCED
349 * also sets its position within that layer.
354 * @param position an int specifying the position within the
355 * layer, where 0 is the topmost position and -1
356 * is the bottommost position
358 public void setLayer(Component c, int layer, int position) {
362 if(layer == getLayer(c) && position == getPosition(c)) {
378 int index = insertIndexForLayer(c, layer, position);
405 * Index numbers, like position numbers, have the topmost component
423 * (position 0).
434 * (position -1).
444 * Moves the component to <code>position</code> within its current layer,
445 * where 0 is the topmost position within the layer and -1 is the bottommost
446 * position.
449 * is the opposite of layer numbering. Lower position numbers are closer
450 * to the top (0 is topmost), and higher position numbers are closer to
454 * @param position an int in the range -1..N-1, where N is the number of
457 public void setPosition(Component c, int position) {
458 setLayer(c, getLayer(c), position);
462 * Get the relative position of the component within its layer.
465 * @return an int giving the component's position, where 0 is the
466 * topmost position and the highest index value = the count
635 * insert a new child based on layer and position requests.
638 * @param position an int specifying the position within the layer
643 protected int insertIndexForLayer(int layer, int position) {
644 return insertIndexForLayer(null, layer, position);
655 * @param position an int specifying the position within the layer
660 private int insertIndexForLayer(Component comp, int layer, int position) {
707 if (position == -1)
710 // Otherwise make sure the requested position falls in the
712 if (position > -1 && layerStart + position <= layerEnd)
713 return layerStart + position;