Class ForecastActivityDetailGanttTimeLineRenderer
java.lang.Object
overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.GanttBaseRenderer<List<BOForecastActivity>,BOForecastActivityDetailGantt>
overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.timeline.GanttTimeLineRenderer<List<BOForecastActivity>,BOForecastActivityDetailGantt>
overit.geocallapp.wfm.planning.ux.forecastcapacity.forecast.activity.detail.gantt.ForecastActivityDetailGanttTimeLineRenderer
- All Implemented Interfaces:
Serializable,GanttRenderer<List<BOForecastActivity>,BOForecastActivityDetailGantt>
public class ForecastActivityDetailGanttTimeLineRenderer
extends GanttTimeLineRenderer<List<BOForecastActivity>,BOForecastActivityDetailGantt>
The Class that defines the forecast activity detail gantt time line renderer. Used for the tooltip
- Since:
- 15.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.timeline.GanttTimeLineRenderer
GanttTimeLineRenderer.HeaderGroupBrick, GanttTimeLineRenderer.HeaderGroupRow -
Field Summary
Fields inherited from class overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.timeline.GanttTimeLineRenderer
BLOCK_INDICATOR_CLICK_EVENT, BLOCK_INDICATOR_MENU_EVENT, GANTT_BRICK_INDICATOR_CLASS, GANTT_BRICK_INDICATOR_WRAPPER_CLASS, GANTT_ITEM_CLASS, GANTT_ITEM_SELECTED_CLASS, GANTT_OVERLAPP_INDICATOR_CLASS, OVERLAP_ICON_CLICK_EVENT, OVERLAP_ICON_MENU_EVENT, TIMELINE_BODY_CLASS, TIMELINE_WRAPPER_CLASSFields inherited from class overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.GanttBaseRenderer
_cleaner, _eventsToValidate, _gridCols, _gridRows, _helperFactory, _itemClickEvent, _itemContextMenuEvent, _renderedRows, _width, DEFAULT_WIDTH, EVENT_PARAM_ATTRIBUTE, HEADER_CLASS, HEADER_ROW_CLASS, HEADER_ROW_HEIGHT, indicatorIconsMap, LOG, NO_CLICK_EVENT, NULL_EL, PROXY_TOOLTIP_CLASS, PROXY_TOOLTIP_DATA_ATTRIBUTE, ROW_CLASS, TOOLTIP_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddBlockTooltip(GanttView<List<BOForecastActivity>, BOForecastActivityDetailGantt> view, GanttBlock<BOForecastActivityDetailGantt> block, org.apache.ecs.html.Div item) voidaddRow(GanttView<List<BOForecastActivity>, BOForecastActivityDetailGantt> view, GanttRow<List<BOForecastActivity>, BOForecastActivityDetailGantt> row) Fill the verticalLevelsMap becaus I don't retrieve the total vertical levels for each block and I don't want to override the GanttRow and GanttRowClusteredprotected org.apache.ecs.html.DivdrawSimpleBlock(GanttView<List<BOForecastActivity>, BOForecastActivityDetailGantt> view, GanttRow<List<BOForecastActivity>, BOForecastActivityDetailGantt> row, GanttBlock<BOForecastActivityDetailGantt> block, GanttHeaderRendererHelper helper) Draw the block considering the vertical positionprotected StringgetGridStyle(GanttView<List<BOForecastActivity>, BOForecastActivityDetailGantt> view, double rowWidth) intCalculate the height of the row: if total vertical levels is less or equal than the length of block height array, then the height of the row will be 50, otherwise it will be ...Methods inherited from class overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.timeline.GanttTimeLineRenderer
addClusters, buildDisplayScript, buildGrid, buildHeader, buildHeaderBrick, buildHeaderRow, buildHtml, drawActualBlock, drawBlock, drawBlockIndicators, drawDiamondBlock, drawExpectedBlock, getBlockElementId, getEdgesLayerId, getJSVariableName, getPixels, getRowElementId, setWidthMethods inherited from class overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.GanttBaseRenderer
addEvent, addEventValidation, buildContainerStyle, buildGridCol, buildGridRow, cleaner, clearRenderedElements, getHeaderHeight, getHelper, getRowBaseStyle, getWidth, initIndicatorsMap, setItemClickEvent, setItemContextMenuEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.GanttRenderer
getWidth, setItemClickEvent, setItemContextMenuEvent
-
Constructor Details
-
ForecastActivityDetailGanttTimeLineRenderer
public ForecastActivityDetailGanttTimeLineRenderer()
-
-
Method Details
-
addBlockTooltip
protected void addBlockTooltip(GanttView<List<BOForecastActivity>, BOForecastActivityDetailGantt> view, GanttBlock<BOForecastActivityDetailGantt> block, org.apache.ecs.html.Div item) - Overrides:
addBlockTooltipin classGanttTimeLineRenderer<List<BOForecastActivity>,BOForecastActivityDetailGantt>
-
drawSimpleBlock
protected org.apache.ecs.html.Div drawSimpleBlock(GanttView<List<BOForecastActivity>, BOForecastActivityDetailGantt> view, GanttRow<List<BOForecastActivity>, BOForecastActivityDetailGantt> row, GanttBlock<BOForecastActivityDetailGantt> block, GanttHeaderRendererHelper helper) Draw the block considering the vertical position- Overrides:
drawSimpleBlockin classGanttTimeLineRenderer<List<BOForecastActivity>,BOForecastActivityDetailGantt> - Parameters:
view- the gantt viewrow- the row to which the block belongsblock- the block to drawhelper-- Returns:
-
addRow
public void addRow(GanttView<List<BOForecastActivity>, BOForecastActivityDetailGantt> view, GanttRow<List<BOForecastActivity>, BOForecastActivityDetailGantt> row) Fill the verticalLevelsMap becaus I don't retrieve the total vertical levels for each block and I don't want to override the GanttRow and GanttRowClustered- Specified by:
addRowin interfaceGanttRenderer<List<BOForecastActivity>,BOForecastActivityDetailGantt> - Overrides:
addRowin classGanttTimeLineRenderer<List<BOForecastActivity>,BOForecastActivityDetailGantt> - Parameters:
view- the callingGanttViewrow- theGanttRowfor which generate the HTML
-
getGridStyle
protected String getGridStyle(GanttView<List<BOForecastActivity>, BOForecastActivityDetailGantt> view, double rowWidth) - Overrides:
getGridStylein classGanttTimeLineRenderer<List<BOForecastActivity>,BOForecastActivityDetailGantt>
-
getRowHeight
Calculate the height of the row: if total vertical levels is less or equal than the length of block height array, then the height of the row will be 50, otherwise it will be ... (height of the block + separation space) * (total vertical levels - length of the block height array)- Parameters:
row-- Returns:
- the height of the row
-