ItEr30S11CUVistaRecursosTempoEmpresaItEr29S13: Added support to change the chart legend.

This commit is contained in:
Manuel Rego Casasnovas 2009-10-15 17:36:24 +02:00 committed by Javier Moran Rua
parent 6eb1630cc0
commit 8a21002441
3 changed files with 16 additions and 2 deletions

View file

@ -167,6 +167,11 @@ public class Planner extends HtmlMacroComponent {
setAt("insertionPointChart", chartComponent);
}
Component chartLegend = configuration.getChartLegend();
if (chartLegend != null) {
setAt("insertionPointChartLegend", chartLegend);
}
this.addingDependenciesEnabled = configuration
.isAddingDependenciesEnabled();
}

View file

@ -81,6 +81,8 @@ public class PlannerConfiguration<T> {
private Component chartComponent;
private Component chartLegend;
private boolean addingDependenciesEnabled = true;
public PlannerConfiguration(IAdapterToTaskFundamentalProperties<T> adapter,
@ -147,6 +149,14 @@ public class PlannerConfiguration<T> {
return chartComponent;
}
public void setChartLegend(Component chartLegend) {
this.chartLegend = chartLegend;
}
public Component getChartLegend() {
return chartLegend;
}
public void setAddingDependenciesEnabled(boolean addingDependenciesEnabled) {
this.addingDependenciesEnabled = addingDependenciesEnabled;
}

View file

@ -68,8 +68,7 @@ planner = self;
<west width="284px" flex="true" collapsible="true"
splittable="true">
<vbox pack="center" align="center">
<label value="ResourcesLoadGraph details"
width="150px"/>
<div id="insertionPointChartLegend" />
</vbox>
</west>
<center autoscroll="true" sclass="plannergraph">