|
Internet Chess ToolKit v0.2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectictk.boardgame.chess.io.ChessAnnotation
ChessAnnotation - typicall annotations and comments on a move. Primarily these are Numeric Annotation Glyphs and String comments.
Constructor Summary | |
ChessAnnotation()
|
|
ChessAnnotation(java.lang.String comment)
|
Method Summary | |
void |
addNAG(int nag)
add a new NumericAnnotationGlyph (NAG) to the annotation. |
void |
appendComment(java.lang.String com)
appends to the current comment |
java.lang.String |
dump()
used for diagnostics only |
boolean |
equals(java.lang.Object obj)
this is an exact, one for one, comparison |
java.lang.String |
getComment()
returns the verbose comment/ |
short |
getNAG(int i)
|
short[] |
getNAGs()
returns a short array of NAGs for this annotation. |
java.lang.String |
getNAGString()
calls getNAGString(false) |
java.lang.String |
getNAGString(boolean allNumeric)
returns the array of NAGs as a string delimited by |
short |
getSuffix()
this returns the first nag in the nags list only if it is one of the nags that can be used as a suffix to a move. |
int |
hashCode()
hashes on the comment and the nags |
void |
removeNAG(int i)
removes the NAG from the NAG list. |
void |
setComment(java.lang.String com)
sets the comment, erasing any old comment. |
void |
setNAG(int i,
int nag)
sets a nag to a specific value. |
java.lang.String |
toString()
only useful for diagnostics. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ChessAnnotation()
public ChessAnnotation(java.lang.String comment)
Method Detail |
public short getSuffix()
public void addNAG(int nag)
public void setNAG(int i, int nag)
java.lang.ArrayIndexOutOfBoundsException
public short getNAG(int i)
public short[] getNAGs()
public java.lang.String getNAGString(boolean allNumeric)
allNumeric
- represents all NAGs numerically.
public java.lang.String getNAGString()
public void removeNAG(int i)
public void setComment(java.lang.String com)
Annotation
setComment
in interface Annotation
public void appendComment(java.lang.String com)
Annotation
appendComment
in interface Annotation
public java.lang.String getComment()
Annotation
getComment
in interface Annotation
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
public java.lang.String dump()
dump
in interface Annotation
|
Submit a bug or feature Visit the Website Internet Chess ToolKit is licensed under the GPL v2 . |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |