123 * 124 * @param axis may be either View.X_AXIS or View.Y_AXIS 125 * @return the span the view would like to be rendered into; 126 * typically the view is told to render into the span 127 * that is returned, although there is no guarantee; 128 * the parent may choose to resize or break the view 129 * @see text.ParagraphView#getPreferredSpan 130 */ 131 public float getPreferredSpan(int axis) { 132 if (!visible) { 133 return 0; 134 } 135 return super.getPreferredSpan(axis); 136 } 137 138 /** 139 * Determines the minimum span for this view along an 140 * axis. Returns 0 if the view is not visible, otherwise 141 * it calls the superclass method to get the minimum span. 142 * 143 * @param axis may be either <code>View.X_AXIS</code> or 144 * <code>View.Y_AXIS</code> 145 * @return the minimum span the view can be rendered into 146 * @see text.ParagraphView#getMinimumSpan 147 */ 148 public float getMinimumSpan(int axis) { 149 if (!visible) { 150 return 0; 151 } 152 return super.getMinimumSpan(axis); 153 } 154 155 /** 156 * Determines the maximum span for this view along an 157 * axis. Returns 0 if the view is not visible, otherwise 158 * it calls the superclass method ot get the maximum span. 159 * 160 * @param axis may be either <code>View.X_AXIS</code> or 161 * <code>View.Y_AXIS</code> 162 * @return the maximum span the view can be rendered into 163 * @see text.ParagraphView#getMaximumSpan 164 */ 165 public float getMaximumSpan(int axis) { 166 if (!visible) { 167 return 0; 168 } 169 return super.getMaximumSpan(axis); 170 } 171 172 boolean visible; 173 } | 123 * 124 * @param axis may be either View.X_AXIS or View.Y_AXIS 125 * @return the span the view would like to be rendered into; 126 * typically the view is told to render into the span 127 * that is returned, although there is no guarantee; 128 * the parent may choose to resize or break the view 129 * @see text.ParagraphView#getPreferredSpan 130 */ 131 public float getPreferredSpan(int axis) { 132 if (!visible) { 133 return 0; 134 } 135 return super.getPreferredSpan(axis); 136 } 137 138 /** 139 * Determines the minimum span for this view along an 140 * axis. Returns 0 if the view is not visible, otherwise 141 * it calls the superclass method to get the minimum span. 142 * 143 * @param axis may be either {@code View.X_AXIS} or 144 * {@code View.Y_AXIS} 145 * @return the minimum span the view can be rendered into 146 * @see text.ParagraphView#getMinimumSpan 147 */ 148 public float getMinimumSpan(int axis) { 149 if (!visible) { 150 return 0; 151 } 152 return super.getMinimumSpan(axis); 153 } 154 155 /** 156 * Determines the maximum span for this view along an 157 * axis. Returns 0 if the view is not visible, otherwise 158 * it calls the superclass method ot get the maximum span. 159 * 160 * @param axis may be either {@code View.X_AXIS} or 161 * {@code View.Y_AXIS} 162 * @return the maximum span the view can be rendered into 163 * @see text.ParagraphView#getMaximumSpan 164 */ 165 public float getMaximumSpan(int axis) { 166 if (!visible) { 167 return 0; 168 } 169 return super.getMaximumSpan(axis); 170 } 171 172 boolean visible; 173 } |