public class LabelledIntegerDataPoint extends Object implements DmcMappedAttributeIF, Serializable
This type is convenient for use in pie charts.
| Constructor and Description |
|---|
LabelledIntegerDataPoint() |
LabelledIntegerDataPoint(LabelledIntegerDataPoint original) |
LabelledIntegerDataPoint(String v)
Constructs a new labelled data point.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeIt(DmcInputStreamIF dis) |
boolean |
equals(Object v) |
Object |
getKey()
Returns the key associated with this attribute value.
|
String |
getKeyAsString()
Returns the key value represented as a string.
|
String |
getLabel() |
int |
getValue() |
void |
serializeIt(DmcOutputStreamIF dos) |
void |
set(String val) |
String |
toString() |
boolean |
valuesAreEqual(DmcMappedAttributeIF obj)
This method is used by the Modifier mechanism to determine whether or not a
change has occurred as a result of applying the modifier.
|
public LabelledIntegerDataPoint()
public LabelledIntegerDataPoint(LabelledIntegerDataPoint original)
public LabelledIntegerDataPoint(String v) throws DmcValueException
v - The string representation of the value.DmcValueExceptionpublic void serializeIt(DmcOutputStreamIF dos) throws Exception
Exceptionpublic void deserializeIt(DmcInputStreamIF dis) throws Exception
Exceptionpublic void set(String val) throws DmcValueException
DmcValueExceptionpublic String getLabel()
public int getValue()
public Object getKey()
DmcMappedAttributeIFgetKey in interface DmcMappedAttributeIFpublic String getKeyAsString()
DmcMappedAttributeIFgetKeyAsString in interface DmcMappedAttributeIFpublic boolean valuesAreEqual(DmcMappedAttributeIF obj)
DmcMappedAttributeIFvaluesAreEqual in interface DmcMappedAttributeIFobj - Another mapped attribute.Copyright © 2023. All rights reserved.