< prev index next >
src/java.desktop/share/classes/javax/swing/text/WrappedPlainView.java
Print this page
*** 39,51 ****
* line is too wide to fit within the allocation. The
* line views draw upon the outer class for its state
* to reduce their memory requirements.
* <p>
* The line views do all of their rendering through the
! * <code>drawLine</code> method which in turn does all of
! * its rendering through the <code>drawSelectedText</code>
! * and <code>drawUnselectedText</code> methods. This
* enables subclasses to easily specialize the rendering
* without concern for the layout aspects.
*
* @author Timothy Prinzing
* @see View
--- 39,51 ----
* line is too wide to fit within the allocation. The
* line views draw upon the outer class for its state
* to reduce their memory requirements.
* <p>
* The line views do all of their rendering through the
! * {@code drawLine} method which in turn does all of
! * its rendering through the {@code drawSelectedText}
! * and {@code drawUnselectedText} methods. This
* enables subclasses to easily specialize the rendering
* without concern for the layout aspects.
*
* @author Timothy Prinzing
* @see View
*** 87,98 ****
}
/**
* Renders a line of text, suppressing whitespace at the end
* and expanding any tabs. This is implemented to make calls
! * to the methods <code>drawUnselectedText</code> and
! * <code>drawSelectedText</code> so that the way selected and
* unselected text are rendered can be customized.
*
* @param p0 the starting document location to use >= 0
* @param p1 the ending document location to use >= p1
* @param g the graphics context
--- 87,98 ----
}
/**
* Renders a line of text, suppressing whitespace at the end
* and expanding any tabs. This is implemented to make calls
! * to the methods {@code drawUnselectedText} and
! * {@code drawSelectedText} so that the way selected and
* unselected text are rendered can be customized.
*
* @param p0 the starting document location to use >= 0
* @param p1 the ending document location to use >= p1
* @param g the graphics context
*** 250,260 ****
return p;
}
/**
* Loads all of the children to initialize the view.
! * This is called by the <code>setParent</code> method.
* Subclasses can reimplement this to initialize their
* child views in a different manner. The default
* implementation creates a child view for each
* child element.
*
--- 250,260 ----
return p;
}
/**
* Loads all of the children to initialize the view.
! * This is called by the {@code setParent} method.
* Subclasses can reimplement this to initialize their
* child views in a different manner. The default
* implementation creates a child view for each
* child element.
*
< prev index next >