Modifier and Type | Method and Description |
---|---|
static Point |
canvas.drawPoint(double x,
double y)
Draws a point at the given coordinates in the default color.
|
static Point |
canvas.drawPoint(double x,
double y,
java.lang.String color)
Draws a point at the given coordinates in the given color.
|
Point |
Square.getCenter()
Returns the center of this rectangle.
|
Point |
Circle.getCenter()
Returns the center of this circle.
|
Point |
Rectangle.getCenter()
Returns the center of this rectangle.
|
Point |
Point.getCenter()
Returns center of this point.
|
Point |
Line.getCenter()
Returns the center of this line.
|
Point |
Image.getCenter()
Returns the center of this image.
|
Point |
Text.getCenter()
Returns the center of this text.
|
abstract Point |
Shape.getCenter()
Returns the center of this shape.
|
Point |
Triangle.getCenter()
Returns the center of this triangle.
|
Point |
Fling.getEnd()
Returns the point where the fling ended.
|
Point |
Line.getP1()
Returns the first point of this line.
|
Point |
Triangle.getP1()
Returns the first vertex of this triangle.
|
Point |
Line.getP2()
Returns the second point of this line.
|
Point |
Triangle.getP2()
Returns the second vertex of this triangle.
|
Point |
Triangle.getP3()
Returns the third vertex of this triangle.
|
Point |
Touch.getPoint()
Returns the point location of this touch event.
|
Point |
Fling.getStart()
Returns the point where the fling started.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Square.contains(Point point)
Determines if this square contains the given point.
|
boolean |
Circle.contains(Point point)
Determines if this circle contains the given point.
|
boolean |
Rectangle.contains(Point point)
Determines if this rectangle contains the given point.
|
boolean |
Point.contains(Point point)
Determines if this point contains the given point.
|
boolean |
Line.contains(Point p0)
Determines if this line contains the given point.
|
boolean |
Image.contains(Point point)
Determines if this image contains the given point.
|
boolean |
Text.contains(Point point)
Determines if this text contains the given point.
|
abstract boolean |
Shape.contains(Point point)
Determines if this shape contains the given point.
|
boolean |
Triangle.contains(Point point)
Determines if this triangle contains the given point.
|
static double |
Point.distance_squared(Point p1,
Point p2)
Returns the squared distance between the given points.
|
static double |
Point.distance(Point p1,
Point p2)
Returns the distance between the given points.
|
Constructor and Description |
---|
Circle(Point cen,
double r)
Creates a circle of the given radius and default color
centered at the given point.
|
Circle(Point cen,
Point pt)
Creates a circle of the default color going through the
given center and point on the circumference.
|
Image(Point cen,
java.lang.String name)
Creates an image from the given file centered at the given point.
|
Line(Point p,
Point q)
Creates a line between the given points.
|
Rectangle(Point cen,
double w,
double h)
Creates a rectangle centered at the given point with
the given dimensions and default color.
|
Square(Point cen,
double s)
Creates a square centered at the given point with
the given side length and default color.
|
Text(Point cen,
java.lang.String t)
Creates text centered at the given point in the default color and size.
|
Text(Point cen,
java.lang.String t,
int s)
Creates text centered at the given point in the default color and given size.
|
Triangle(Point p,
Point q,
Point r)
Creates a triangle with the given vertex points..
|