Package armyc2.c5isr.renderer.utilities
Class PathUtilities
java.lang.Object
armyc2.c5isr.renderer.utilities.PathUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
addEllipse
(Path path, float x, float y, float w, float h) static void
addEllipse
(Path path, float x, float y, float w, float h, Path.Direction dir) static void
static void
addRoundedRect
(Path path, float x, float y, float w, float h, float rw, float rh) static void
addRoundedRect
(Path path, float x, float y, float w, float h, float rw, float rh, Path.Direction dir) static void
static void
static RectF
makeRectF
(float x, float y, float w, float h)
-
Constructor Details
-
PathUtilities
public PathUtilities()
-
-
Method Details
-
makeRectF
-
addLine
-
addEllipse
-
addEllipse
-
arc
- Parameters:
path
-x
-y
-r
- radiussAngle
- start angle in degreeseAngle
- how many degrees relative to sAngle
-
arc
public static void arc(Path path, float x, float y, float r, float sAngle, float eAngle, boolean moveTo) - Parameters:
path
-x
-y
-r
- radiussAngle
- start angle in degreeseAngle
- how many degrees relative to sAnglemoveTo
- If true, begin a new contour
-
addArc
- Parameters:
path
-x
-y
-r
- radiussAngle
- start angle in degreeseAngle
- how many degrees relative to sAngle
-
addRoundedRect
public static void addRoundedRect(Path path, float x, float y, float w, float h, float rw, float rh) -
addRoundedRect
public static void addRoundedRect(Path path, float x, float y, float w, float h, float rw, float rh, Path.Direction dir)
-