Class FatLineXYShape
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.XYShape
uk.ac.starlink.ttools.plot2.layer.FatLineXYShape
XYShape for drawing thick lines that start at the origin and terminate
at the given X,Y displacement.
Acquire a lazily constructed instance from the
getInstance(int)
method.- Since:
- 4 Oct 2021
- 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.static XYShape
getInstance
(int nthick) Returns an instance of this class for drawing lines of a given thickness.
-
Constructor Details
-
FatLineXYShape
protected FatLineXYShape(int nthick) Constructor.- Parameters:
nthick
- thickness index >=0
-
-
Method Details
-
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
-
getInstance
Returns an instance of this class for drawing lines of a given thickness. A lazily created cached instance may be returned.- Parameters:
nthick
- line thickness >=0- Returns:
- instance
-