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

public class AWTSVGShape<T extends Shape> extends Object implements MeasurableShape
  • Field Details

    • EMPTY_SHAPE

      public static final Rectangle2D EMPTY_SHAPE
    • shape

      @NotNull protected final T extends Shape shape
    • bounds

      private Rectangle2D bounds
    • pathLength

      private double pathLength
  • Constructor Details

    • AWTSVGShape

      public AWTSVGShape(@NotNull T shape)
    • AWTSVGShape

      private AWTSVGShape(@NotNull T shape, double pathLength)
  • Method Details

    • shape

      @NotNull public @NotNull Shape shape(@NotNull @NotNull RenderContext context, boolean validate)
      Specified by:
      shape in interface SVGShape
    • bounds

      @NotNull public @NotNull Rectangle2D bounds(@NotNull @NotNull RenderContext context, boolean validate)
      Specified by:
      bounds in interface SVGShape
    • pathLength

      public double pathLength(@NotNull @NotNull MeasureContext measureContext)
      Specified by:
      pathLength in interface MeasurableLength
    • computePathLength

      private double computePathLength()
    • computeGenericPathLength

      private double computeGenericPathLength()