Class StrokeXYShape
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.XYShape
-
- uk.ac.starlink.ttools.plot2.layer.StrokeXYShape
-
public class StrokeXYShape extends XYShape
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
-
-
Constructor Summary
Constructors Constructor Description StrokeXYShape(java.awt.Stroke stroke)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Glyph
createGlyph(short sx, short sy)
Constructs a new glyph with given coordinates.java.awt.Stroke
getStroke()
Returns the stroke used by this shape.
-
-
-
Method Detail
-
getStroke
public java.awt.Stroke getStroke()
Returns the stroke used by this shape.- Returns:
- drawing stroke
-
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
-
-