| java.lang.Object org.cougaar.mlm.debug.ui.UIAssets
UIAssets | public UIAssets(UIPlugin uiPlugin, String planName, MessageAddress clusterId, Object listener) throws UINoPlanException(Code) | | Display the assets assigned to the cluster in a bar graph.
The x-axis is type of asset (i.e. truck, tank, HET) and
the y-axis is the quantity of that asset.
Parameters: uiPlugin - this user interface plugin Parameters: planName - the name of the plan for which to display assets Parameters: clusterId - the cluster for which to display assets exception: UINoPlanException - thrown when the plan does not exist |
getContiguous | public boolean getContiguous()(Code) | | Should the bars in the bar graph be contiguous.
false |
getNumberOfXIntervals | public int getNumberOfXIntervals()(Code) | | Number of different assets.
number of different assets |
getNumberOfYIntervals | public int getNumberOfYIntervals()(Code) | | Maximum quantity of any one asset.
maximum quantity of any one asset |
getValues | public int[][] getValues()(Code) | | Quantity of each asset.
for each asset (with the same name), the quantity of that asset |
getXLabels | public String[] getXLabels()(Code) | | Asset names.
names of the assets |
getXLegend | public String getXLegend()(Code) | | "Assets"
"Assets" |
getYLabels | public String[] getYLabels()(Code) | | Quantity of assets.
numeric labels for quantities of assets |
getYLegend | public String getYLegend()(Code) | | "Quantity"
"Quantity" |
registerListener | public void registerListener(ActionListener listener)(Code) | | Listen for changes in type or number of assets assigned to the
cluster.
Parameters: listener - object to notify when assets change |
startSubscription | public void startSubscription()(Code) | | Can't start subscription in constructor, because you could
get a subscriptionChanged before the UIBarGraphDisplay is ready.
|
update | public void update()(Code) | | Called to force an update of the asset information.
|
|
|