uk.ac.starlink.ttools.plot2.layer
Class LineXYShape

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.layer.XYShape
      extended by 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

Field Summary
 
Fields inherited from class uk.ac.starlink.ttools.plot2.layer.XYShape
POINT
 
Method Summary
protected  Glyph createGlyph(short x, short y)
          Constructs a new glyph with given coordinates.
static LineXYShape getInstance()
          Returns the sole instance of this class.
 
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.XYShape
createIcon, getGlyph, getName, isCached, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class XYShape
Parameters:
x - X value
y - Y value
Returns:
new glyph

getInstance

public static LineXYShape getInstance()
Returns the sole instance of this class.

Returns:
singleton instance


Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.