< prev index next >
src/java.desktop/share/classes/javax/swing/text/AsyncBoxView.java
Print this page
@@ -476,19 +476,19 @@
// --- View methods ------------------------------------
/**
* Sets the parent of the view.
* This is reimplemented to provide the superclass
- * behavior as well as calling the <code>loadChildren</code>
+ * behavior as well as calling the {@code loadChildren}
* method if this view does not already have children.
* The children should not be loaded in the
* constructor because the act of setting the parent
* may cause them to try to search up the hierarchy
* (to get the hosting Container for example).
* If this view has children (the view is being moved
* from one place in the view hierarchy to another),
- * the <code>loadChildren</code> method will not be called.
+ * the {@code loadChildren} method will not be called.
*
* @param parent the parent of the view, null if none
*/
public void setParent(View parent) {
super.setParent(parent);
@@ -552,12 +552,12 @@
}
/**
* Retrieves the size of the view along an axis.
*
- * @param axis may be either <code>View.X_AXIS</code> or
- * <code>View.Y_AXIS</code>
+ * @param axis may be either {@code View.X_AXIS} or
+ * {@code View.Y_AXIS}
* @return the current span of the view along the given axis, >= 0
*/
float getSpanOnAxis(int axis) {
if (axis == getMajorAxis()) {
return majorSpan;
@@ -570,12 +570,12 @@
* axis is updated asynchronously and should be the sum of the
* tiled children the call is ignored for the major axis. Since
* the minor axis is flexible, work is queued to resize the
* children if the minor span changes.
*
- * @param axis may be either <code>View.X_AXIS</code> or
- * <code>View.Y_AXIS</code>
+ * @param axis may be either {@code View.X_AXIS} or
+ * {@code View.Y_AXIS}
* @param span the span to layout to >= 0
*/
void setSpanOnAxis(int axis, float span) {
float margin = getInsetSpan(axis);
if (axis == getMinorAxis()) {
@@ -854,21 +854,21 @@
* @param a the allocated region to render into
* @param direction the direction from the current position that can
* be thought of as the arrow keys typically found on a keyboard;
* this may be one of the following:
* <ul style="list-style-type:none">
- * <li><code>SwingConstants.WEST</code></li>
- * <li><code>SwingConstants.EAST</code></li>
- * <li><code>SwingConstants.NORTH</code></li>
- * <li><code>SwingConstants.SOUTH</code></li>
+ * <li>{@code SwingConstants.WEST}</li>
+ * <li>{@code SwingConstants.EAST}</li>
+ * <li>{@code SwingConstants.NORTH}</li>
+ * <li>{@code SwingConstants.SOUTH}</li>
* </ul>
* @param biasRet an array contain the bias that was checked
* @return the location within the model that best represents the next
* location visual position
* @exception BadLocationException the given position is not a valid
* position within the document
- * @exception IllegalArgumentException if <code>direction</code> is invalid
+ * @exception IllegalArgumentException if {@code direction} is invalid
*/
public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a,
int direction,
Position.Bias[] biasRet)
throws BadLocationException {
< prev index next >