Package uk.ac.starlink.ttools.plot
Class Styles
java.lang.Object
uk.ac.starlink.ttools.plot.Styles
Utility class relating to the
StyleSet
interface.- Since:
- 4 Nov 2005
- Author:
- Mark Taylor
-
Field Details
-
DASHES
public static final float[][] DASHES -
COLORS
-
PLAIN_COLOR
Colour to use in monochrome colour scheme (black). -
PLAIN_STROKE
-
-
Constructor Details
-
Styles
public Styles()
-
-
Method Details
-
getColor
Returns a colour labelled by a given index. The same index always maps to the same colour.- Parameters:
index
- code- Returns:
- colour correspoding to index
-
getDash
public static float[] getDash(int index) Returns a dash pattern labelled by a given index. The same index always maps to the same pattern.- Parameters:
index
- code- Returns:
- stroke corresponding to index
-