Class PlacementListToken
- java.lang.Object
-
- com.barrybecker4.ca.dj.jigo.sgf.tokens.SGFToken
-
- com.barrybecker4.ca.dj.jigo.sgf.tokens.PlacementToken
-
- com.barrybecker4.ca.dj.jigo.sgf.tokens.PlacementListToken
-
- All Implemented Interfaces:
MarkupToken
- Direct Known Subclasses:
AddBlackToken,AddWhiteToken,ArrowToken,CircleToken,DimToken,LabelToken,LineToken,SelectedListToken,SquareToken,TriangleToken,ViewToken
public class PlacementListToken extends PlacementToken implements MarkupToken
A list of points.
-
-
Constructor Summary
Constructors Constructor Description PlacementListToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<Point>getPoints()java.util.List<Point>getPoints2()protected booleanparseContent(java.io.StreamTokenizer st)Subclasses must read all of the content and the final closing bracket.-
Methods inherited from class com.barrybecker4.ca.dj.jigo.sgf.tokens.PlacementToken
getPoint, getX, getY, parsePoint
-
-
-
-
Method Detail
-
parseContent
protected boolean parseContent(java.io.StreamTokenizer st) throws java.io.IOExceptionDescription copied from class:SGFTokenSubclasses must read all of the content and the final closing bracket. This is cool because all tokens end with a closing bracket anyway, which tells them when to stop reading. That's why there isn't a symmetrical read and validate (int)']' in the parse method, above.- Overrides:
parseContentin classPlacementToken- Parameters:
st- - The SGF stream from which characters can be read.- Throws:
java.io.IOException
-
getPoints
public java.util.Iterator<Point> getPoints()
-
getPoints2
public java.util.List<Point> getPoints2()
-
-