Package com.github.weisj.jsvg.geometry
Class AWTSVGShape<T extends Shape>
java.lang.Object
com.github.weisj.jsvg.geometry.AWTSVGShape<T>
- All Implemented Interfaces:
MeasurableLength
,MeasurableShape
,SVGShape
- Direct Known Subclasses:
FillRuleAwareAWTSVGShape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Rectangle2D
static final Rectangle2D
private double
protected final T
-
Constructor Summary
ConstructorsModifierConstructorDescriptionAWTSVGShape
(T shape) private
AWTSVGShape
(T shape, double pathLength) -
Method Summary
Modifier and TypeMethodDescription@NotNull Rectangle2D
bounds
(@NotNull RenderContext context, boolean validate) private double
private double
double
pathLength
(@NotNull MeasureContext measureContext) @NotNull Shape
shape
(@NotNull RenderContext context, boolean validate) 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 Details
-
EMPTY_SHAPE
-
shape
-
bounds
-
pathLength
private double pathLength
-
-
Constructor Details
-
AWTSVGShape
-
AWTSVGShape
-
-
Method Details
-
shape
-
bounds
@NotNull public @NotNull Rectangle2D bounds(@NotNull @NotNull RenderContext context, boolean validate) -
pathLength
- Specified by:
pathLength
in interfaceMeasurableLength
-
computePathLength
private double computePathLength() -
computeGenericPathLength
private double computeGenericPathLength()
-