- java.lang.Object
-
- com.github.weisj.jsvg.geometry.SVGCircle
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.geom.Ellipse2D.Float
circle
private @NotNull LengthValue
cx
private @NotNull LengthValue
cy
private @NotNull LengthValue
r
-
Constructor Summary
Constructors Constructor Description SVGCircle(@NotNull LengthValue cx, @NotNull LengthValue cy, @NotNull LengthValue r)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.awt.geom.Rectangle2D
bounds(@NotNull RenderContext context, boolean validate)
(package private) static double
circumference(double radius)
boolean
isClosed(@NotNull RenderContext context)
double
pathLength(@NotNull RenderContext context)
@NotNull java.awt.Shape
shape(@NotNull RenderContext context, boolean validate)
private void
validateShape(@NotNull MeasureContext measureContext)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.weisj.jsvg.geometry.SVGShape
canBeFilled, shape, usesOptimizedBoundsCalculation
-
-
-
-
Field Detail
-
circle
@NotNull private final java.awt.geom.Ellipse2D.Float circle
-
cx
@NotNull private final @NotNull LengthValue cx
-
cy
@NotNull private final @NotNull LengthValue cy
-
r
@NotNull private final @NotNull LengthValue r
-
-
Constructor Detail
-
SVGCircle
public SVGCircle(@NotNull @NotNull LengthValue cx, @NotNull @NotNull LengthValue cy, @NotNull @NotNull LengthValue r)
-
-
Method Detail
-
validateShape
private void validateShape(@NotNull @NotNull MeasureContext measureContext)
-
shape
@NotNull public @NotNull java.awt.Shape shape(@NotNull @NotNull RenderContext context, boolean validate)
-
bounds
@NotNull public @NotNull java.awt.geom.Rectangle2D bounds(@NotNull @NotNull RenderContext context, boolean validate)
-
pathLength
public double pathLength(@NotNull @NotNull RenderContext context)
- Specified by:
pathLength
in interfaceSVGShape
-
isClosed
public boolean isClosed(@NotNull @NotNull RenderContext context)
-
circumference
static double circumference(double radius)
-
-