public static class MonthlyReport.FDNode extends java.lang.Object
Adding custom node to monthly report under storage section
MonthlyReport report = SharedData.getData().getCurrentReport();
MonthlyReport.FDNode storageNode = report.getNode(MonthlyReport.STORAGE);
//Check if the storageNode has been initialized in order to not override the node.
if(storageNode.name == null) {
storageNode.name = "Storage";
storageNode.custom = MonthlyReport.STORAGE;
storageNode.tooltipCreator = report.getMonthlyReportTooltip();
}
//Add in the custom node by getting the storageNode and create a new node from it
MonthlyReport.FDNode anotherNode = report.getNode(storageNode, "A unique ID");
anotherNode.name = "Another node inside storage node";
| Modifier and Type | Field and Description |
|---|---|
protected java.util.LinkedHashMap<java.lang.String,MonthlyReport.FDNode> |
children |
java.lang.Object |
custom |
java.lang.Object |
custom2 |
java.lang.String |
icon |
float |
income |
SectorEntityToken |
mapEntity |
java.lang.String |
name |
MonthlyReport.FDNode |
parent |
TooltipMakerAPI.TooltipCreator |
tooltipCreator |
java.lang.Object |
tooltipParam |
float |
totalIncome |
float |
totalUpkeep |
float |
upkeep |
| Constructor and Description |
|---|
FDNode() |
| Modifier and Type | Method and Description |
|---|---|
java.util.LinkedHashMap<java.lang.String,MonthlyReport.FDNode> |
getChildren() |
int |
getDepth() |
protected java.util.LinkedHashMap<java.lang.String,MonthlyReport.FDNode> children
public MonthlyReport.FDNode parent
public java.lang.String name
public java.lang.String icon
public float income
public float upkeep
public float totalIncome
public float totalUpkeep
public java.lang.Object custom
public java.lang.Object custom2
public SectorEntityToken mapEntity
public TooltipMakerAPI.TooltipCreator tooltipCreator
public java.lang.Object tooltipParam
public FDNode()
public java.util.LinkedHashMap<java.lang.String,MonthlyReport.FDNode> getChildren()
public int getDepth()