public class Worm extends Object implements Iterable<Point2D.Double>
| Constructor and Description |
|---|
Worm() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int i,
Point2D.Double pt) |
void |
addAll(Worm other) |
void |
addPoint(double x,
double y) |
void |
addPoint(Point2D pt) |
void |
drawInternalOneColor(UGraphic ug,
HtmlColorAndStyle color,
double stroke,
Direction emphasizeDirection,
UPolygon endDecoration) |
Point2D.Double |
get(int i) |
Point2D |
getLast() |
boolean |
isPureHorizontal() |
Iterator<Point2D.Double> |
iterator() |
Worm |
merge(Worm other,
MergeStrategy merge) |
Worm |
move(double dx,
double dy) |
Worm |
moveFirstPoint(UTranslate move) |
Worm |
moveLastPoint(UTranslate move) |
void |
remove(int i) |
int |
size() |
String |
toString() |
Worm |
translate(UTranslate translate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic boolean isPureHorizontal()
public void drawInternalOneColor(UGraphic ug, HtmlColorAndStyle color, double stroke, Direction emphasizeDirection, UPolygon endDecoration)
public Worm move(double dx, double dy)
public Worm moveFirstPoint(UTranslate move)
public Worm moveLastPoint(UTranslate move)
public void addPoint(double x,
double y)
public void addPoint(Point2D pt)
public Worm translate(UTranslate translate)
public Iterator<Point2D.Double> iterator()
iterator in interface Iterable<Point2D.Double>public int size()
public Point2D.Double get(int i)
public void addAll(Worm other)
public void remove(int i)
public void add(int i,
Point2D.Double pt)
public Point2D getLast()
public Worm merge(Worm other, MergeStrategy merge)
Copyright © 2017. All rights reserved.