com.ericsson.tic.vi
Class CategoryItem

java.lang.Object
  extended by com.ericsson.tic.vi.CategoryItem

public class CategoryItem
extends Object

A CategoryItem holds information about a particular category.

Version:
1.0 (2008-12-04)
Author:
Sami Matilainen

Field Summary
 float[] color
          The color associated with this category.
 int id
          The id of this category item.
 String name
          The name of this category item.
 String parseName
          The parse string used for identyfing it in the messages.
 
Constructor Summary
CategoryItem(int id, String name, String parseName)
          Creates a Category.
 
Method Summary
 void defaultCategoryColor()
          Set the color of this category.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public int id
The id of this category item.


name

public String name
The name of this category item.


parseName

public String parseName
The parse string used for identyfing it in the messages.


color

public float[] color
The color associated with this category.

Constructor Detail

CategoryItem

public CategoryItem(int id,
                    String name,
                    String parseName)
Creates a Category.

Parameters:
id - The id of this Category
name - The name of this category.
parseName - The parse string used for identyfing it in the messages.
Method Detail

defaultCategoryColor

public void defaultCategoryColor()
Set the color of this category. The color rescieved depends on the id. If you have more than 10 categories some categories will have the same color.