- java.lang.Object
-
- com.github.weisj.jsvg.geometry.SVGRoundRectangle
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull LengthValue
h
private java.awt.geom.RoundRectangle2D.Float
rect
private @NotNull LengthValue
rx
private @NotNull LengthValue
ry
private @NotNull LengthValue
w
private @NotNull LengthValue
x
private @NotNull LengthValue
y
-
Constructor Summary
Constructors Constructor Description SVGRoundRectangle(@NotNull LengthValue x, @NotNull LengthValue y, @NotNull LengthValue w, @NotNull LengthValue h, @NotNull LengthValue rx, @NotNull LengthValue ry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.awt.geom.Rectangle2D
bounds(@NotNull RenderContext context, boolean validate)
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
-
rect
@NotNull private final java.awt.geom.RoundRectangle2D.Float rect
-
x
@NotNull private final @NotNull LengthValue x
-
y
@NotNull private final @NotNull LengthValue y
-
w
@NotNull private final @NotNull LengthValue w
-
h
@NotNull private final @NotNull LengthValue h
-
rx
@NotNull private final @NotNull LengthValue rx
-
ry
@NotNull private final @NotNull LengthValue ry
-
-
Constructor Detail
-
SVGRoundRectangle
public SVGRoundRectangle(@NotNull @NotNull LengthValue x, @NotNull @NotNull LengthValue y, @NotNull @NotNull LengthValue w, @NotNull @NotNull LengthValue h, @NotNull @NotNull LengthValue rx, @NotNull @NotNull LengthValue 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 RenderContext context)
- Specified by:
pathLength
in interfaceSVGShape
-
isClosed
public boolean isClosed(@NotNull @NotNull RenderContext context)
-
-