public interface TurtleShape
Modifier and Type | Method and Description |
---|---|
int |
getFrameCount()
Returns immutable number of animation frames defined for each view of the
shape.
|
long |
getFrameDuration()
Returns immutable animation delay (time period between animation frames)
in milliseconds.
|
int |
getViewCount()
Returns immutable number of views provided by the shape.
|
boolean |
isPointOfShape(Turtle t,
double x,
double y)
Returns whether a given point is internal point of current turtle's
shape.
|
void |
paintTurtle(Turtle t,
Graphics2D g)
Paints the turtle shape.
|
void paintTurtle(Turtle t, Graphics2D g)
t
- the turtle whose shape is paintg
- the graphics where the turtle's shape should be paintint getViewCount()
int getFrameCount()
long getFrameDuration()
boolean isPointOfShape(Turtle t, double x, double y)
t
- the turtle whose shape is consideredx
- the x coordinate of pointy
- the y coordinate of pointCopyright © 2017. All rights reserved.