< prev index next >

src/java.desktop/share/classes/javax/swing/text/html/BlockView.java

Print this page

        

*** 348,359 **** /** * Determines the preferred span for this view along an * axis. * ! * @param axis may be either <code>View.X_AXIS</code> ! * or <code>View.Y_AXIS</code> * @return the span the view would like to be rendered into &gt;= 0; * typically the view is told to render into the span * that is returned, although there is no guarantee; * the parent may choose to resize or break the view * @exception IllegalArgumentException for an invalid axis type --- 348,359 ---- /** * Determines the preferred span for this view along an * axis. * ! * @param axis may be either {@code View.X_AXIS} ! * or {@code View.Y_AXIS} * @return the span the view would like to be rendered into &gt;= 0; * typically the view is told to render into the span * that is returned, although there is no guarantee; * the parent may choose to resize or break the view * @exception IllegalArgumentException for an invalid axis type
*** 364,375 **** /** * Determines the minimum span for this view along an * axis. * ! * @param axis may be either <code>View.X_AXIS</code> ! * or <code>View.Y_AXIS</code> * @return the span the view would like to be rendered into &gt;= 0; * typically the view is told to render into the span * that is returned, although there is no guarantee; * the parent may choose to resize or break the view * @exception IllegalArgumentException for an invalid axis type --- 364,375 ---- /** * Determines the minimum span for this view along an * axis. * ! * @param axis may be either {@code View.X_AXIS} ! * or {@code View.Y_AXIS} * @return the span the view would like to be rendered into &gt;= 0; * typically the view is told to render into the span * that is returned, although there is no guarantee; * the parent may choose to resize or break the view * @exception IllegalArgumentException for an invalid axis type
*** 380,391 **** /** * Determines the maximum span for this view along an * axis. * ! * @param axis may be either <code>View.X_AXIS</code> ! * or <code>View.Y_AXIS</code> * @return the span the view would like to be rendered into &gt;= 0; * typically the view is told to render into the span * that is returned, although there is no guarantee; * the parent may choose to resize or break the view * @exception IllegalArgumentException for an invalid axis type --- 380,391 ---- /** * Determines the maximum span for this view along an * axis. * ! * @param axis may be either {@code View.X_AXIS} ! * or {@code View.Y_AXIS} * @return the span the view would like to be rendered into &gt;= 0; * typically the view is told to render into the span * that is returned, although there is no guarantee; * the parent may choose to resize or break the view * @exception IllegalArgumentException for an invalid axis type
*** 426,437 **** HTMLDocument doc = (HTMLDocument) getDocument(); return doc.getStyleSheet(); } /** ! * Constrains <code>want</code> to fit in the minimum size specified ! * by <code>min</code>. */ private void constrainSize(int axis, SizeRequirements want, SizeRequirements min) { if (min.minimum > want.minimum) { want.minimum = want.preferred = min.minimum; --- 426,437 ---- HTMLDocument doc = (HTMLDocument) getDocument(); return doc.getStyleSheet(); } /** ! * Constrains {@code want} to fit in the minimum size specified ! * by {@code min}. */ private void constrainSize(int axis, SizeRequirements want, SizeRequirements min) { if (min.minimum > want.minimum) { want.minimum = want.preferred = min.minimum;
< prev index next >