|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectjgGlyphs.GlyphImage
This class breaks down a filename into its basic parts. The glyph is the prefix: either the string up to the first drop ("_") if one exists in the filename, or the first Character otherwise. The name is the normalized name: if the glyph is a multi-Character prefix, this (and the following drop) is removed; the extension is also removed. The loc (location) is the full pathspec.
| Field Summary | |
protected java.io.File |
loc
This is the full pathspec to the image |
| Constructor Summary | |
GlyphImage(java.io.File file)
Constructor, specifies the File location |
|
| Method Summary | |
boolean |
equalsNameOf(GlyphImage gi)
This is a convenience wrapper for the static class method. |
static boolean |
equalsNameOf(GlyphImage orange,
GlyphImage apple)
Compares the names of two GlyphImages to see if they are equal. |
java.lang.String |
getGlyph()
This is a convenience wrapper for the static class method. |
static java.lang.String |
getGlyph(java.io.File file)
Returns the glyph that this image pertains to, lowercased if applicable. |
java.io.File |
getLocation()
Returns the location of this image. |
java.lang.String |
getMarkupLabel()
This is a convenience wrapper for the static class method. |
static java.lang.String |
getMarkupName(GlyphImage gi)
Gets the name of the image, marking up the name using html. |
java.lang.String |
getName()
This is a convenience wrapper for the static class method. |
static java.lang.String |
getName(java.io.File file)
Returns the normalized name. |
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.io.File loc
| Constructor Detail |
public GlyphImage(java.io.File file)
| Method Detail |
public java.lang.String toString()
public java.lang.String getGlyph()
public static java.lang.String getGlyph(java.io.File file)
public java.lang.String getName()
public static java.lang.String getName(java.io.File file)
public java.io.File getLocation()
public boolean equalsNameOf(GlyphImage gi)
gi - a GlyphImage to compare names with
public static boolean equalsNameOf(GlyphImage orange,
GlyphImage apple)
orange - a GlyphImageapple - another GlyphImage
public static java.lang.String getMarkupName(GlyphImage gi)
public java.lang.String getMarkupLabel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||