Class PathUtilities

java.lang.Object
armyc2.c5isr.renderer.utilities.PathUtilities

public class PathUtilities extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addArc(Path path, float x, float y, float r, float sAngle, float eAngle)
     
    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
    addLine(Path path, float x1, float y1, float x2, float y2)
     
    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
    arc(Path path, float x, float y, float r, float sAngle, float eAngle)
     
    static void
    arc(Path path, float x, float y, float r, float sAngle, float eAngle, boolean moveTo)
     
    static RectF
    makeRectF(float x, float y, float w, float h)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • makeRectF

      public static RectF makeRectF(float x, float y, float w, float h)
    • addLine

      public static void addLine(Path path, float x1, float y1, float x2, float y2)
    • addEllipse

      public static void addEllipse(Path path, float x, float y, float w, float h)
    • addEllipse

      public static void addEllipse(Path path, float x, float y, float w, float h, Path.Direction dir)
    • arc

      public static void arc(Path path, float x, float y, float r, float sAngle, float eAngle)
      Parameters:
      path -
      x -
      y -
      r - radius
      sAngle - start angle in degrees
      eAngle - 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 - radius
      sAngle - start angle in degrees
      eAngle - how many degrees relative to sAngle
      moveTo - If true, begin a new contour
    • addArc

      public static void addArc(Path path, float x, float y, float r, float sAngle, float eAngle)
      Parameters:
      path -
      x -
      y -
      r - radius
      sAngle - start angle in degrees
      eAngle - 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)