/[classpath]/classpath/javax/swing/text/BoxView.java
ViewVC logotype

Diff of /classpath/javax/swing/text/BoxView.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by rabbit78, Thu Oct 6 20:16:32 2005 UTC revision 1.7 by abalkiss, Fri Oct 14 18:16:46 2005 UTC
# Line 155  public class BoxView Line 155  public class BoxView
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}.
# Line 216  public class BoxView Line 217  public class BoxView
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    {    {
# Line 534  public class BoxView Line 535  public class BoxView
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)
# Line 554  public class BoxView Line 555  public class BoxView
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)
# Line 664  public class BoxView Line 665  public class BoxView
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
# Line 683  public class BoxView Line 684  public class BoxView
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

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26