public class ChartFacade
extends java.lang.Object
implements ilog.views.event.ManagerContentChangedListener, java.awt.event.MouseListener
Modifier and Type | Field and Description |
---|---|
static int |
HIER_ROW_HEIGHT |
static int |
RES_ROW_HEIGHT |
static int |
RESOURCE_WIDTH |
static int |
UNASSIGNED_ROW_HEIGHT |
Constructor and Description |
---|
ChartFacade(FWMActionsFacade actionsFacade) |
Modifier and Type | Method and Description |
---|---|
static void |
closeGanttSheetToolTip()
closes the tooltip on the ganttsheet
|
static void |
closeResourceTableToolTip()
closes the tooltip on the resource table
|
void |
contentsChanged(ilog.views.event.ManagerContentChangedEvent event) |
static ilog.views.gantt.IlvScheduleChart |
getChart() |
static ilog.views.gantt.IlvDuration |
getDefaultViewSize() |
static FWMToolbar |
getToolbar() |
static void |
highlightActivity(java.lang.String activityid)
Highlight and select a given activity by it's ID.
|
static boolean |
isModelReadOnly() |
static boolean |
isTiledActivities()
returns whether or not to tile craft and crew type activites
|
void |
mouseClicked(java.awt.event.MouseEvent e)
listener for mouse click on the table
|
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
static void |
refreshActivityLayoutMode()
refresh the resources in the layout mode to be either tiled or un-tiled based on the tiledActivities variable.
|
void |
replaceModel(ilog.views.gantt.IlvGanttModel model,
boolean updateShiftInfo)
function called when we have a full model refresh
|
void |
setColumnWidths() |
void |
setResourceWidth() |
static void |
setStartTime() |
void |
setStartTimeSafely()
setting the starttime while the ganttsheet has no size causes problems, so wait for it to be resized.
|
static void |
setTiledActivities(boolean tiledActivities)
set whether or not to tile craft and crew type activites
|
static void |
setTreeExpanded(boolean expand,
boolean refreshMap)
sets the resource chart tree to be fully expanded if true, collapsed if false
|
void |
updateResources(ilog.views.gantt.IlvGanttModel newModel)
functions updates the current model with the contents of the newModel.
|
static void |
updateRowsSelection(boolean selected,
boolean refreshMap)
Updates all of the resource rows to be either selected or deselected on the map
|
public static final int RES_ROW_HEIGHT
public static final int HIER_ROW_HEIGHT
public static final int UNASSIGNED_ROW_HEIGHT
public static final int RESOURCE_WIDTH
public ChartFacade(FWMActionsFacade actionsFacade)
public static ilog.views.gantt.IlvScheduleChart getChart()
public static FWMToolbar getToolbar()
public void replaceModel(ilog.views.gantt.IlvGanttModel model, boolean updateShiftInfo)
model
- updateShiftInfo
- public void setStartTimeSafely()
public static void setStartTime()
public void setColumnWidths()
public static ilog.views.gantt.IlvDuration getDefaultViewSize()
public void contentsChanged(ilog.views.event.ManagerContentChangedEvent event)
contentsChanged
in interface ilog.views.event.ManagerContentChangedListener
public void setResourceWidth()
public void updateResources(ilog.views.gantt.IlvGanttModel newModel)
newModel
- public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public static void closeGanttSheetToolTip()
public static void closeResourceTableToolTip()
public static void setTreeExpanded(boolean expand, boolean refreshMap)
expand
- true if expand the tree, false if collapserefreshMap
- true if refresh the map after updating tree statepublic static void updateRowsSelection(boolean selected, boolean refreshMap)
selected
- refreshMap
- public static void highlightActivity(java.lang.String activityid)
activityid
- public static boolean isTiledActivities()
public static void setTiledActivities(boolean tiledActivities)
tiledActivities
- public static void refreshActivityLayoutMode()
public static boolean isModelReadOnly()