< prev index next >

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

Print this page




 246      *
 247      * @param axis may be either View.X_AXIS or View.Y_AXIS
 248      * @return   the span the view would like to be rendered into;
 249      *           typically the view is told to render into the span
 250      *           that is returned, although there is no guarantee;
 251      *           the parent may choose to resize or break the view
 252      * @see javax.swing.text.ParagraphView#getPreferredSpan
 253      */
 254     public float getPreferredSpan(int axis) {
 255         if (!isVisible()) {
 256             return 0;
 257         }
 258         return super.getPreferredSpan(axis);
 259     }
 260 
 261     /**
 262      * Determines the minimum span for this view along an
 263      * axis.  Returns 0 if the view is not visible, otherwise
 264      * it calls the superclass method to get the minimum span.
 265      *
 266      * @param axis may be either <code>View.X_AXIS</code> or
 267      *  <code>View.Y_AXIS</code>
 268      * @return  the minimum span the view can be rendered into
 269      * @see javax.swing.text.ParagraphView#getMinimumSpan
 270      */
 271     public float getMinimumSpan(int axis) {
 272         if (!isVisible()) {
 273             return 0;
 274         }
 275         return super.getMinimumSpan(axis);
 276     }
 277 
 278     /**
 279      * Determines the maximum span for this view along an
 280      * axis.  Returns 0 if the view is not visible, otherwise
 281      * it calls the superclass method ot get the maximum span.
 282      *
 283      * @param axis may be either <code>View.X_AXIS</code> or
 284      *  <code>View.Y_AXIS</code>
 285      * @return  the maximum span the view can be rendered into
 286      * @see javax.swing.text.ParagraphView#getMaximumSpan
 287      */
 288     public float getMaximumSpan(int axis) {
 289         if (!isVisible()) {
 290             return 0;
 291         }
 292         return super.getMaximumSpan(axis);
 293     }
 294 
 295     private AttributeSet attr;
 296     private StyleSheet.BoxPainter painter;
 297     private CSS.LengthValue cssWidth;
 298     private CSS.LengthValue cssHeight;
 299 }


 246      *
 247      * @param axis may be either View.X_AXIS or View.Y_AXIS
 248      * @return   the span the view would like to be rendered into;
 249      *           typically the view is told to render into the span
 250      *           that is returned, although there is no guarantee;
 251      *           the parent may choose to resize or break the view
 252      * @see javax.swing.text.ParagraphView#getPreferredSpan
 253      */
 254     public float getPreferredSpan(int axis) {
 255         if (!isVisible()) {
 256             return 0;
 257         }
 258         return super.getPreferredSpan(axis);
 259     }
 260 
 261     /**
 262      * Determines the minimum span for this view along an
 263      * axis.  Returns 0 if the view is not visible, otherwise
 264      * it calls the superclass method to get the minimum span.
 265      *
 266      * @param axis may be either {@code View.X_AXIS} or
 267      *  {@code View.Y_AXIS}
 268      * @return  the minimum span the view can be rendered into
 269      * @see javax.swing.text.ParagraphView#getMinimumSpan
 270      */
 271     public float getMinimumSpan(int axis) {
 272         if (!isVisible()) {
 273             return 0;
 274         }
 275         return super.getMinimumSpan(axis);
 276     }
 277 
 278     /**
 279      * Determines the maximum span for this view along an
 280      * axis.  Returns 0 if the view is not visible, otherwise
 281      * it calls the superclass method ot get the maximum span.
 282      *
 283      * @param axis may be either {@code View.X_AXIS} or
 284      *  {@code View.Y_AXIS}
 285      * @return  the maximum span the view can be rendered into
 286      * @see javax.swing.text.ParagraphView#getMaximumSpan
 287      */
 288     public float getMaximumSpan(int axis) {
 289         if (!isVisible()) {
 290             return 0;
 291         }
 292         return super.getMaximumSpan(axis);
 293     }
 294 
 295     private AttributeSet attr;
 296     private StyleSheet.BoxPainter painter;
 297     private CSS.LengthValue cssWidth;
 298     private CSS.LengthValue cssHeight;
 299 }
< prev index next >