The TssResourceAllocationChart uses four classes to represent various components:

  • TssResourceAllocationChart: represents the whole chart.
  • TssResource: represents a single resource that can be allocated.
  • TssResourceAllocation: represents a single allocation of a single resource.
  • TssResourceAllocationChartAppearance: properties the control the appearance of the chart.
  • Various types used by the chart.

TssResourceAllocationChartAppearance

TssResourceAllocationChartAppearance is a helper class that holds properties that determine the appearance of the chart. You can create different instances of this class to, for example, cause printed output to look different from screen output.
Color PropertyPublished TColor
The colour of the outer part of the chart underneath the resource names and date labels..
DateFormat PropertyPublished string
The format used for the date labels. Leave blank to use the default regional setting short date format.
DateLabelBase PropertyPublished TDateTime
DateLabelBase allows the position of the date/time labels to be specified. Use in conjunction with DateLabelInterval to control the exact position of the date/time labels. Set DateLabelBase to 0 to revert to the automatic positioning of the labels.

Note: DateLabelBase and DateLabelInterval are not used if the OnDrawDateLabel event is set.

DateLabelInterval PropertyPublished double
The interval between date/time labels.

Note: DateLabelBase and DateLabelInterval are not used if the OnDrawDateLabel event is set.

DateLineBase PropertyPublished TDateTime
DateLineBase allows the position of the date/time lines to be specified. Use in conjunction with DateLineInterval to control the exact position of the date/time lines. Set DateLineBase to 0 to revert to the automatic positioning of the lines.

Note: DateLineBase and DateLineInterval are not used if the OnDrawDateLine event is set.

DateLineColor PropertyPublished TColor
The colour of the vertical lines drawn at date/time labels.
DateLineInterval PropertyPublished double
The interval between date/time lines. Set it to 0.0 to draw date/time lines at the same location as the date/time labels.

Note: DateLineBase and DateLineInterval are not used if the OnDrawDateLine event is set.

DateLineStyle PropertyPublished TPenStyle
The pen style used to draw the date marker lines. Defaults to psDot. The lines are not drawn if the style is set to psClear.
DateTimeFont PropertyPublished TFont
The font of the date/time labels.
DateTimeStyle PropertyPublished TssDateTimeStyle
The style of date/time labels. Defaults to dtDateAndTime.
PlotBackColor PropertyPublished TColor
The colour of the plot background area.
PlotBackAlternateColor PropertyPublished TColor
The PlotBackColor and PlotBackAlternateColor allow the plot background to be displayed in bands of alternate colours. The interval, or span of each coloured band is determined by PlotBackAlternateInterval.

Background banding is not displayed if PlotBackColor and PlotBackAlternateColor are the same, or if PlotBackAlternateInterval is 0.
PlotBackAlternateInterval PropertyPublished double
The interval used for each band of colour.
PlotBorderColor PropertyPublished TColor
The colour of the lines making up the rectangle surrounding the actual chart area.
ResourceBottomMarginRows PropertyPublished TssIntegerZeroOrGrearter
The number of "rows" to leave clear at the bottom of the chart.
ResourceLineColor PropertyPublished TColor
The colour of the lines drawn behind resources.
ResourceLineStyle PropertyPublished TPenStyle
The style of the lines drawn behind resources. The lines are not drawn if the style is set to psClear. The style psSolid is always used if the line width is greater than 1.
ResourceLineWidth PropertyPublished TssIntegerZeroOrGrearter
The width of the lines drawn behind resources. The lines are not drawn if the width is set to 0.
ResourceNameAlignment PropertyPublished TAlignment
The alignment of the resource names.
ResourceNameFont PropertyPublished TFont
The font used to display the resource names.
ResourceNameWidth PropertyPublished integer
The width of the resource name column. Set to 0 to automatically determine the width, or less than zero to prevent the display of the resource names.
ResourceSeparatorLineColor PropertyPublished TColor
The colour of the lines drawn between adjacent resources.
ResourceSeparatorLineStyle PropertyPublished TPenStyle
The style of the lines drawn between adjacent resources. The lines are not drawn if the style is set to psClear. The style psSolid is always used if the line width is greater than 1.
ResourceSeparatorLineWidth PropertyPublished TssIntegerZeroOrGrearter
The width of the lines drawn between adjacent resources. The lines are not drawn if the width is set to 0.
ResourceTopMarginRows PropertyPublished TssIntegerZeroOrGrearter
The number of "rows" to leave clear at the top of the chart.
RowGap PropertyPublished TssIntegerZeroOrGrearter
The vertical gap between rows.
RowHeight PropertyPublished TssIntegerZeroOrGrearter
The height of the allocation bars. Set to zero to use a value based on the height of the currently selected font.
ShadowColor PropertyPublished TColor
The colour of the allocation shadows.
ShadowDepth PropertyPublished TssIntegerZeroOrGrearter
The depth of the allocation shadows.
TimeFormat PropertyPublished string
The format used for the time labels. Leave blank to use the default regional setting time format.
Assign ProcedurePublic (other: TssResourceAllocationChartAppearance)
Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
BeginUpdate ProcedurePublic ( )
Starts buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
EndUpdate ProcedurePublic ( )
Stops buffering updates. One call to EndUpdate should be called for each call to BeginUpdate.
SetDefaults ProcedurePublic ( )
Restores the default settings.
What People Say

Resource Allocation Chart is one of those rare components that really fires the imagination. It looks great and is extremely flexible. A must for any application that allocates time slots.
Trevor Pegley, Visionhall
More …

No malware No spam
McAfee Site Report
Web of Trust