NASA World Wind

gov.nasa.worldwind.render
Class MultiLineTextRenderer.WordIteratorHTML

java.lang.Object
  extended by gov.nasa.worldwind.render.MultiLineTextRenderer.WordIteratorHTML
All Implemented Interfaces:
Iterator<String>
Enclosing class:
MultiLineTextRenderer

public static class MultiLineTextRenderer.WordIteratorHTML
extends Object
implements Iterator<String>

Iterates through words from an HTML text line. Note that returned 'words' can contain html tags at any place, before, inside or after the word.


Field Summary
protected  int nextWord
           
protected static Pattern SGMLOrSpacePattern
           
protected  ArrayList<String> words
           
 
Constructor Summary
MultiLineTextRenderer.WordIteratorHTML(String text)
           
 
Method Summary
protected  void addWord(String word)
           
 boolean hasNext()
           
 String next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextWord

protected int nextWord

SGMLOrSpacePattern

protected static Pattern SGMLOrSpacePattern

words

protected ArrayList<String> words
Constructor Detail

MultiLineTextRenderer.WordIteratorHTML

public MultiLineTextRenderer.WordIteratorHTML(String text)
Method Detail

addWord

protected void addWord(String word)

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<String>

next

public String next()
Specified by:
next in interface Iterator<String>

remove

public void remove()
Specified by:
remove in interface Iterator<String>

NASA World Wind