Class LineXYShape
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.XYShape
-
- uk.ac.starlink.ttools.plot2.layer.LineXYShape
-
public class LineXYShape extends XYShape
XYShape for drawing lines that start at the origin and terminate at the given X,Y displacement.Singleton class.
- Since:
- 15 Jan 2015
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Glyph
createGlyph(short x, short y)
Constructs a new glyph with given coordinates.static LineXYShape
getInstance()
Returns the sole instance of this class.
-
-
-
Method Detail
-
createGlyph
protected Glyph createGlyph(short x, short y)
Description copied from class:XYShape
Constructs a new glyph with given coordinates.- Specified by:
createGlyph
in classXYShape
- Parameters:
x
- X valuey
- Y value- Returns:
- new glyph
-
getInstance
public static LineXYShape getInstance()
Returns the sole instance of this class.- Returns:
- singleton instance
-
-