Class StrokeKit
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.StrokeKit
-
public class StrokeKit extends java.lang.Object
Supplier for drawing strokes. A consistent set of strokes with different detail characteristics can be supplied.- Since:
- 30 Sep 2021
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Stroke
getButt()
Returns a stroke with butted ends.java.awt.Stroke
getRound()
Returns a stroke with rounded ends.
-
-
-
Field Detail
-
DEFAULT
public static final StrokeKit DEFAULT
Single pixel thickness instance.
-
-
Constructor Detail
-
StrokeKit
public StrokeKit(float strokeSize)
Constructs a standard StrokeKit for a given line thickness.- Parameters:
strokeSize
- line thickness in pixels
-
StrokeKit
public StrokeKit(java.awt.Stroke round, java.awt.Stroke butt)
Constructs a StrokeKit given strokes.- Parameters:
round
- stroke to use for rounded endsbutt
- stroke to use for square ends
-
-