Integrating JClass Chart 1.0T with Symantec Visual Cafe

NOTE: These instructions apply only to Chart 1.0T, which is based on JDK 1.0.
Chart 1.0 cannot be used, since it is based on JDK 1.1.

Introduction

The files in Integrations\VisualCafe\Chart have been provided in conformance to the requirements specified by Symantec. The result of the integration will cause a palette of JClass Chart icons to be displayed alongside Visual Cafe's supplied components.

Installation

Because of some problems with Visual Cafe, adding JClass Chart to the component palette is not simple. The technique is outlined below.

Step One: Add the Integration Files to the Visual Cafe Directory

Add the Chart files in jclass\Integrations\VisualCafe\Chart to Cafe's directory:

cd jclass\Integrations\VisualCafe\Chart
copy *.desc \VisualCafe\Bin\Components
copy *.ico \VisualCafe\Bin\Components

Step Two: Add the Chart Class Files to the Visual Cafe Directory

Create the jclass directories:

mkdir \VisualCafe\Java\Lib\jclass\bwt
mkdir \VisualCafe\Java\Lib\jclass\util
mkdir \VisualCafe\Java\Lib\jclass\chart

If jcchartt.zip has not been unzipped, do so. Copy the class files to the Visual Cafe directory:

copy jclass\bwt\*.class \VisualCafe\Java\Lib\jclass\bwt
copy jclass\util\*.class \VisualCafe\Java\Lib\jclass\util
copy jclass\chart\*.class \VisualCafe\Java\Lib\jclass\chart

Step Three: Reset Visual Cafe

Reset the Visual Cafe environment by deleting its internal pre-built files. This will cause Cafe to load the BWT integration files the next time Cafe is started:

cd c:\VisualCafe\Bin
erase *.rps *.reg *.vws

Note: You must exit Visual Cafe before removing these files.


Using JClass Chart Exposed Properties
JClass Chart Exposed Properties

 Integrating JClass Chart 1.0T with Symantec Visual Cafe

Exposed Properties

Name	Method
IsBatched	The IsBatched property controls whether chart updates are accumulated.
AllowUserChanges	The AllowUserChanges property determines whether the user viewing the graph can modify graph values.
TopMargin	The TopMargin property controls the top margin on the chart.
LeftMargin	The LeftMargin property controls the left margin on the chart.
RightMargin	The RightMargin property controls the right margin on the chart.
BottomMargin	The BottomMargin property controls the bottom margin on the chart.
Offset	The Offset property controls the amount of space between chart components.
DataSources	The DataSources property is an indexed property used to get data into Chart. Each element in DataSources is either a filename or a valid URL from which properly-formatted data can be retrieved.
DataView1	The DataView1 property controls the file or URL used for the first set of data in chart.
DataView1ChartType	The DataView1ChartType property determines the chart type of the first set of data in the chart.
DataView2	The DataView2 property controls the file or URL used for the first set of data in chart.
DataView2ChartType	The DataView2ChartType property determines the chart type of the first set of data in the chart.
AxisBoundingBox	The AxisBoundingBox property determines whether a box is drawn around the area bound by the inner axes. (AxisBoundingBox is actually a property of JCChartArea.)
FastRotate	The FastRotate property determines whether the rotate action will use an optimized mode in which it doesn't bother to display axis annotations or grid lines. (FastRotate is actually a property of JCChartArea.)
Depth	The Depth property controls the apparent depth of a graph when displayed in 3D mode. (Depth is actually a property of JCChartArea.)
Elevation	The Elevation property controls the distance form the x axis when the chart is displayed in 3D mode. (Elevation is actually a property of JCChartArea.)
Rotation	The Rotation property controls the position of the eye relative to the y axis when the chart is displayed in 3D mode. (Rotation is actually a property of JCChartArea.)
X1AxisIsLogarithmic	The X1AxisIsLogarithmic property determines whether the first x axis will be logarithmic (true) or linear (false)
X1AxisIsReversed	The X1AxisIsReversed property determines whether the first x axis will be reversed in direction.
X1AxisIsShowing	The X1AxisIsShowing property determines whether the first x axis is currently visible.
X1AxisAnnotationRotation	The X1AxisAnnotationRotation property specifies the rotation of each axis label. Valid values are ROTATE_90, ROTATE_180, ROTATE_270 or ROTATE_NONE
X1AxisPlacement	The X1AxisPlacement property determines the method used to place the first x axis. Valid values include AUTOMATIC (Chart chooses an appropriate location), ORIGIN (appears at the origin of another axis), MIN (appears at the minimum axis value), MAX (appears at the maximum axis value) or VALUE_ANCHORED (appears at a particular value along another axis)
X1AxisAnnotationMethod	The X1AxisAnnotationMethod property determines how axis annotations are generated. Valid values include VALUE (axis annotations are generated by chart, with possible callbacks to a label generator), VALUE_LABELS (axis annotations are taken from a list of value labels provided by the user. Note that a value label is a label that is to appear at a particular value along the axis), POINT_LABELS (axis annotations come from the data source in the form of point labels ie labels associated with particular data points) and TIME_LABELS (chart generates time/date/labels based on the TimeUnit, TimeBase and TimeFormat properties).
X1AxisPrecision	The X1AxisPrecision property controls the number of zeros that appear after the decimal place in chart-generated axis labels.
X1AxisPrecisionIsDefault	The X1AxisPrecisionIsDefault determines whether Chart is responsible for calculating the numbering precision. If true, Chart will calculate the precision. If false, Chart will use the precision provided in X1AxisPrecision.
X1AxisNumSpacing	The X1AxisNumSpacing property controls the interval between axis labels.
X1AxisNumSpacingIsDefault	The X1AxisNumSpacingIsDefault property determines whether Chart is responsible for calculating the numbering spacing. If true, Chart will calculate the spacing. If false, Chart will use the provided numbering spacing.
X1AxisTickSpacing	The X1AxisTickSpacing property controls the interval between tick lines on the axis. Note: if the X1AxisAnnotationMethod property is set to POINT_LABELS, tick lines appear at point values.
X1AxisTickSpacingIsDefault	The X1AxisTickSpacingIsDefault property determines whether Chart is responsible for calculating the tick spacing. If true, Chart will calculate the tick spacing. If false, Chart will use the provided tick spacing.
X1AxisGridSpacing	The X1AxisGridSpacing property controls the spacing between grid lines relative to the axis.
X1AxisGridSpacingIsDefault	The X1AxisGridSpacingIsDefault property determines whether Chart is responsible for calculating the grid spacing value. If true, Chart will calculate the grid spacing. If false, Chart will use the provided grid spacing.
X1AxisGridIsShowing	The X1AxisGridIsShowing property determines whether a grid is drawn for the axis.
X1AxisTimeUnit	The X1AxisTimeUnit property controls the unit of time used for labelling a time labelled axis. Valid X1AxisTimeUnit values include SECONDS, MINUTES, HOURS, DAYS, WEEKS, MONTHS and YEARS.
X1AxisTimeFormat	The X1AxisTimeFormat property controls the format used to generate time labels for time labelled axes. The formats supported are similar to those supported by the C function strftime().
X1AxisTimeFormatIsDefault	The X1AxisTimeFormatIsDefault property determines whether a time label format is generated automatically, or the user value for X1AxisTimeFormat is used.
X1AxisMin	The X1AxisMin property controls the minimum value shown on the axis.
X1AxisMinIsDefault	The X1AxisMinIsDefault property determines whether Chart is responsible for calculating the minimum axis value. If true, Chart will calculate the axis min. If false, Chart will use the provided axis min.
X1AxisMax	The X1AxisMax property controls the maximum value shown on the axis.
X1AxisMaxIsDefault	The X1AxisMaxIsDefault property determines whether Chart is responsible for calculating the maximum axis value. If true, Chart will calculate the axis max. If false, Chart will use the provided axis max.
X1AxisOrigin	The X1AxisOrigin property controls location of the origin along the axis.
X1AxisOriginIsDefault	The X1AxisOriginIsDefault property determines whether Chart is responsible for positioning the axis origin. If true, Chart calculates the axis origin. If false, Chart uses the provided axis origin value.
X1AxisOriginPlacement	The X1AxisOriginPlacement property specifies where the origin is placed. Note that the X1AxisOriginPlacement property is only active if the X1AxisOrigin property has not been set. Valid values include AUTOMATIC (places origin at minimum value or at zero if there are negative and positive values), ZERO (places origin at zero), MIN (places origin at minimum value on axis) or MAX (places origin at maximum value on axis).
X1AxisTitleText	The X1AxisTitleText property specifies the text that will appear as the x1 axis title.
X1AxisTitleIsShowing	The X1AxisTitleIsShowing property determines whether the x1 axis is visible.
X1AxisTitlePlacement	The X1AxisTitlePlacement property controls where the JCAxis title is placed relative to the "opposing" axis. Valid values include JCLegend.NORTH or JCLegend.SOUTH for horizontal axes, and JCLegend.EAST, JCLegend.WEST, JCLegend.NORTHEAST, JCLegend.SOUTHEAST, JCLegend.NORTHWEST or JCLegend.SOUTHEAST for vertical axes.
X1AxisTitlePlacementIsDefault	The X1AxisTitlePlacementIsDefault property determines whether Chart is responsible for calculating a reasonable default placement for the axis title.
Y1AxisIsLogarithmic	The Y1AxisIsLogarithmic property determines whether the first y axis will be logarithmic (true) or linear (false)
Y1AxisIsReversed	The Y1AxisIsReversed property determines whether the first y axis will be reversed in direction.
Y1AxisIsShowing	The Y1AxisIsShowing property determines whether the first y axis is currently visible.
Y1AxisAnnotationRotation	The Y1AxisAnnotationRotation property specifies the rotation of each axis label. Valid values are ROTATE_90, ROTATE_180, ROTATE_270 or ROTATE_NONE
Y1AxisPlacement	The Y1AxisPlacement property determines the method used to place the first y axis. Valid values include AUTOMATIC (Chart chooses an appropriate location), ORIGIN (appears at the origin of another axis), MIN (appears at the minimum axis value), MAX (appears at the maximum axis value) or VALUE_ANCHORED (appears at a particular value along another axis)
Y1AxisAnnotationMethod	The Y1AxisAnnotationMethod property determines how axis annotations are generated. Valid values include VALUE (axis annotations are generated by chart, with possible callbacks to a label generator), VALUE_LABELS (axis annotations are taken from a list of value labels provided by the user. Note that a value label is a label that is to appear at a particular value along the axis), POINT_LABELS (axis annotations come from the data source in the form of point labels ie labels associated with particular data points) and TIME_LABELS (chart generates time/date/labels based on the TimeUnit, TimeBase and TimeFormat properties).
Y1AxisPrecision	The Y1AxisPrecision property controls the number of zeros that appear after the decimal place in chart-generated axis labels.
Y1AxisPrecisionIsDefault	The Y1AxisPrecisionIsDefault determines whether Chart is responsible for calculating the numbering precision. If true, Chart will calculate the precision. If false, Chart will use the precision provided in Y1AxisPrecision.
Y1AxisNumSpacing	The Y1AxisNumSpacing property controls the interval between axis labels.
Y1AxisNumSpacing	The Y1AxisNumSpacingIsDefault property determines whether Chart is responsible for calculating the numbering spacing. If true, Chart will calculate the spacing. If false, Chart will use the provided numbering spacing.
Y1AxisTickSpacing	The Y1AxisTickSpacing property controls the interval between tick lines on the axis. Note: if the Y1AxisAnnotationMethod property is set to POINT_LABELS, tick lines appear at point values.
Y1AxisTickSpacingIsDefault	The Y1AxisTickSpacingIsDefault property determines whether Chart is responsible for calculating the tick spacing. If true, Chart will calculate the tick spacing. If false, Chart will use the provided tick spacing.
Y1AxisGridSpacing	The Y1AxisGridSpacing property controls the spacing between grid lines relative to the axis.
Y1AxisGridSpacingIsDefault	The Y1AxisGridSpacingIsDefault property determines whether Chart is responsible for calculating the grid spacing value. If true, Chart will calculate the grid spacing. If false, Chart will use the provided grid spacing.
Y1AxisGridIsShowing	The Y1AxisGridIsShowing property determines whether a grid is drawn for the axis.
Y1AxisTimeUnit	The Y1AxisTimeUnit property controls the unit of time used for labelling a time labelled axis. Valid Y1AxisTimeUnit values include SECONDS, MINUTES, HOURS, DAYS, WEEKS, MONTHS and YEARS.
Y1AxisTimeFormat	The Y1AxisTimeFormat property controls the format used to generate time labels for time labelled axes. The formats supported are similar to those supported by the C function strftime().
Y1AxisTimeFormatIsDefault	The Y1AxisTimeFormatIsDefault property determines whether a time label format is generated automatically, or the user value for Y1AxisTimeFormat is used.
Y1AxisMin	The Y1AxisMin property controls the minimum value shown on the axis.
Y1AxisMinIsDefault	The Y1AxisMinIsDefault property determines whether Chart is responsible for calculating the minimum axis value. If true, Chart will calculate the axis min. If false, Chart will use the provided axis min.
Y1AxisMax	The Y1AxisMax property controls the maximum value shown on the axis.
Y1AxisMaxIsDefault	The Y1AxisMaxIsDefault property determines whether Chart is responsible for calculating the maximum axis value. If true, Chart will calculate the axis max. If false, Chart will use the provided axis max.
Y1AxisOrigin	The Y1AxisOrigin property controls location of the origin along the axis.
Y1AxisOriginIsDefault	The Y1AxisOriginIsDefault property determines whether Chart is responsible for positioning the axis origin. If true, Chart calculates the axis origin. If false, Chart uses the provided axis origin value.
Y1AxisOriginPlacement	The Y1AxisOriginPlacement property specifies where the origin is placed. Note that the Y1AxisOriginPlacement property is only active if the Y1AxisOrigin property has not been set. Valid values include AUTOMATIC (places origin at minimum value or at zero if there are negative and positive values), ZERO (places origin at zero), MIN (places origin at minimum value on axis) or MAX (places origin at maximum value on axis).
Y1AxisTitleText	The Y1AxisTitleText property specifies the text that will appear as the Y1 axis title.
Y1AxisTitleIsShowing	The Y1AxisTitleIsShowing property determines whether the Y1 axis is visible.
Y1AxisTitlePlacement	The Y1AxisTitlePlacement property controls where the JCAxis title is placed relative to the "opposing" axis. Valid values include JCLegend.NORTH or JCLegend.SOUTH for horizontal axes, and JCLegend.EAST, JCLegend.WEST, JCLegend.NORTHEAST, JCLegend.SOUTHEAST, JCLegend.NORTHWEST or JCLegend.SOUTHEAST for vertical axes.
Y1AxisTitlePlacementIsDefault	The Y1AxisTitlePlacementIsDefault property determines whether Chart is responsible for calculating a reasonable default placement for the axis title.
HeaderText	The HeaderText property holds the text that is displayed in the header.
HeaderIsShowing	The HeaderIsShowing property determines whether the header is visible.
FooterText	The FooterText property holds the text that is displayed in the footer.
FooterIsShowing	The FooterIsShowing property determines whether the footer is visible.
LegendIsShowing	The LegendIsShowing property determines whether the legend is visible.
LegendAnchor	The LegendAnchor property determines the position of the legend relative to the ChartArea. Valid values include NORTH, SOUTH, EAST, WEST, NORTHWEST, SOUTHWEST, NORTHEAST and SOUTHEAST
LegendOrientation	The LegendOrientation property determines how legend information is laid out. Valid values include VERTICAL and HORIZONTAL.