|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectjgGlyphs.GlyphSet
A GlyphSet is a collection of Characters and string fragments
| Field Summary | |
protected java.util.Vector |
glyphs
The vector of glyphs. |
| Constructor Summary | |
GlyphSet()
Constructor. |
|
GlyphSet(GlyphSet gs)
Constructor that effectively "clones" the passed GlyphSet |
|
| Method Summary | |
void |
addGlyph(java.lang.String g)
Adds a glyph to the list. |
void |
addGlyphChars(java.lang.String g)
Adds new glyphs to the set. |
void |
addGlyphs(GlyphSet gs)
Adds each glyph in the passed GlyphSet to this GlyphSet |
void |
addGlyphs(java.lang.String[] ga)
Adds each String in the array via the addGlyph method |
boolean |
contains(java.lang.String g)
Returns true if the glyph set contains the specified glyph |
GlyphSet |
keepOnly(GlyphSet gs)
Prunes this glyph set to contain only elements in the passed glyph set |
void |
removeGlyph(java.lang.String g)
Removes a glyph from the list |
GlyphSet |
removeGlyphs(GlyphSet gs)
Removes all glyphs in the passed set from this GlyphSet |
int |
size()
Returns the number of glyphs in the set |
java.lang.String[] |
toArray()
Returns all the glyphs in order |
java.lang.String |
toString()
Returns the string representation of this class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Vector glyphs
| Constructor Detail |
public GlyphSet()
public GlyphSet(GlyphSet gs)
| Method Detail |
public java.lang.String toString()
public void addGlyphChars(java.lang.String g)
g - the glyphs to add.public void addGlyph(java.lang.String g)
g - the glyph to addpublic void addGlyphs(java.lang.String[] ga)
ga - the array of Strings to addpublic void addGlyphs(GlyphSet gs)
gs - the GlyphSet to addpublic void removeGlyph(java.lang.String g)
public int size()
public boolean contains(java.lang.String g)
public java.lang.String[] toArray()
public GlyphSet keepOnly(GlyphSet gs)
public GlyphSet removeGlyphs(GlyphSet gs)
gs - the glyphs to remove, as a GlyphSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||