| |
---|
| | import org.ntlab.acanthus_server.resources.gallery.StrokesRest; |
---|
| | import org.ntlab.acanthus_server.entities.Position; |
---|
| | |
---|
| | public class Stroke { |
---|
| | private static int i; //strokeNoを数えるためだけ |
---|
| | static int strokeNoCount; //strokeNoを数えるためだけ |
---|
| | private int strokeNo; |
---|
| | private int pen; |
---|
| | private int color; |
---|
| | private int thickness; |
---|
| |
---|
| | } |
---|
| | public int getThickness() { |
---|
| | return this.thickness; |
---|
| | } |
---|
| | public ArrayList<Position> getPositions() { |
---|
| | return this.positions; |
---|
| | } |
---|
| | |
---|
| | //書き始めたらstrokeNoを追加する。 |
---|
| | public void addStrokeNo(){ |
---|
| | this.i++; |
---|
| | this.strokeNo = i; |
---|
| | } |
---|
| | strokeNoCount++; |
---|
| | this.strokeNo = strokeNoCount; |
---|
| | } |
---|
| | |
---|
| | public void addStrokes(int pen, int color, int thickness) { |
---|
| | this.pen = pen; |
---|
| | this.color = color; |
---|
| | this.thickness = thickness; |
---|
| | } |
---|
| | |
---|
| | public void addPositions(ArrayList<Position> positions) { |
---|
| | this.positions = positions; |
---|
| | } |
---|
| | |
---|
| | } |
---|
| | |
---|
| |
---|
| | |
LGTM?
OK
fc495f5
intomaster
frommatsu
on 29 May 2021