Package com.github.weisj.jsvg.geometry
Class SVGRoundRectangle
- java.lang.Object
-
- com.github.weisj.jsvg.geometry.SVGRoundRectangle
-
- All Implemented Interfaces:
MeasurableLength
,MeasurableShape
,SVGShape
public final class SVGRoundRectangle extends java.lang.Object implements MeasurableShape
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.awt.geom.Rectangle2D
bounds(@NotNull RenderContext context, boolean validate)
double
pathLength(@NotNull MeasureContext measureContext)
@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
-
rect
@NotNull private final java.awt.geom.RoundRectangle2D.Float rect
-
x
@NotNull private final @NotNull Length x
-
y
@NotNull private final @NotNull Length y
-
w
@NotNull private final @NotNull Length w
-
h
@NotNull private final @NotNull Length h
-
rx
@NotNull private final @NotNull Length rx
-
ry
@NotNull private final @NotNull Length ry
-
-
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 MeasureContext measureContext)
- Specified by:
pathLength
in interfaceMeasurableLength
-
-