Class StrokeKit
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.StrokeKit
Supplier for drawing strokes.
A consistent set of strokes with different detail characteristics
can be supplied.
- Since:
- 30 Sep 2021
- Author:
- Mark Taylor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT
Single pixel thickness instance.
-
-
Constructor Details
-
StrokeKit
public StrokeKit(float strokeSize) Constructs a standard StrokeKit for a given line thickness.- Parameters:
strokeSize
- line thickness in pixels
-
StrokeKit
Constructs a StrokeKit given strokes.- Parameters:
round
- stroke to use for rounded endsbutt
- stroke to use for square ends
-
-
Method Details
-
getRound
Returns a stroke with rounded ends.- Returns:
- stroke
-
getButt
Returns a stroke with butted ends.- Returns:
- stroke
-