Class BasicXYShape
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.XYShape
uk.ac.starlink.ttools.plot2.layer.BasicXYShape
XYShape implementation that can produce shapes of variable line thickness.
- Since:
- 16 Jan 2015
- Author:
- Mark Taylor
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBasicXYShape
(String name, int maxCacheRadius, Glyph pointGlyph) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicXYShape[]
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 Details
-
BasicXYShape
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 Details
-
toThicker
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
Returns an array of XY shapes suitable for plotting markers with variable X and Y extents.- Returns:
- XY shapes
-