Esempio n. 1
0
 internal AttributedIterator(AttributedString attrString)
 {
     this.attrString = attrString;
     begin           = 0;
     end             = attrString.text.Length;
     offset          = 0;
 }
Esempio 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;
     }
 }
Esempio 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;
     }
 }
Esempio n. 4
0
 internal AttributedIterator(AttributedString attrString)
 {
     this.attrString = attrString;
     begin = 0;
     end = attrString.text.Length;
     offset = 0;
 }