Package uk.ac.starlink.ttools.plot
Class Styles
- java.lang.Object
-
- uk.ac.starlink.ttools.plot.Styles
-
public class Styles extends java.lang.Object
Utility class relating to theStyleSet
interface.- Since:
- 4 Nov 2005
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.Color[]
COLORS
static float[][]
DASHES
static java.awt.Color
PLAIN_COLOR
Colour to use in monochrome colour scheme (black).static java.awt.Stroke
PLAIN_STROKE
-
Constructor Summary
Constructors Constructor Description Styles()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.Color
getColor(int index)
Returns a colour labelled by a given index.static float[]
getDash(int index)
Returns a dash pattern labelled by a given index.
-
-
-
Method Detail
-
getColor
public static java.awt.Color getColor(int index)
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
-
-