Rogue Wave Views |
Rogue Wave Views Documentation Home |
Gantt chart form class. More...
#include <ilviews/gantt/ganttfrm.h>
Public Member Functions | |
IlvGanttChartForm (IlvDisplay *display, const IlvRect &rect, IlInt start, IlInt end, IlInt shownStart, IlInt shownEnd, IlUShort step, IlvDim rowSize, IlvDim lineInfoSize=0, IlvDim unitSize=20, IlvDim scaleH=32, IlvDim sbSize=16, IlUShort spacing=4, IlUShort vwSpacing=20, IlUShort margin=0, IlvDim separSize=6, IlvPosition hasScale=IlvTop, IlvPosition hasHSB=IlvBottom, IlvPosition hasVSB=IlvRight, int numLayers=5, IlBoolean useAcc=IlTrue, IlvPalette *palette=0) | |
Constructor. More... | |
virtual void | deleteAll (IlBoolean destroy, IlBoolean redraw=IlTrue) |
Removes all the objects stored in the chart. More... | |
IlvGraphic * | getCompositeGrid () const |
Gets the composite grid currently being used. More... | |
IlvGraphic * | getCompositeScale () const |
Gets the composite scale currently being used. More... | |
virtual IlvRect & | getLineArea (IlvRect &area) const |
Returns the bounds of the Gantt lines. More... | |
IlvGanttResourceHeader * | getResourceHeader () const |
Gets the resource header. More... | |
IlvScrollBar * | getResourceScrollBar () const |
Gets the resource table scroll bar. More... | |
IlvView * | getScaleView (IlUShort viewIndex) const |
Gets the scale view. More... | |
IlvSplitterGadget * | horizontalSplitter (IlInt index) const |
Gets the horizontal splitter. More... | |
virtual void | insertLine (IlvGanttLine *, IlUShort row, IlBoolean redraw=IlTrue, int layer=-1) |
Inserts a line before a row. More... | |
virtual void | makeView (IlvPort *dst, const IlvTransformer *t) |
Creates the views. More... | |
virtual void | moveSplitter (IlvDirection dir, IlUInt index, IlvPos pos) |
Moves a splitter to a given position. More... | |
IlvGraphic * | setCompositeGrid (IlvGraphic *compoGrid, IlBoolean redraw=IlTrue) |
Sets the composite grid for the Gantt chart form. More... | |
IlvGraphic * | setCompositeScale (IlvGraphic *compoScale, IlBoolean redraw=IlTrue, IlBoolean reshape=IlFalse) |
Sets the composite scale for the Gantt chart form. More... | |
virtual void | setDoubleBuffering (IlBoolean doubleBuffer) |
Enables or disables double buffering. More... | |
virtual void | updateScale (IlvScale *scale, IlBoolean redraw=IlTrue) const |
Updates the scale. More... | |
IlvSplitterGadget * | verticalSplitter (IlInt index) const |
Gets the vertical splitter. More... | |
Public Member Functions inherited from IlvGanttChart | |
IlvGanttChart (IlvDisplay *display, const IlvRect &rect, IlInt start, IlInt end, IlInt shownStart, IlInt shownEnd, IlUShort step, IlvDim rowSize, IlvDim lineInfoSize=0, IlvDim unitSize=20, IlvDim scaleH=32, IlvDim sbSize=16, IlUShort spacing=4, IlUShort vwSpacing=20, IlUShort margin=0, IlvDim handleSize=8, IlvPosition hasScale=IlvTop, IlvPosition hasHSB=IlvBottom, IlvPosition hasVSB=IlvRight, int numLayers=5, IlBoolean useAcc=IlTrue, IlvPalette *palette=0) | |
Constructor. More... | |
virtual | ~IlvGanttChart () |
Destructor. More... | |
void | addLine (IlvGanttLine *line, IlBoolean redraw=IlTrue, int layer=1) |
Appends a line to the Gantt chart. More... | |
virtual void | addLink (IlvGanttLink *link, IlBoolean redraw=IlTrue, int layer=2) |
Adds a link to the Gantt chart. More... | |
virtual void | addNode (IlvGanttNode *node, IlBoolean redraw=IlTrue, int layer=3) |
Adds a node to the Gantt chart. More... | |
virtual IlBoolean | addSubNode (IlvGanttNode *node, IlvGanttSubNode *subNode, IlBoolean redraw=IlTrue, int layer=3) |
Adds a subnode to the Gantt chart node. More... | |
void | addSubNodeToHiliteList (IlvGanttSubNode *subnode) |
Adds a subnode to the highlight list. More... | |
void | allowDragDrop (IlBoolean flag) |
Specifies whether drag-and-drop operations are allowed. More... | |
virtual IlvPos | compactRow (IlUShort row, IlBoolean redraw=IlTrue) |
Compresses the height of a given row. More... | |
void | computeGridPoints (IlUShort index) |
Computes the grid points. More... | |
virtual IlvGanttGridViewHook * | createGridHook (IlvGrapher *grapher, IlvView *view) |
Creates the grid hook connected to the view of the grapher. More... | |
virtual IlvScale * | createScale (IlvDisplay *display, const IlvPoint &origin, IlvDim size, IlInt start, IlInt end, IlUShort step, IlvPosition p=IlvTop) const |
Creates a scale object. More... | |
virtual IlvGanttScrollViewHook * | createScrollHook (IlvGrapher *grapher, IlvView *view) |
Creates the scroll hook connected to the view. More... | |
virtual void | deleteNodes (IlBoolean destroy, IlBoolean redraw=IlTrue) |
Deletes the Gantt nodes and links stored in the Gantt chart. More... | |
virtual void | drawGrid (IlvPort *dst, IlUShort index, IlBoolean skipCompute=IlFalse, const IlvRegion *clip=0, IlvTransformer *trans=0, IlvDirection direction=(IlvDirection)(IlvHorizontal|IlvVertical)) |
Draws the grid in the given port. More... | |
void | emptyHiliteList () |
Resets the highlight list to empty. More... | |
virtual void | ensureVisible (IlvManager *manager, IlvView *view, const IlvPoint &point, IlBoolean redraw=IlTrue) |
Translates the working view according to the mouse position. More... | |
IlUShort | firstVisibleRow (IlUShort index) const |
Gets the first visible row of the manager view. More... | |
virtual void | fitViewsTransformerToContents (IlUShort index, IlvDirection dir, IlBoolean redraw=IlTrue) |
Computes the transformer so it shows every object stored in all the visible layers. More... | |
IlvGraphic * | getBreakGraphicModel () const |
Gets the break graphic model currently used. More... | |
IlInt | getEnd () const |
Gets the end time managed by the chart. More... | |
IlvGrapher * | getGrapher () const |
Gets the grapher stored in the chart. More... | |
IlvView * | getGrapherView (IlUShort index) const |
Returns the grapher view indicated by index. More... | |
IlvGanttGridViewHook * | getGridHook (IlUShort index) const |
Returns the grid hook connected to the view indicated by index. More... | |
IlvPalette * | getGridPalette () const |
Returns the palette used to draw the grid. More... | |
IlvFilledRectangle * | getHandle () const |
Gets the handle box that controls the size of the views. More... | |
IlvPalette * | getHiliteBackGroundPalette () const |
Gets the highlight background palette. More... | |
IlBoolean | getHiliteState () const |
Gets the highlight state. More... | |
IlvScrollBar * | getHorizontalScrollBar (IlUShort index) const |
Gets the horizontal scroll bar. More... | |
IlvGanttLine * | getLine (IlUShort row) const |
Gets a Gantt line. More... | |
IlvGraphic * | getLineGraphicModel () const |
Gets the line graphic model of the Gantt chart. More... | |
IlvGraphic * | getLineGrid () const |
Gets the line grid currently being used. More... | |
IlInt | getLineLoad (IlUShort row, IlInt time) const |
Gets the difference between the capacity of a line and the sum of the capacities of all subnodes intersecting with a vertical axis. More... | |
IlUShort | getLineRow (const IlvGanttLine *line) const |
Gets the row where the given Gantt line is located. More... | |
IlvGanttLine ** | getLines (IlUShort &count) const |
Gets lines managed by the Gantt chart. More... | |
IlvGanttSubNode ** | getLineSubNodes (IlUInt &count, IlUShort row) const |
Gets the subnodes associated with the Gantt line. More... | |
IlvGraphic * | getLinkGraphicModel () const |
Gets the graphic model of the links. More... | |
IlvManager * | getManager () const |
Gets the manager stored in the chart. More... | |
IlvView * | getManagerView (IlUShort index) const |
Returns the manager view indicated by index. More... | |
IlvGanttNodeDrawMode | getNodeDrawMode () const |
Gets the node presentation mode. More... | |
IlvGanttNode ** | getNodes (IlUInt &count) const |
Gets the nodes managed by the chart. More... | |
IlvGanttAbstractObject * | getObject (const IlvGraphic *graphic) const |
Gets the Gantt object. More... | |
IlvGanttAbstractObject * | getObject (const char *name) const |
Gets the Gantt object with the given name. More... | |
const char * | getObjectName (const IlvGanttAbstractObject *obj) const |
Gets the name of the Gantt object. More... | |
IlvGraphic * | getRowGrid () const |
Gets the row grid currently being used. More... | |
IlvScale * | getScale (IlUShort index) const |
Gets a scale object. More... | |
IlvGanttScrollViewHook * | getScrollHook (IlUShort index) const |
Gets the scroll hook connected to the view. More... | |
IlInt | getShownEnd (IlUShort index) const |
Gets the current shown end time for the grapher views. More... | |
IlInt | getShownStart (IlUShort index) const |
Gets the current shown start time for the grapher views. More... | |
IlInt | getStart () const |
Gets the start time managed by the chart. More... | |
IlUShort | getStep (IlUShort index) const |
Gets the graduation step in the grapher views of the Gantt chart. More... | |
IlvGanttSubNode * | getSubNode (const IlvGraphic *graphic) const |
Returns the Gantt subnode associated with the graphic object graphic in the Gantt chart. More... | |
void | getSubNodeDrawnStartEnd (const IlvGanttNode *node, IlUShort index, IlInt &start, IlInt &end) const |
Gets the positions of the given subnode. More... | |
IlvGraphic * | getSubNodeGraphicModel () const |
Gets the graphic model of the subnodes. More... | |
IlvGanttSubNodeHook * | getSubNodeHook () |
Gets the subnode hook installed in a Gantt chart. More... | |
IlInt | getSubNodeMinimumSize () const |
Gets the minimum size of subnodes. More... | |
IlvScrollBar * | getVerticalScrollBar (IlUShort index) const |
Gets the vertical scroll bar. More... | |
IlvRect & | getWorkArea (IlvRect &area) const |
Returns the work area. More... | |
void | grapherViewsBBox (IlvRect &bbox) const |
Gets the bounding box of the four grapher views. More... | |
virtual void | handleReshape (const IlvPoint &handlePosition) |
Handles the resizing of views. More... | |
virtual void | handleResize (const IlvRect &newsize) |
Handles the resizing of Gantt chart components. More... | |
virtual void | installAccelerators () |
Adds default accelerators to the manager and the grapher event handlers. More... | |
IlBoolean | isDoubleBuffering () const |
Returns whether double buffering is enabled. | |
IlBoolean | isManaged (const IlvGanttAbstractObject *object) const |
Indicates whether the given object is managed by the Gantt chart. More... | |
IlBoolean | isShowingFreeNodes () const |
Indicates whether the chart shows free nodes. More... | |
IlBoolean | isShowingGrapherViewBorders () const |
Indicates whether the borders of the grapher views are drawn. More... | |
IlBoolean | isShowingGrid () const |
Indicates whether a grid is drawn in the grapher views. More... | |
IlUShort | lastVisibleRow (IlUShort index) const |
Gets the last visible row of the manager view. More... | |
virtual void | lineBBox (IlUShort row, IlvRect &bbox) const |
Gets the bounding box of a graphic object associated with a Gantt line. More... | |
virtual void | loadObjects (IlvInputFile &file) |
Loads a set of objects from the input file. More... | |
void | moveHandle (const IlvPoint &position) |
Moves the handle box to a new position. More... | |
virtual IlBoolean | moveLine (IlvGanttLine *line, IlUShort row, IlBoolean redraw=IlTrue) |
Moves the line to the given row. More... | |
virtual IlBoolean | prettyRowBBox (IlUShort &row, IlvRect &prettyBox, IlBoolean redraw=IlTrue) |
Compresses the height of a given row. More... | |
virtual void | prettySubNodeBBox (IlvGanttNode *node, IlUShort index, IlvRect &bbox, IlBoolean redraw=IlTrue) |
Gets the prettied bounding box of a subnode. More... | |
virtual void | psDump (const char *filename, IlUInt xmargin=20, IlUInt ymargin=20, IlBoolean rotate=IlTrue) const |
Creates a dump file for PostScript printing. More... | |
void | readObjectFile (IlBoolean redraw=IlTrue) |
Reads a set of IlvGraphic , IlvGanttLine , IlvGanttNode , and IlvGanttLink objects from the file associated with the Gantt chart. More... | |
virtual void | removeHooks () |
Removes the hooks from the grapher. More... | |
virtual IlBoolean | removeLine (IlUShort row, IlBoolean redraw=IlTrue, IlBoolean destroy=IlTrue) |
Removes a line located at a row from the Gantt chart object set. More... | |
virtual IlBoolean | removeLink (IlvGanttLink *link, IlBoolean redraw=IlTrue, IlBoolean destroy=IlTrue) |
Removes a link from the Gantt chart object set. More... | |
virtual IlBoolean | removeNode (IlvGanttNode *node, IlBoolean redraw=IlTrue, IlBoolean destroy=IlTrue) |
Removes a node from the Gantt chart object set. More... | |
virtual IlBoolean | removeSubNodes (IlvGanttNode *node, IlUShort *indexArray, IlUShort num, IlBoolean redraw=IlTrue, IlBoolean destroy=IlTrue) |
Removes subnodes from the Gantt chart node. More... | |
virtual void | resetViewsTransformer (IlUShort index, IlBoolean redraw=IlTrue) |
Resets the transformer so that the initial transformer can be applied. More... | |
void | rowBBox (IlUShort row, IlvRect &bbox) const |
Gets the bounding box of a region that contains the graphic object associated with a Gantt line. More... | |
virtual void | rowResized (IlUShort row, IlvPos dh) const |
Used to indicate that a Gantt row has been resized. More... | |
IlUShort | rows () const |
Gets the number of rows in the Gantt chart. More... | |
virtual void | saveObjects (IlvOutputFile &file) const |
Writes the descriptions of the objects stored in the manager to the output file. More... | |
void | setBreakGraphicModel (IlvGraphic *model, IlBoolean destroyOld=IlTrue) |
Sets the break graphic model. More... | |
void | setGridPalette (IlvPalette *palette) |
Sets the palette used to draw the grid. More... | |
void | setHiliteBackGroundPalette (IlvPalette *bgPal) |
Sets the highlight background palette. More... | |
void | setHiliteState (IlBoolean hilite=IlTrue) |
Sets the highlight state. More... | |
IlvGraphic * | setLineGraphicModel (IlvGraphic *model, IlBoolean deleteOld=IlTrue) |
Sets the line graphic model for the Gantt chart. More... | |
IlvGraphic * | setLineGrid (IlvGraphic *compoGrid, IlBoolean redraw=IlTrue, IlInt layer=0) |
Sets the grid for the Gantt lines. More... | |
void | setLinkGraphicModel (IlvGraphic *model, IlBoolean deleteOld=IlTrue) |
Sets the graphic model for links. More... | |
virtual void | setNodeDrawMode (IlvGanttNode *node, IlvGanttNodeDrawMode mode, IlBoolean redraw=IlTrue) |
Sets the node presentation mode. More... | |
void | setNodeDrawMode (IlvGanttNodeDrawMode mode, IlBoolean redraw=IlTrue) |
Sets the node presentation mode. More... | |
void | setObjectFileName (const char *name) |
Sets the name of the file associated with the chart. More... | |
IlBoolean | setObjectName (IlvGanttAbstractObject *object, const char *name, IlBoolean redraw=IlTrue) |
Sets the name of the Gantt object. More... | |
IlvGraphic * | setRowGrid (IlvGraphic *compoGrid, IlBoolean redraw=IlTrue, IlInt layer=0) |
Sets the grid for the Gantt rows. More... | |
void | setShowingGrapherViewBorders (IlBoolean flag, IlBoolean redraw=IlTrue) |
Sets the visibility of the borders of the grapher views. More... | |
IlBoolean | setStep (IlUShort index, IlUShort step, IlBoolean redraw=IlTrue) |
Sets the graduation step. More... | |
IlvGraphic * | setSubNodeGraphicModel (IlvGraphic *model, IlBoolean deleteOld=IlTrue) |
Sets the graphic model for subnodes. More... | |
IlvGanttSubNodeHook * | setSubNodeHook (IlvGanttSubNodeHook *hook) |
Installs a subnode hook. More... | |
void | setSubNodeMinimumSize (IlInt size) |
Sets the minimum size of subnodes. More... | |
virtual void | setSubNodeValues (IlvGanttNode *node, IlUShort index, IlInt startMin, IlInt startMax, IlInt endMin, IlInt endMax, IlvGanttLine *line, IlUShort capacity, IlBoolean redraw=IlTrue) |
Sets the values of the subnodes. More... | |
void | showFreeNodes (IlBoolean flag, IlBoolean redraw=IlTrue) |
Sets the display flag of the free nodes. More... | |
void | showGrid (IlBoolean flag, IlBoolean redraw=IlTrue) |
Sets the grid display. More... | |
void | showInterval (IlUShort index, IlInt shownStart, IlInt shownEnd, IlBoolean redraw=IlTrue) |
Modifies the shown start and end times in the grapher views. More... | |
virtual void | subNodeBBox (const IlvGanttNode *node, IlUShort index, IlvRect &bbox) const |
Gets the bounding box of a subnode. More... | |
virtual IlBoolean | swapLines (IlvGanttLine *line1, IlvGanttLine *line2, IlBoolean redraw=IlTrue) |
Swaps two Gantt lines. More... | |
virtual void | translateViews (IlUShort index, IlvPos deltaCol, IlvPos deltaRow, IlBoolean redraw=IlTrue) |
Translates the given view. More... | |
IlUShort | yToClosestRow (IlvPos y) const |
Gets the closest row to a given location. More... | |
IlBoolean | yToRow (IlvPos y, IlUShort &row) const |
Gets the row located at a given location. More... | |
virtual IlBoolean | zoomViews (IlUShort index, IlvDirection dir, IlUShort fromCol, IlUShort toCol, IlUShort fromRow, IlUShort toRow, IlBoolean redraw=IlTrue) |
Zooms in or out of the given view. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvGanttChart | |
static IlSymbol * | WorkAreaCallbackType () |
Returns the callback type for the "Work Area" callback. More... | |
Gantt chart form class.
Library: ilvgantt
IlvGanttChartForm
is a subclass of IlvGanttChart
. It has the following additional features:
<align="center">
IlvGanttChart
is not accessible by users of the Gantt. It is replaced by the splitters. The size of the panes can be adjusted by dragging the splitters. You can even collapse a pane by dragging a splitter and dropping it on another splitter. Similarly you can do the opposite to expand a collapsed pane. The resource table has three parts:
IlvSheet
. The resource header is an object of the class IlvGanttResourceHeader
, which is a subclass of IlvSheet
. An IlvGanttResourceHeader
is a single row IlvSheet
that can be used in exactly the same way as an IlvSheet
. IlvGanttResourceLine
. An IlvGanttResourceLine
is a single row IlvScrolledMatrix
. After an IlvGanttChartForm
is created, you must create an IlvGanttResourceLine
and call the setLineGraphicModel()
method in order to specify the IlvGanttResourceLine
as the line graphic mode of the IlvGanttChartForm
.
For more information on the Gantt chart form, read the $ILVHOME/samples/gantt/calendar/readme.txt
file.
IlvGanttChartForm::IlvGanttChartForm | ( | IlvDisplay * | display, |
const IlvRect & | rect, | ||
IlInt | start, | ||
IlInt | end, | ||
IlInt | shownStart, | ||
IlInt | shownEnd, | ||
IlUShort | step, | ||
IlvDim | rowSize, | ||
IlvDim | lineInfoSize = 0 , |
||
IlvDim | unitSize = 20 , |
||
IlvDim | scaleH = 32 , |
||
IlvDim | sbSize = 16 , |
||
IlUShort | spacing = 4 , |
||
IlUShort | vwSpacing = 20 , |
||
IlUShort | margin = 0 , |
||
IlvDim | separSize = 6 , |
||
IlvPosition | hasScale = IlvTop , |
||
IlvPosition | hasHSB = IlvBottom , |
||
IlvPosition | hasVSB = IlvRight , |
||
int | numLayers = 5 , |
||
IlBoolean | useAcc = IlTrue , |
||
IlvPalette * | palette = 0 |
||
) |
Constructor.
The constructor initializes a new IlvGanttChartForm
object. The scales and scroll bars are positioned by default.
display | The display. |
rect | The size of the Gantt chart. |
start | The start time in the interval managed by the Gantt chart, given as an integer. |
end | The end time in the interval managed by the Gantt chart, given as an integer. |
shownStart | The shown start time, given as an integer. |
shownEnd | The shown end time, given as an integer. |
step | The graduation step on all the Gantt chart views. |
rowSize | The initial width of the manager views. |
lineInfoSize | The width of user-defined regions. |
unitSize | Specifies the line-unit height and subnode height. |
scaleH | Indicates the scale height. |
sbSize | Specifies the height of the horizontal scroll bars and the width of the vertical scroll bars. |
spacing | Indicates the spacing between Gantt lines and the left, top, right, and bottom sides of the manager views. |
vwSpacing | Indicates the grapher view spacing. |
margin | Specifies the spacing in pixels between the left, right, top, or bottom edge of Gantt chart and any scale, scroll bar, or view. |
separSize | Specifies the width or height in pixels of a square box positioned on the middle of the grapher views. This box allows users to adjust the size of the manager and the grapher views by using the mouse. |
hasScale | This parameter is ignored. The scales are always on the top. |
hasHSB | This parameter is ignored. The horizontal scroll bars are always at the bottom. |
hasVSB | This parameter is ignored. The vertical scroll bars are always on the right. |
numLayers | Indicates the number of layers to be handled by the grapher. |
useAcc | An IlBoolean indicating whether the default accelerators are to be set (for a list of the default accelerators, see Table "Default manager and grapher accelerators"). |
palette | Specifies the graphic resources of different Gantt chart components (views, scales, scroll bars, handle box). An inverted palette is computed from the given palette and used to draw the lines and nodes added to the Gantt chart. |
Removes all the objects stored in the chart.
If the destroy parameter is set to IlTrue
, the objects are destroyed. If this parameter is set to IlFalse
, the objects are removed but not destroyed. In both cases, graphic objects are destroyed.
destroy | Specifies whether objects are destroyed after they are removed. |
redraw | Specifies whether you want the manager and the grapher to redraw their views. |
Reimplemented from IlvGanttChart.
IlvGraphic* IlvGanttChartForm::getCompositeGrid | ( | ) | const |
Gets the composite grid currently being used.
Returns the composite grid currently used in the Gantt chart form.
IlvGanttChart::getRowGrid()
instead. 0
if no composite grid has been set. IlvGraphic* IlvGanttChartForm::getCompositeScale | ( | ) | const |
Gets the composite scale currently being used.
Returns the composite scale currently used in the Gantt chart form.
0
if no composite scale has been set. Returns the bounds of the Gantt lines.
This function computes the bounding box of the Gantt lines.
area | The bounds of the Gantt lines. |
Reimplemented from IlvGanttChart.
IlvGanttResourceHeader* IlvGanttChartForm::getResourceHeader | ( | ) | const |
Gets the resource header.
Returns the resource header that is on the top left of the Gantt chart form.
null
if the makeView
method has not been called. IlvScrollBar* IlvGanttChartForm::getResourceScrollBar | ( | ) | const |
Gets the resource table scroll bar.
Returns the resource table scroll bar that is on the bottom left of the Gantt chart form.
null
if the makeView
method has not been called. Gets the scale view.
Returns the scale view that is on the top right of the Gantt chart form.
viewIndex | Valid values are 0 and 1 . |
null
if the makeView
method has not been called. IlvSplitterGadget* IlvGanttChartForm::horizontalSplitter | ( | IlInt | index | ) | const |
Gets the horizontal splitter.
Returns the horizontal splitter of the Gantt chart form.
index | Valid values are 0 and 1 . |
null
if the makeView
method has not been called.
|
virtual |
Inserts a line before a row.
If this line already encapsulates a graphic object, this object is added to the Gantt manager. Otherwise, the Gantt chart creates a default graphic object, either by copying a graphic model provided by the user (if any), or by using the IlvMessageLabel
constructor, and then adds it to the manager.
If row is greater than the actual number of lines in the chart, the line is added after the last row if the chart does not have a hidden line containing free nodes (see showFreeNodes
), or before the last row if there is such a line.
line | The line to insert. |
row | The row to insert the line into. |
redraw | Indicates whether you want the manager and the grapher to redraw the invalidated area of the display. |
layer | Specifies, if necessary, the layer where this object is to be inserted. |
Reimplemented from IlvGanttChart.
|
virtual |
Creates the views.
Creates the gadget container, the manager and the grapher, the two manager views, the four grapher views, and the scale objects.
dst | The port. |
t | The transformer. |
Reimplemented from IlvGanttChart.
|
virtual |
Moves a splitter to a given position.
Moves the given splitter of the Gantt chart form to the position pos. It should not be called if the makeView
method has not been called.
This function is used to adjust the size of a pane. It can also be used to collapse or expand a pane.
dir | Specifies in which direction the splitter will be moved (IlvHorizontal or IlvVertical ). |
index | Valid values are 0 and 1 . |
pos | The new position for the splitter. |
IlvGraphic* IlvGanttChartForm::setCompositeGrid | ( | IlvGraphic * | compoGrid, |
IlBoolean | redraw = IlTrue |
||
) |
Sets the composite grid for the Gantt chart form.
The composite grid is an IlvGraphic
displayed in the grapher views to the right of the Gantt chart form.
The IlvGanttChart::makeView()
member function will add this composite grid to the grapher of the Gantt chart form.
IlvGanttChart::setRowGrid()
instead. compoGrid | The composite grid. |
redraw | IlTrue to redraw after setting the composite grid. |
IlvGraphic* IlvGanttChartForm::setCompositeScale | ( | IlvGraphic * | compoScale, |
IlBoolean | redraw = IlTrue , |
||
IlBoolean | reshape = IlFalse |
||
) |
Sets the composite scale for the Gantt chart form.
The composite scale is an IlvGraphic
displayed in the scale views at the top of the Gantt chart form. This function does not delete the composite scale of the IlvGanttChart
.
See the [ILVHOME]/samples/gantt/calendar
sample for more information on the composite scale.
compoScale | The composite scale. |
redraw | IlTrue to redraw after setting the composite scale. |
reshape | Indicates whether the scale should be reshaped to fit into the total range (start, end) of the Gantt chart. |
|
virtual |
Enables or disables double buffering.
When double buffering is enabled, the manager views and the grapher views of the Gantt chart use double buffering to refresh themselves.
doubleBuffer | Indicates whether double buffering should be enabled. |
Reimplemented from IlvGanttChart.
|
virtual |
Updates the scale.
This function is called when a new transformation is applied to the corresponding grapher views. You can set the parameter redraw to IlFalse
if you do not want to refresh the view contents.
scale | The scale to update. |
redraw | IlTrue to refresh the view contents. |
Reimplemented from IlvGanttChart.
IlvSplitterGadget* IlvGanttChartForm::verticalSplitter | ( | IlInt | index | ) | const |
Gets the vertical splitter.
Returns the horizontal splitter of the Gantt chart form.
index | Valid values are 0 and 1 . |
null
if the makeView
method has not been called. © Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.