OFC Charts 3.1


com.oxymel.ofc.charts.data
Class CategoryValue

java.lang.Object
  |
  +--com.oxymel.ofc.charts.data.CategoryValue

public class CategoryValue
extends java.lang.Object

Manage a couple of category-value


Field Summary
static int VALUE_INFORMATION_DISPLAY_NONE
          No information associate to value is display
static int VALUE_INFORMATION_DISPLAY_ON_CENTER
          Information associate to value is display center
static int VALUE_INFORMATION_DISPLAY_ON_TOP
          Information associate to value is display on top
 
Constructor Summary
CategoryValue(java.lang.String categoryId, double value)
          Constructor
CategoryValue(java.lang.String categoryId, double value, java.lang.String info)
          Constructor
CategoryValue(java.lang.String categoryId, double value, java.lang.String info, int infoDisplayPosition)
          Constructor
 
Method Summary
 java.lang.Object clone()
          Get a cloned category value
 java.lang.String getCategoryId()
          Get Category Id
 double getValue()
          Get Value
 java.lang.String getValueAsString(int nbDecimals)
          Get formated value as String with specified precision
 java.lang.String getValueAsStringTwoDecimals()
          Get formated value as String with specified precision
 java.lang.String getValueInformation()
          Get information associated to the value
 int getValueInformationDisplayMode()
          Get display mode of information associated to the value
 void setValue(double value)
          Sets value
 void setValueInformation(java.lang.String info)
          Sets information associated to the value
 void setValueInformationDisplayMode(int mode)
          Sets display mode of information associated to the value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_INFORMATION_DISPLAY_NONE

public static final int VALUE_INFORMATION_DISPLAY_NONE
No information associate to value is display

VALUE_INFORMATION_DISPLAY_ON_TOP

public static final int VALUE_INFORMATION_DISPLAY_ON_TOP
Information associate to value is display on top

VALUE_INFORMATION_DISPLAY_ON_CENTER

public static final int VALUE_INFORMATION_DISPLAY_ON_CENTER
Information associate to value is display center
Constructor Detail

CategoryValue

public CategoryValue(java.lang.String categoryId,
                     double value)
Constructor
Parameters:
categoryId - Category Id
value - Category Value

CategoryValue

public CategoryValue(java.lang.String categoryId,
                     double value,
                     java.lang.String info)
Constructor
Parameters:
categoryId - Category Id
value - Category Value
info - information associate to value

CategoryValue

public CategoryValue(java.lang.String categoryId,
                     double value,
                     java.lang.String info,
                     int infoDisplayPosition)
Constructor
Parameters:
categoryId - Category Id
value - Category Value
info - information associate to value
infoDisplayPosition - Position to display information
Method Detail

clone

public java.lang.Object clone()
Get a cloned category value
Returns:
a cloned category value

getValueAsString

public java.lang.String getValueAsString(int nbDecimals)
Get formated value as String with specified precision
Parameters:
nbDecimals -  
Returns:
value as String

getValueAsStringTwoDecimals

public java.lang.String getValueAsStringTwoDecimals()
Get formated value as String with specified precision
Returns:
value as String

setValueInformation

public void setValueInformation(java.lang.String info)
Sets information associated to the value
Parameters:
info - information associated to the value

setValueInformationDisplayMode

public void setValueInformationDisplayMode(int mode)
Sets display mode of information associated to the value
Parameters:
mode -  

getValueInformationDisplayMode

public int getValueInformationDisplayMode()
Get display mode of information associated to the value
Returns:
display mode of information associated to the value

getValueInformation

public java.lang.String getValueInformation()
Get information associated to the value
Returns:
information associated to the value

getValue

public double getValue()
Get Value
Returns:
Category value

setValue

public void setValue(double value)
Sets value
Parameters:
value -  

getCategoryId

public java.lang.String getCategoryId()
Get Category Id
Returns:
Category Id

OFC Charts 3.1


Copyright © 2005 Oxymel SA All Rights Reserved.