155 |
* automatically when any of the child view changes its preferences |
* automatically when any of the child view changes its preferences |
156 |
* via {@link #preferenceChanged(View, boolean, boolean)}. |
* via {@link #preferenceChanged(View, boolean, boolean)}. |
157 |
* |
* |
158 |
* The layout will be updated the next time when {@link #setSize()} is |
* The layout will be updated the next time when |
159 |
* called, typically from within the {@link #paint()} method. |
* {@link #setSize(float, float)} is called, typically from within the |
160 |
|
* {@link #paint(Graphics, Shape)} method. |
161 |
* |
* |
162 |
* Valid values for the axis are {@link View#X_AXIS} and |
* Valid values for the axis are {@link View#X_AXIS} and |
163 |
* {@link View#Y_AXIS}. |
* {@link View#Y_AXIS}. |
217 |
* @param alloc the allocated region for the child to paint into |
* @param alloc the allocated region for the child to paint into |
218 |
* @param index the index of the child to be painted |
* @param index the index of the child to be painted |
219 |
* |
* |
220 |
* @see {@link #childAllocation} |
* @see #childAllocation(int, Rectangle) |
221 |
*/ |
*/ |
222 |
protected void paintChild(Graphics g, Rectangle alloc, int index) |
protected void paintChild(Graphics g, Rectangle alloc, int index) |
223 |
{ |
{ |
535 |
* to layout the children |
* to layout the children |
536 |
* @param axis the axis along which the layout is performed |
* @param axis the axis along which the layout is performed |
537 |
* @param offsets the array that holds the offsets of the children on exit |
* @param offsets the array that holds the offsets of the children on exit |
538 |
* @param offsets the array that holds the spans of the children on exit |
* @param spans the array that holds the spans of the children on exit |
539 |
*/ |
*/ |
540 |
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, |
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, |
541 |
int[] spans) |
int[] spans) |
555 |
* to layout the children |
* to layout the children |
556 |
* @param axis the axis along which the layout is performed |
* @param axis the axis along which the layout is performed |
557 |
* @param offsets the array that holds the offsets of the children on exit |
* @param offsets the array that holds the offsets of the children on exit |
558 |
* @param offsets the array that holds the spans of the children on exit |
* @param spans the array that holds the spans of the children on exit |
559 |
*/ |
*/ |
560 |
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, |
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, |
561 |
int[] spans) |
int[] spans) |
665 |
* |
* |
666 |
* @param axis the axis to examine, either <code>X_AXIS</code> or |
* @param axis the axis to examine, either <code>X_AXIS</code> or |
667 |
* <code>Y_AXIS</code> |
* <code>Y_AXIS</code> |
668 |
* @param index the index of the child for for which to return the span |
* @param childIndex the index of the child for for which to return the span |
669 |
* |
* |
670 |
* @return the span for the child view with the given index for the specified |
* @return the span for the child view with the given index for the specified |
671 |
* axis |
* axis |
684 |
* |
* |
685 |
* @param axis the axis to examine, either <code>X_AXIS</code> or |
* @param axis the axis to examine, either <code>X_AXIS</code> or |
686 |
* <code>Y_AXIS</code> |
* <code>Y_AXIS</code> |
687 |
* @param index the index of the child for for which to return the span |
* @param childIndex the index of the child for for which to return the span |
688 |
* |
* |
689 |
* @return the offset for the child view with the given index for the |
* @return the offset for the child view with the given index for the |
690 |
* specified axis |
* specified axis |