edu.washington.NVisF.plotter
Class SSColoringStrategy
java.lang.Object
|
+--edu.washington.NVisF.plotter.ColoringStrategy
|
+--edu.washington.NVisF.plotter.SSColoringStrategy
- public class SSColoringStrategy
- extends ColoringStrategy
This class implements a particular coloring strategy used by the
SS (solar system) analysis routines, in which the data contain an
integer field called "color" that is mapped to a set of colors:
0 = black, 1 = white, 2 = red, 3 = green, 4 = blue, 5 = yellow,
6 = magenta, 7 = cyan, 8 = gold, 9 = pink, 10 = orange, 11 = khaki,
12 = violet, 13 = maroon, 14 = aqua, 15 = navy,
16-255 = increasing grays from black to white (16 = black, 255 = white)
this class maps integers outside the range [0-255] to white.
This is an excellent example of how a highly particular algorithm can
easily be included in the general NVisF framework.
Method Summary |
Color3f[] |
getColors(PlotCommand command)
Returns an array containing one color for each data object according
to the particular algorithm of this ColoringStrategy. |
static java.util.Map |
getSSColorDef()
Returns a Map between Integer keys and defined colors. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSColoringStrategy
public SSColoringStrategy()
getSSColorDef
public static java.util.Map getSSColorDef()
- Returns a Map between
Integer
keys and defined colors.
getColors
public Color3f[] getColors(PlotCommand command)
- Description copied from class:
ColoringStrategy
- Returns an array containing one color for each data object according
to the particular algorithm of this ColoringStrategy.
- Overrides:
getColors
in class ColoringStrategy
- Following copied from class:
edu.washington.NVisF.plotter.ColoringStrategy
- Parameters:
command
- the PlotCommand
providing data