Class SVGRectangle
java.lang.Object
com.github.weisj.jsvg.geometry.SVGRectangle
- All Implemented Interfaces:
SVGShape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull LengthValueprivate final Rectangle2D.Floatprivate final @NotNull LengthValueprivate final @NotNull LengthValueprivate final @NotNull LengthValue -
Constructor Summary
ConstructorsConstructorDescriptionSVGRectangle(@NotNull LengthValue x, @NotNull LengthValue y, @NotNull LengthValue w, @NotNull LengthValue h) -
Method Summary
Modifier and TypeMethodDescription@NotNull Rectangle2Dbounds(@NotNull RenderContext context, boolean validate) 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
-
rect
-
x
-
y
-
w
-
h
-
-
Constructor Details
-
SVGRectangle
public SVGRectangle(@NotNull @NotNull LengthValue x, @NotNull @NotNull LengthValue y, @NotNull @NotNull LengthValue w, @NotNull @NotNull LengthValue h)
-
-
Method Details
-
validateShape
-
shape
-
bounds
@NotNull public @NotNull Rectangle2D bounds(@NotNull @NotNull RenderContext context, boolean validate) -
pathLength
- Specified by:
pathLengthin interfaceSVGShape
-
isClosed
-