Class StrokeXYShape
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.XYShape
uk.ac.starlink.ttools.plot2.layer.StrokeXYShape
XYShape that draws a line using a Stroke object.
This is less efficient than LineXYShape, but it can draw lines with
more than 1-pixel thickness.
- Since:
- 23 Jul 2018
- Author:
- Mark Taylor
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Glyph
createGlyph
(short sx, short sy) Constructs a new glyph with given coordinates.Returns the stroke used by this shape.
-
Constructor Details
-
StrokeXYShape
Constructor.- Parameters:
stroke
- drawing stroke
-
-
Method Details
-
getStroke
Returns the stroke used by this shape.- Returns:
- drawing stroke
-
createGlyph
Description copied from class:XYShape
Constructs a new glyph with given coordinates.- Specified by:
createGlyph
in classXYShape
- Parameters:
sx
- X valuesy
- Y value- Returns:
- new glyph
-