Interface GanttDataReader<R,B>
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
GanttTestDataReader
Interface to define what must be able to do
a GanttDataReader.
The main assumption is that the starting point
is an
HashGetter with the data of
a single Gantt block. That data must include
also information about the row that own the
block, and also the information about the parent know.
In other terms, the HashGetter is the
join of the row and block data.-
Method Summary
Modifier and TypeMethodDescriptionbuildBlockData(HashGetter rawData) buildRowData(HashGetter rawData) getBlockBeginDate(B data) getBlockColor(B data) getBlockDescritpin(B data) getBlockEndDate(B data) getBlockId(B data) getBlockPriority(B data) getBlockTooltipItems(B data) getParentRowId(R data) getRowDescrition(R data) getRowTooltipItems(R data)
-
Method Details
-
getRowId
- Parameters:
data- the T with the data of row and block- Returns:
- the id of the row that holds the block
-
getRowDescrition
- Parameters:
data- the T with the data of row and block- Returns:
- the description of the row that holds the block
-
getParentRowId
- Parameters:
data- the T with the data of row and block- Returns:
- the id of the parent row (if exists), null otherwise.
-
getRowTooltipItems
- Parameters:
data- the T with the data of row and block- Returns:
- a
Maplabel - value with the basic tool-tip for the row. The label will be managed via Teacher.adjust so, add the '=' to say if the label must be translation in the user language.
-
getBlockId
- Parameters:
data- the T with the data of row and block- Returns:
- the id the Gantt block.
-
getBlockBeginDate
- Parameters:
data- the T with the data of row and block- Returns:
- the begin date the Gantt block.
-
getBlockEndDate
- Parameters:
data- the T with the data of row and block- Returns:
- the end date the Gantt block.
-
getBlockDescritpin
- Parameters:
data- the T with the data of row and block- Returns:
- the description the Gantt block.
-
getBlockColor
- Parameters:
data- the T with the data of row and block- Returns:
- the color to set to the Gantt block.
-
getBlockPriority
- Parameters:
data- the T with the data of row and block- Returns:
- the priority value of the block, used to determine a render order.
-
getBlockTooltipItems
- Parameters:
data- the T with the data of row and block- Returns:
- a
Maplabel - value with the basic tool-tip for the row. The label will be managed via Teacher.adjust so, add the '=' to say if the label must be translation in the user language.
-
buildRowData
- Parameters:
rawData- the raw data record- Returns:
- an instance of R to pass to relative GanttRow
-
buildBlockData
- Parameters:
rawData- the raw data record- Returns:
- an instance of B to pass to the relative GanttBlock
-