Class SVGLine
java.lang.Object
com.github.weisj.jsvg.geometry.SVGLine
- All Implemented Interfaces:
SVGShape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Line2D.Floatprivate final LengthValueprivate final LengthValueprivate final LengthValueprivate final LengthValue -
Constructor Summary
ConstructorsConstructorDescriptionSVGLine(@NotNull LengthValue x1, @NotNull LengthValue y1, @NotNull LengthValue x2, @NotNull LengthValue y2) -
Method Summary
Modifier and TypeMethodDescription@NotNull Rectangle2Dbounds(@NotNull RenderContext context, boolean validate) booleanbooleanisClosed(@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
shape, usesOptimizedBoundsCalculation
-
Field Details
-
line
-
x1
-
y1
-
x2
-
y2
-
-
Constructor Details
-
SVGLine
public SVGLine(@NotNull @NotNull LengthValue x1, @NotNull @NotNull LengthValue y1, @NotNull @NotNull LengthValue x2, @NotNull @NotNull LengthValue y2)
-
-
Method Details
-
canBeFilled
public boolean canBeFilled()- Specified by:
canBeFilledin interfaceSVGShape
-
validateShape
-
shape
-
bounds
@NotNull public @NotNull Rectangle2D bounds(@NotNull @NotNull RenderContext context, boolean validate) -
pathLength
- Specified by:
pathLengthin interfaceSVGShape
-
isClosed
-