< prev index next >
src/java.desktop/share/classes/javax/swing/text/PlainView.java
Print this page
*** 60,75 ****
}
/**
* 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 lineIndex the line to draw >= 0
! * @param g the <code>Graphics</code> context
* @param x the starting X position >= 0
* @param y the starting Y position >= 0
* @see #drawUnselectedText
* @see #drawSelectedText
*/
--- 60,75 ----
}
/**
* 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 lineIndex the line to draw >= 0
! * @param g the {@code Graphics} context
* @param x the starting X position >= 0
* @param y the starting Y position >= 0
* @see #drawUnselectedText
* @see #drawSelectedText
*/
*** 319,330 ****
}
}
/**
* Should return a shape ideal for painting based on the passed in
! * Shape <code>a</code>. This is useful if painting in a different
! * region. The default implementation returns <code>a</code>.
*/
Shape adjustPaintRegion(Shape a) {
return a;
}
--- 319,330 ----
}
}
/**
* Should return a shape ideal for painting based on the passed in
! * Shape {@code a}. This is useful if painting in a different
! * region. The default implementation returns {@code a}.
*/
Shape adjustPaintRegion(Shape a) {
return a;
}
< prev index next >