Class SVGCircle
java.lang.Object
com.github.weisj.jsvg.geometry.SVGCircle
- All Implemented Interfaces:
SVGShape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Ellipse2D.Floatprivate final @NotNull LengthValueprivate final @NotNull LengthValueprivate final @NotNull LengthValue -
Constructor Summary
ConstructorsConstructorDescriptionSVGCircle(@NotNull LengthValue cx, @NotNull LengthValue cy, @NotNull LengthValue r) -
Method Summary
Modifier and TypeMethodDescription@NotNull Rectangle2Dbounds(@NotNull RenderContext context, boolean validate) (package private) static doublecircumference(double radius) booleanisClosed(@NotNull RenderContext context) doublepathLength(@NotNull RenderContext context) @NotNull Shapeshape(@NotNull RenderContext context, boolean validate) private voidvalidateShape(@NotNull MeasureContext measureContext) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SVGShape
canBeFilled, shape, usesOptimizedBoundsCalculation
-
Field Details
-
circle
-
cx
-
cy
-
r
-
-
Constructor Details
-
SVGCircle
public SVGCircle(@NotNull @NotNull LengthValue cx, @NotNull @NotNull LengthValue cy, @NotNull @NotNull LengthValue r)
-
-
Method Details
-
validateShape
-
shape
-
bounds
@NotNull public @NotNull Rectangle2D bounds(@NotNull @NotNull RenderContext context, boolean validate) -
pathLength
- Specified by:
pathLengthin interfaceSVGShape
-
isClosed
-
circumference
static double circumference(double radius)
-