Class AWTSVGShape<T extends Shape>
java.lang.Object
com.github.weisj.jsvg.geometry.AWTSVGShape<T>
- All Implemented Interfaces:
SVGShape
- Direct Known Subclasses:
FillRuleAwareAWTSVGShape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Rectangle2Dstatic final Rectangle2Dprivate doubleprivate T -
Constructor Summary
ConstructorsModifierConstructorDescriptionAWTSVGShape(@NotNull Value<@NotNull T> shapeValue) privateAWTSVGShape(@NotNull Value<@NotNull T> shapeValue, double pathLength) AWTSVGShape(T shape) -
Method Summary
Modifier and TypeMethodDescription@NotNull Rectangle2Dbounds(@NotNull RenderContext context, boolean validate) private doublecomputePathLength(@NotNull RenderContext context) booleanisClosed(@NotNull RenderContext context) doublepathLength(@NotNull RenderContext context) shape(@NotNull RenderContext context, boolean validate) 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
-
EMPTY_SHAPE
-
shapeValue
-
boundsCache
-
shapeCache
-
pathLength
private double pathLength
-
-
Constructor Details
-
AWTSVGShape
-
AWTSVGShape
-
AWTSVGShape
-
-
Method Details
-
shape
-
bounds
@NotNull public @NotNull Rectangle2D bounds(@NotNull @NotNull RenderContext context, boolean validate) -
pathLength
- Specified by:
pathLengthin interfaceSVGShape
-
computePathLength
-
isClosed
-