Class LineXYShape
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.XYShape
uk.ac.starlink.ttools.plot2.layer.LineXYShape
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LineXYShapeInstance of this class.static final LineXYShapeInstance of this class that omits the final pixel in each line.static BasicStrokeStroke effectively used by this shape. -
Method Summary
Modifier and TypeMethodDescriptionprotected GlyphcreateGlyph(short x, short y) Constructs a new glyph with given coordinates.
-
Field Details
-
INSTANCE
Instance of this class. -
INSTANCE_SKIP1
Instance of this class that omits the final pixel in each line. -
STROKE
Stroke effectively used by this shape.
-
-
Method Details
-
createGlyph
Description copied from class:XYShapeConstructs a new glyph with given coordinates.- Specified by:
createGlyphin classXYShape- Parameters:
x- X valuey- Y value- Returns:
- new glyph
-