|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.trinetwatch.ruleset.LevelTag
public class LevelTag
Class LevelTag defines tag objects which represent status and usage levels.
Constructor Summary | |
---|---|
LevelTag(java.lang.String name,
int value,
int colorRGB,
java.lang.String description)
Creates a LevelTag object. |
Method Summary | |
---|---|
int |
compareTo(LevelTag lTag)
Compares the 'value' field of this object with the 'value' field of the specified object 'lTag'. |
int |
compareTo(java.lang.Object obj)
Compares the 'value' field of this object with the 'value' field of the specified object 'obj'. |
protected static LevelTag |
decodeFormattedLTagString(java.lang.String str)
Decodes an ASCII formatted string into a new object. |
java.lang.String |
encodeFormattedString()
Encodes the object into an ASCII formatted string. |
boolean |
equals(java.lang.Object obj)
Compares the given LevelTag object to this object. |
boolean |
equalsIgnoreCase(java.lang.String str)
Compares the given string to the name string for this object, ignoring case. |
boolean |
equalsName(java.lang.Object obj)
Compares the name string of the given LevelTag object to the name string for this object. |
boolean |
equalsName(java.lang.String str)
Compares the given string to the name string for this object. |
boolean |
equalsNum(int num)
Compares the given integer value to the numeric value for the level. |
int |
getColorRGB()
Returns the combined RGB color value for level, consisting of the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7 (same as java.awt.Color). |
java.lang.String |
getDescription()
Returns description of level. |
java.lang.String |
getDisplayString()
Returns displayable string representation of object. |
java.lang.String |
getName()
Returns level tag name. |
int |
getParsePos()
Returns the parse-position variable. |
int |
getValue()
Returns the numeric value for level. |
int |
hashCode()
Returns the hash code for this level tag. |
protected void |
setParsePos(int pos)
Sets the parse-position variable. |
java.lang.String |
toString()
Returns level tag name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LevelTag(java.lang.String name, int value, int colorRGB, java.lang.String description)
name
- level tag name. Any colons in the name are replaced
by underscores, for compatibility with the 'encodeFormattedString()'
function.value
- numeric value for level.colorRGB
- combined RGB color value for level, consisting of
the red component in bits 16-23, the green component in bits 8-15,
and the blue component in bits 0-7 (same as java.awt.Color)--or
this can be the value for an ASCII symbol.description
- optional description of level. Any double-quote
(") characters in the name are replaced by single-quote (')
characters, for compatibility with the 'encodeFormattedString()'
function.Method Detail |
---|
public java.lang.String getName()
public int getValue()
public int getColorRGB()
public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsNum(int num)
public boolean equalsName(java.lang.Object obj)
public boolean equalsName(java.lang.String str)
public boolean equalsIgnoreCase(java.lang.String str)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- a LevelTag object to compare to.
java.lang.ClassCastException
- if the specified object 'obj' is
not a LevelTag object.public int compareTo(LevelTag lTag)
lTag
- a LevelTag object to compare to.
public int getParsePos()
protected void setParsePos(int pos)
public java.lang.String encodeFormattedString()
protected static LevelTag decodeFormattedLTagString(java.lang.String str)
public java.lang.String getDisplayString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |