|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--kinetic.util.Segmenter
abtract base class used to create custom segmenters that can hook into the framework for creating custom reusable animations
| Field Summary | |
protected javax.swing.text.StyledDocument |
document
styled document of the text to be segmented |
protected int |
documentLength
length of the text in the styled document |
protected int |
documentStart
start position of the text in the styled docuemnt |
protected java.lang.String |
text
text that will be segmented |
| Constructor Summary | |
Segmenter()
Creates a new instance of Segmenter |
|
Segmenter(kinetic.util.Segment seg)
creates a new instance of the segmeter from a styled document that may contain attribute sets. |
|
Segmenter(java.lang.String t)
creates a new instance of the segmenter purely from a plain string |
|
| Method Summary | |
abstract kinetic.util.Segment |
getNextSegment()
return the next segment available from the segmenter |
boolean |
hasMoreSegements()
checks to see if more segments are available |
void |
segmentSegment(kinetic.util.Segment seg)
set sthe segment that will be segmented by this segmenter |
abstract void |
segmentText(java.lang.String t)
sets the string to be segmented by this segmenter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String text
protected javax.swing.text.StyledDocument document
protected int documentStart
protected int documentLength
| Constructor Detail |
public Segmenter()
public Segmenter(java.lang.String t)
t - text to be segmentedpublic Segmenter(kinetic.util.Segment seg)
seg - segment to tbe segmented| Method Detail |
public abstract void segmentText(java.lang.String t)
t - text to be segmentedpublic void segmentSegment(kinetic.util.Segment seg)
seg - segment to be segmented
public abstract kinetic.util.Segment getNextSegment()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - thrown if no more segments are availablepublic boolean hasMoreSegements()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||