Package nu.fw.jeti.plugins

Examples of nu.fw.jeti.plugins.Word.addAttributes()


            Emoticon emoticon = (Emoticon)j.next();
            String toCheck = emoticon.toString();
            if (token.equals(toCheck))
            {
              setIcon(sas,emoticon);
              word.addAttributes(sas);
              break;
            }
            else if (token.startsWith(toCheck))
            {
              word.word = "o";
View Full Code Here


            }
            else if (token.startsWith(toCheck))
            {
              word.word = "o";
              setIcon(sas,emoticon);
              word.addAttributes(sas);
              //split smiley and word
              wordList.add(i+1,new Word(" "));
              wordList.add(i+2,new Word(token.substring(toCheck.length())));
              i++;//don't check inserted space
              break;
View Full Code Here

      Word word = (Word)wordList.get(i);
           String token = word.word;
           if(token.startsWith("xmpp:"))
           {
             linkAttributeSet.addAttribute("xmpp", token);
             word.addAttributes(linkAttributeSet);
           }
      }
  }
 
  public void unload()
View Full Code Here

    MutableAttributeSet set = new SimpleAttributeSet();
    StyleConstants.setForeground(set, colors[cycle]);
    for (Iterator iter = wordList.iterator(); iter.hasNext();)
    {
      Word word =(Word) iter.next();
      word.addAttributes(set);
    }
    cycle++;
    if(cycle==colors.length)cycle=0;
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.