Package com.github.weisj.jsvg.geometry
Class SVGLine
java.lang.Object
com.github.weisj.jsvg.geometry.SVGLine
- All Implemented Interfaces:
MeasurableLength
,MeasurableShape
,SVGShape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Rectangle2D
bounds
(@NotNull RenderContext context, boolean validate) boolean
double
pathLength
(@NotNull MeasureContext measureContext) @NotNull Shape
shape
(@NotNull RenderContext context, boolean validate) private void
validateShape
(@NotNull MeasureContext measureContext) 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
shape, usesOptimizedBoundsCalculation
-
Field Details
-
line
-
x1
-
y1
-
x2
-
y2
-
-
Constructor Details
-
SVGLine
-
-
Method Details
-
canBeFilled
public boolean canBeFilled()- Specified by:
canBeFilled
in interfaceSVGShape
-
validateShape
-
shape
-
bounds
@NotNull public @NotNull Rectangle2D bounds(@NotNull @NotNull RenderContext context, boolean validate) -
pathLength
- Specified by:
pathLength
in interfaceMeasurableLength
-