src/java.desktop/share/classes/java/awt/font/StyledParagraph.java

Print this page

        

*** 45,55 **** /** * This class stores Font, GraphicAttribute, and Decoration intervals * on a paragraph of styled text. * <p> * Currently, this class is optimized for a small number of intervals ! * (preferrably 1). */ final class StyledParagraph { // the length of the paragraph private int length; --- 45,55 ---- /** * This class stores Font, GraphicAttribute, and Decoration intervals * on a paragraph of styled text. * <p> * Currently, this class is optimized for a small number of intervals ! * (preferably 1). */ final class StyledParagraph { // the length of the paragraph private int length;
*** 260,270 **** return oldParagraph; } /** * Return the index at which there is a different Font, GraphicAttribute, or ! * Dcoration than at the given index. * @param index a valid index in the paragraph * @return the first index where there is a change in attributes from * those at index */ public int getRunLimit(int index) { --- 260,270 ---- return oldParagraph; } /** * Return the index at which there is a different Font, GraphicAttribute, or ! * Decoration than at the given index. * @param index a valid index in the paragraph * @return the first index where there is a change in attributes from * those at index */ public int getRunLimit(int index) {