Package uk.ac.starlink.ttools.build
Class ShaderLegend
java.lang.Object
uk.ac.starlink.ttools.build.ShaderLegend
Generates a graphic in SVG format showing labelled colourmaps.
- Since:
- 1 Sep 2022
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Shader[]
Returns all the shaders generally available from Plot2 graphics.static void
Main method invoked to write SVG to standard output.Returns an SVG representation of a legend labelling a given list of shaders.
-
Constructor Details
-
ShaderLegend
public ShaderLegend(int ncol) Constructor.- Parameters:
ncol
- number of columns for output
-
-
Method Details
-
toSvg
Returns an SVG representation of a legend labelling a given list of shaders.- Parameters:
shaders
- shader list- Returns:
- SVG output
-
getAllShaders
Returns all the shaders generally available from Plot2 graphics.- Returns:
- somewhat ordered list of shaders
-
main
Main method invoked to write SVG to standard output. Use -help flag for usage information.- Parameters:
args
- flag array
-