ItEr30S11CUVistaRecursosTempoEmpresaItEr29S13: Added support to change the chart legend.
This commit is contained in:
parent
6eb1630cc0
commit
8a21002441
3 changed files with 16 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue