| Constructor and Description |
|---|
SimpleMapData(double dataValue)
Create a new SimpleMapData with the given value and an empty name.
|
SimpleMapData(String dataName,
double dataValue)
Create a new SimpleMapData with the given name and value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChildrenData(MapData data)
Add a child data.
|
List<MapData> |
getChildrenData()
Get the children aggregated data if any.
|
String |
getName()
Get the data name.
|
double |
getValue()
Get the data value.
|
boolean |
hasChildrenData()
If the data is an aggregation of children data.
|
void |
removeChildrenData(MapData data)
Remove a child data.
|
void |
setName(String newName)
Set the data name.
|
void |
setValue(double newValue)
Set the data value.
|
public SimpleMapData(String dataName, double dataValue)
dataName - the data namedataValue - the data valuepublic SimpleMapData(double dataValue)
dataValue - the data valuepublic double getValue()
MapDatapublic void setValue(double newValue)
MapDatapublic void setName(String newName)
MapDatapublic List<MapData> getChildrenData()
MapDatagetChildrenData in interface MapDatapublic boolean hasChildrenData()
MapDatahasChildrenData in interface MapDatapublic void addChildrenData(MapData data)
MapDataaddChildrenData in interface MapDatadata - the data to be added as a child data to aggregatepublic void removeChildrenData(MapData data)
MapDataremoveChildrenData in interface MapDatadata - the data to be removedCopyright © 2017 H-K. All rights reserved.