Class 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
    • Field Summary

      • Fields inherited from class uk.ac.starlink.ttools.plot2.layer.XYShape

        POINT
    • Constructor Summary

      Constructors 
      Constructor Description
      StrokeXYShape​(java.awt.Stroke stroke)
      Constructor.
    • Constructor Detail

      • StrokeXYShape

        public StrokeXYShape​(java.awt.Stroke stroke)
        Constructor.
        Parameters:
        stroke - drawing stroke
    • 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 class XYShape
        Parameters:
        sx - X value
        sy - Y value
        Returns:
        new glyph