org.apache.hadoop.chukwa.analysis.salsa.visualization
Class Swimlanes.SwimlanesStatePalette

java.lang.Object
  extended by org.apache.hadoop.chukwa.analysis.salsa.visualization.Swimlanes.SwimlanesStatePalette
Enclosing class:
Swimlanes

public static class Swimlanes.SwimlanesStatePalette
extends Object

Provide constant mapping between state names and colours so that even if particular states are missing, the colours are fixed for each state


Field Summary
protected  int[] palette
           
protected  String[] states
           
 
Constructor Summary
Swimlanes.SwimlanesStatePalette()
           
 
Method Summary
 int getColour(String state_name)
           
 int getNumStates()
           
 String[] getStates()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

states

protected final String[] states

palette

protected int[] palette
Constructor Detail

Swimlanes.SwimlanesStatePalette

public Swimlanes.SwimlanesStatePalette()
Method Detail

getColour

public int getColour(String state_name)

getNumStates

public int getNumStates()

getStates

public String[] getStates()


Copyright © 2011 Apache Software Foundation. All Rights Reserved.