Class BasicXYShape
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.XYShape
-
- uk.ac.starlink.ttools.plot2.layer.BasicXYShape
-
-
Constructor Summary
Constructors Constructor Description BasicXYShape(java.lang.String name, int maxCacheRadius, Glyph pointGlyph)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static BasicXYShape[]
getXYShapes()
Returns an array of XY shapes suitable for plotting markers with variable X and Y extents.abstract XYShape
toThicker(int nthick)
Returns an XYShape corresponding to this one, but drawn with thicker lines.-
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.XYShape
createGlyph, createIcon, getGlyph, getName, isCached, toString
-
-
-
-
Constructor Detail
-
BasicXYShape
public BasicXYShape(java.lang.String name, int maxCacheRadius, Glyph pointGlyph)
Constructor.- Parameters:
name
- shape namemaxCacheRadius
- maximum size for which shapes are cachedpointGlyph
- glyph to use for shape (0,0), or null for no special casing
-
-
Method Detail
-
toThicker
@Equality public abstract XYShape toThicker(int nthick)
Returns an XYShape corresponding to this one, but drawn with thicker lines. In cases where no line drawing is done, for instance filled shapes, this object should be returned, since the drawing will not change with line thickness.- Parameters:
nthick
- line thickness index >=0- Returns:
- drawing shape
-
getXYShapes
public static BasicXYShape[] getXYShapes()
Returns an array of XY shapes suitable for plotting markers with variable X and Y extents.- Returns:
- XY shapes
-
-