BrightSide Workbench Full Report + Source Code
org.turro.zkoss.svg.GanttResourceData Class Reference
Inheritance diagram for org.turro.zkoss.svg.GanttResourceData:
Collaboration diagram for org.turro.zkoss.svg.GanttResourceData:

Public Member Functions

int getMaxNameLenght ()
 
double getMaxHoursLenght ()
 
GanttResourceItem getItem (String index)
 

Static Public Attributes

static final int MAX_NAME_LENGTH = 60
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file GanttResourceData.java.

Member Function Documentation

◆ getItem()

GanttResourceItem org.turro.zkoss.svg.GanttResourceData.getItem ( String  index)

Definition at line 49 of file GanttResourceData.java.

49  {
50  for(GanttResourceItem gi : this) {
51  if(gi.getUniqueId().equals(index)) {
52  return gi;
53  }
54  }
55  return null;
56  }
Here is the call graph for this function:

◆ getMaxHoursLenght()

double org.turro.zkoss.svg.GanttResourceData.getMaxHoursLenght ( )

Definition at line 41 of file GanttResourceData.java.

41  {
42  double maxLenght = 0.0;
43  for(GanttResourceItem gi : this) {
44  maxLenght = Math.max(gi.getExpected() + gi.getVariable(), maxLenght);
45  }
46  return maxLenght;
47  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMaxNameLenght()

int org.turro.zkoss.svg.GanttResourceData.getMaxNameLenght ( )

Definition at line 33 of file GanttResourceData.java.

33  {
34  int maxLenght = 0;
35  for(GanttResourceItem gi : this) {
36  maxLenght = Math.max(gi.getName().length(), maxLenght);
37  }
38  return Math.min(maxLenght, MAX_NAME_LENGTH);
39  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ MAX_NAME_LENGTH

final int org.turro.zkoss.svg.GanttResourceData.MAX_NAME_LENGTH = 60
static

Definition at line 30 of file GanttResourceData.java.


The documentation for this class was generated from the following file: