Class FatLineXYShape
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.XYShape
-
- uk.ac.starlink.ttools.plot2.layer.FatLineXYShape
-
public class FatLineXYShape extends XYShape
XYShape for drawing thick lines that start at the origin and terminate at the given X,Y displacement. Acquire a lazily constructed instance from thegetInstance(int)
method.- Since:
- 4 Oct 2021
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FatLineXYShape(int nthick)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.
-
-
-
Method Detail
-
createGlyph
protected Glyph createGlyph(short sx, short sy)
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
public static XYShape getInstance(int nthick)
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
-
-