Exemplo n.º 1
0
 internal AttributedIterator(AttributedString attrString)
 {
     this.attrString = attrString;
     begin           = 0;
     end             = attrString.text.Length;
     offset          = 0;
 }
Exemplo n.º 2
0
 internal AttributedIterator(AttributedString attrString,
                             AttributedCharacterIteratorNS.Attribute[] attributes, int begin,
                             int end)
 {
     if (begin < 0 || end > attrString.text.Length || begin > end)
     {
         throw new java.lang.IllegalArgumentException();
     }
     this.begin      = begin;
     this.end        = end;
     offset          = begin;
     this.attrString = attrString;
     if (attributes != null)
     {
         java.util.HashSet <AttributedCharacterIteratorNS.Attribute> set = new java.util.HashSet <AttributedCharacterIteratorNS.Attribute>(
             (attributes.Length * 4 / 3) + 1);
         for (int i = attributes.Length; --i >= 0;)
         {
             set.add(attributes[i]);
         }
         attributesAllowed = set;
     }
 }
Exemplo n.º 3
0
 internal AttributedIterator(AttributedString attrString,
         AttributedCharacterIteratorNS.Attribute[] attributes, int begin,
         int end)
 {
     if (begin < 0 || end > attrString.text.Length || begin > end) {
         throw new java.lang.IllegalArgumentException();
     }
     this.begin = begin;
     this.end = end;
     offset = begin;
     this.attrString = attrString;
     if (attributes != null) {
         java.util.HashSet<AttributedCharacterIteratorNS.Attribute> set = new java.util.HashSet<AttributedCharacterIteratorNS.Attribute>(
                 (attributes.Length * 4 / 3) + 1);
         for (int i = attributes.Length; --i >= 0;) {
             set.add(attributes[i]);
         }
         attributesAllowed = set;
     }
 }
Exemplo n.º 4
0
 internal AttributedIterator(AttributedString attrString)
 {
     this.attrString = attrString;
     begin = 0;
     end = attrString.text.Length;
     offset = 0;
 }