Package armyc2.c5isr.renderer.utilities
Class PathUtilities
java.lang.Object
armyc2.c5isr.renderer.utilities.PathUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidaddEllipse(Path path, float x, float y, float w, float h) static voidaddEllipse(Path path, float x, float y, float w, float h, Path.Direction dir) static voidstatic voidaddRoundedRect(Path path, float x, float y, float w, float h, float rw, float rh) static voidaddRoundedRect(Path path, float x, float y, float w, float h, float rw, float rh, Path.Direction dir) static voidstatic voidstatic RectFmakeRectF(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)
-