Package snap.geom

Class Arc

All Implemented Interfaces:
Cloneable

public class Arc extends RectBase
A Shape subclass to represent a segment of an ellipse with start and sweep angle.
  • Constructor Details

    • Arc

      public Arc(double aX, double aY, double aW, double aH, double aStart, double aSweep)
      Creates a new Arc.
    • Arc

      public Arc(double aX, double aY, double aW, double aH, double aStart, double aSweep, double aHoleRatio)
      Creates a new Arc.
  • Method Details

    • getStartAngle

      public double getStartAngle()
      Returns the start angle for the oval.
    • setStartAngle

      public void setStartAngle(double aValue)
      Sets the start angle for the oval.
    • getSweepAngle

      public double getSweepAngle()
      Returns the sweep angle for the oval.
    • setSweepAngle

      public void setSweepAngle(double aValue)
      Sets the sweep angle for the oval.
    • getHoleRatio

      public double getHoleRatio()
      Returns the ratio that describes the hole (0 = no hole, 1 = no wedge).
    • setHoleRatio

      public void setHoleRatio(double aValue)
      Sets the ratio that describes the hole (0 = no hole, 1 = no wedge).
    • getClosure

      public Arc.Closure getClosure()
      Returns how an open arc is handles the gap.
    • setClosure

      public void setClosure(Arc.Closure aClosure)
      Sets how an open arc is handles the gap.
    • getPathIter

      public PathIter getPathIter(Transform aTrans)
      Returns the path iter.
      Specified by:
      getPathIter in class Shape
    • copyFor

      public Shape copyFor(Rect aRect)
      Returns the shape in rect.
      Overrides:
      copyFor in class RectBase
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class RectBase