/[classpath]/classpath/javax/swing/text/DefaultStyledDocument.java
ViewVC logotype

Diff of /classpath/javax/swing/text/DefaultStyledDocument.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by rabbit78, Wed Sep 14 22:00:38 2005 UTC revision 1.12 by rabbit78, Tue Sep 20 08:57:39 2005 UTC
# Line 1025  public class DefaultStyledDocument exten Line 1025  public class DefaultStyledDocument exten
1025     *     selection are overridden, otherwise they are merged     *     selection are overridden, otherwise they are merged
1026     */     */
1027    public void setParagraphAttributes(int offset, int length,    public void setParagraphAttributes(int offset, int length,
1028                                       AttributeSet attributes,                                       AttributeSet attributes,
1029                                       boolean replace)                                       boolean replace)
1030    {    {
1031      // FIXME: Implement me.      int index = offset;
1032      throw new Error("not implemented");      while (index < offset + length)
1033          {
1034            AbstractElement par = (AbstractElement) getParagraphElement(index);
1035            AttributeContext ctx = getAttributeContext();
1036            if (replace)
1037              par.removeAttributes(par);
1038            par.addAttributes(attributes);
1039            index = par.getElementCount();
1040          }
1041    }    }
1042    
1043    /**    /**
# Line 1081  public class DefaultStyledDocument exten Line 1089  public class DefaultStyledDocument exten
1089              // joined with the previous element.              // joined with the previous element.
1090              else if (specs.size() == 0)              else if (specs.size() == 0)
1091                {                {
1092                  if (attr.isEqual(prev.getAttributes()))                  if (prev.getAttributes().isEqual(attr))
1093                      spec.setDirection(ElementSpec.JoinPreviousDirection);                      spec.setDirection(ElementSpec.JoinPreviousDirection);
1094                }                }
1095    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26