public class Primitives extends Object
Constructor and Description |
---|
Primitives() |
Modifier and Type | Method and Description |
---|---|
static PathSprite |
arrow(double cx,
double cy,
double radius)
Generates an arrow using the given parameters.
|
static CircleSprite |
circle(double cx,
double cy,
double radius)
Generates a circle using the given parameters.
|
static PathSprite |
cross(double cx,
double cy,
double radius)
Generates a cross using the given parameters.
|
static PathSprite |
diamond(double cx,
double cy,
double radius)
Generates a diamond using the given parameters.
|
static RectangleSprite |
line(double cx,
double cy,
double radius)
Generates a line using the given parameters.
|
static PathSprite |
plus(double cx,
double cy,
double radius)
Generates a plus using the given parameters.
|
static RectangleSprite |
square(double cx,
double cy,
double radius)
Generates a square using the given parameters.
|
static PathSprite |
triangle(double cx,
double cy,
double radius)
Generates a triangle using the given parameters.
|
public static PathSprite arrow(double cx, double cy, double radius)
cx
- the center x-coordinate of the primitivecy
- the center x-coordinate of the primitiveradius
- the size of the primitivepublic static CircleSprite circle(double cx, double cy, double radius)
cx
- the center x-coordinate of the primitivecy
- the center x-coordinate of the primitiveradius
- the size of the primitivepublic static PathSprite cross(double cx, double cy, double radius)
cx
- the center x-coordinate of the primitivecy
- the center x-coordinate of the primitiveradius
- the size of the primitivepublic static PathSprite diamond(double cx, double cy, double radius)
cx
- the center x-coordinate of the primitivecy
- the center x-coordinate of the primitiveradius
- the size of the primitivepublic static RectangleSprite line(double cx, double cy, double radius)
cx
- the center x-coordinate of the primitivecy
- the center x-coordinate of the primitiveradius
- the size of the primitivepublic static PathSprite plus(double cx, double cy, double radius)
cx
- the center x-coordinate of the primitivecy
- the center x-coordinate of the primitiveradius
- the size of the primitivepublic static RectangleSprite square(double cx, double cy, double radius)
cx
- the center x-coordinate of the primitivecy
- the center x-coordinate of the primitiveradius
- the size of the primitivepublic static PathSprite triangle(double cx, double cy, double radius)
cx
- the center x-coordinate of the primitivecy
- the center x-coordinate of the primitiveradius
- the size of the primitiveCopyright © 2018. All rights reserved.