7. Properties
This chapter describes the properties in the Perspective.class Java Bean. Each property is described in the following format: |
This section describes the operation of the property. |
This section sets the data type of values that can be assigned to the property (i.e., Integer, Boolean, Real, String, etc.) |
This section sets the range of values that can be assigned to the property. |
This section sets the property's default value. |
Where applicable, this section shows a visual example of property values. |
This section sets the property coding syntax. If you are not using a Java Bean editor, each property can be selected as a method using a "set" or "get" in front of the property name (e.g., Property = Autoshading, Method = setAutoshading). The getPropertyName() method returns the value of the property as a boolean, integer, real, or string. The setPropertyName() method assigns a value to the property. |
This section shows example code where the property has been used to modify the characteristics of a chart. Most code samples show Java code created by a Java Development Environment. Some samples show HTML code. |
This section provides additional information about using this property. |
This section sets other properties that interact with this property. |
This property enables (true) / disables (false) automatic shading of risers in a chart. If a 3D-graph type is selected, it also enables and disables shading of the 3D cube that surrounds the chart. If this property is set to true, light source settings are used to automatically shade the faces of a 3D graph, simulating a cast light beam. If this property is set to false, all sides of 3D risers or the 3D cube is the same color. It is not possible to color each face separately. |
Boolean |
true (enable autoshading) / false (disable autoshading) |
true (Autoshading Enabled) |
setAutoshading ( true );
![]() |
setAutoshading ( false );
![]() |
setAutoshading ( true | false ); boolean = getAutoshading(); |
/* A basic extension of the java.applet.Applet class */ |
These properties are used to define the location (X,Y) and size (Height/Width) of the chart in the applet window. |
Real |
X/Y: -32768...32767 Height/Width: 1...32767 |
None |
setBoundsX ( value ); value = getBoundsX(); setBoundsY ( value ); setBoundsHeight ( value ); setBoundsWidth ( value ); |
/* A basic extension of the java.applet.Applet class */ |
This method sets the color mode to be used in the chart (e.g., automatic, color by series, etc.). For 3D Surface charts, the automatic settting will cause the chart to be colored by height. For Bar, Line, and Area charts, the automatic setting will color the chart by series if there is more than one series, but will color it by groups if there is only one series. |
Integer |
0...2 | ||
Value |
Description |
|
0 |
Automatic (Use the group as the "series" if there is only 1 series. 3D Connected Series Ribbon and Areas are colored by series, 3D Group Ribbon and Areas are colored by group). |
|
1 |
Color by Series |
|
2 |
Color by Group |
0 (Automatic) |
setColorMode ( 1 );
![]() |
setColorMode ( 2 );
![]() |
setColorMode ( value ); value = getColorMode(); |
1. |
When color by group (setColorMode(2);), the legend is always automatically turned off. |
|
2. |
See the Default Values in Chapter 3 for the default color that is assigned to each series. |
This property enables (true) / disables (false) the display of connecting markers in a line chart. Setting this to property to false will produce a "floating marker" effect with only markers and no connecting lines. |
Boolean |
true (Enable Connecting Lines) /false (Disable Connecting Lines) |
true (Enable connecting lines) |
setConnectLineMarkers ( true );
![]() |
setConnectLineMarkers ( false );
![]() |
setConnectLineMarkers ( true | false ); boolean = getConnectLineMarkers(); |
perspective1.setGraphType(41); |
A vertical or horizontal line chart must be selected and the DepthRadius property must be set to zero. |
ConnectScatterMarkers |
This property enables (True) / disables (False) the display of connecting lines between markers in a scatter chart. Setting this property to true draws a line connecting all markers in the same series in the order the points are in the data matrix. |
Boolean |
true (Enable connecting lines) /false (Disable connecting lines) |
false (Connecting lines disabled) |
setConnectScatterMarkers( false );
![]() |
setConnectScatterMarkers( true );
![]() |
setConnectScatterMarkers ( true | false ); boolean = getConnectScatterMarkers(); |
/* A basic extension of the java.applet.Applet class */ |
ConnectLineMarkers |
This property sets the focus factor for setting perspective distortion in a 3D chart. |
Real |
Any real number. |
1 |
setCubeFocusFactor ( value ); value = getCubeFocusFactor(); |
/* A basic extension of the java.applet.Applet class */ |
Note:
CubeIsometricProjection must be set to false for this property to take effect. |
CubeIsometricProjection |
This property enables (true) / disables (false) isometric projection. When this property is set to true, perspective distortion (focus) factor is ignored and the graph cube is projected isometric-ly (i.e., no line of sight perspective distortion, but perfectly parallel lines, like a mechanical drawing). |
Boolean |
true (Enable isometric projection) /false (Disable isometric projection) |
false (Disable isometric projection) |
setCubeIsometricProjection ( true | false ); boolean = getCubeIsometricProjection(); |
/* A basic extension of the java.applet.Applet class */ |
CubeFocusFactor |
These properties set the cube light source for the X-, Y, and Z-coordinate (unit space). |
Real |
Any real number |
CubeLightSourceX: 0 CubeLightSourceY: 0.4 CubeLightSourceZ: 1 |
setCubeLightSourceX = ( value ); value = getCubeLightSourceX(); setCubeLightSourceY ( value ); setCubeLightSourceZ ( value ); |
/* A basic extension of the java.applet.Applet class */ |
The CubePanX property pans the chart (in 2D virtual coordinates) in the X direction. The CubePanY property pans the chart (in 2D virtual coordinates) in the Y direction. Before you use these properties, the GraphType property must select one of the 3D chart types (0...7, 9...10, 12...14) and the Viewing3DAnglePreset property must select a custom angle (-1). |
Real |
Any real number |
Zero |
setCubePanX ( -5000 ); ![]() |
setCubePanX ( 0 ); ![]() |
setCubePanX ( 5000 ); ![]() |
setCubePanX ( value ); setCubePanY ( value ); |
Viewing3DAnglePreset and GraphType to select a 3D chart |
These properties can be used to set the size of the 3D cube in the (user) X-, Y-, and Z-directions. Before you use these properties, the GraphType property must select one of the 3D chart types (0...7, 9...10, 12...14) and the Viewing3DAnglePreset property must select a custom angle (-1). The dimensions are expressed in TDG Virtual Coordinates. |
Real |
1000...25000 |
CubeSizeX: 8000 |
setCubeSizeZ ( 4000 ); |
setCubeSizeZ ( 10000 ); |
setCubeSizeX ( value ); setCubeSizeY ( value ); setCubeSizeZ ( value ); |
1. |
The GraphType property must be set to one of the 3D chart types. |
|
2. |
The Viewing3DAnglePreset property must be set to -1 (custom angle). |
Viewing3DAnglePreset and GraphType to select a 3D chart. |
This property enables (true) / disables (false) square risers. If true, this property forces the aspect ratio of 3D risers to be perfectly square regardless of the dimensions of the cube. If this property is set to false, risers will be drawn using the RiserWidth property and the aspect ratio of the cube. For ribbons and floating graph types, the Riser3DThicknessY property determines the height of the risers. |
Boolean |
true (Force risers to be square) / false (Do not force risers to be square) |
false |
setCubeSquareRisers ( true | false ); |
/* A basic extension of the java.applet.Applet class */ |
These properties set the translation of a 3D cube (in 3D cube coordinates) in the X-, Y-, and Z-direction. |
Real |
Any real number |
Zero |
setCubeTranslationX(-2000); |
setCubeTranslationX ( 0 ); |
setCubeTranslationX ( 2000 ); |
setCubeTranslationX ( value ); setCubeTranslationY ( value ); setCubeTranslationZ ( value ); |
1. |
These examples use the default values assigned to the CubeTranslationY(0) and CubeTranslationZ(0) properties. |
|
2. |
The GraphType property must be set to one of the 3D chart types. |
|
3. |
The Viewing3DAnglePreset property must be set to -1 (custom angle). |
Viewing3DAnglePreset and the translateCube() method in Chapter 8. See the GraphType property to select a 3D chart. |
These properties set the viewer location (in 3D coordinates) in the X-, Y-, and Z-direction. |
Real |
Any real number |
CubeViewerX: 0 |
setCubeViewerX ( -5000 ); |
setCubeViewerX ( 0 ); |
setCubeViewerX ( 5000 ); |
setCubeViewerX ( value ); setCubeViewerY ( value ); setCubeViewerZ ( value ); |
1. |
These examples use CubeViewerY and CubeViewerZ default values. |
|
2. |
The Viewing3DAnglePreset property must be set to -1 (custom angle) in order for this property to have any affect on the graph. |
Viewing3DAnglePreset and GraphType to select a 3D chart. |
These properties set the thickness of the 3D-cube wall in the (user) X-, Y-, and Z-direction. |
Real |
Any positive real number |
CubeWallThickX: 600 |
setCubeWallThickX ( 2400 );
![]() |
setCubeWallThickX ( 4800 );
![]() |
setCubeWallThickX ( value ); setCubeWallThickY ( value ); setCubeWallThickZ ( value ); |
1. |
These examples use CubeWallThickY and CubeWallThickZ default values. |
|
2. |
The Viewing3DAnglePreset property must be set to -1 (custom angle) in order for this property to have any affect on the graph. |
Viewing3DAnglePreset and GraphType to select a 3D chart. |
This property sets the global scaling factor for zooming in/out. Values greater than one, zoom in and produce a large display of the chart within the frame. Values between zero and one zoom out and produce a smaller display of the chart within the frame. |
Real |
0.2...2.0 |
1 |
setCubeZoomFactor ( 1.15 );
![]() |
setCubeZoomFactor ( 0.85 );
![]() |
setCubeZoomFactor ( value ); |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The Viewing3DAnglePreset property must be set to -1 (custom angle) in order for this property to have any affect on the graph. |
Viewing3DAnglePreset and GraphType to select a 3D chart |
This property determines whether data items are aligned parallel to the series (both rows or both columns). This property will take effect only when used with a chart type that requires more than one value per series (such as Scatter, Polar, or Stock charts). |
Boolean |
true (Align data items parallel to series) / false (Align data items vertically within series) |
true |
setDataItemsAlongSeries ( true );
![]() |
setDataItemsAlongSeries ( false );
![]() |
setDataItemsAlongSeries ( true | false ); |
/* A basic extension of the java.applet.Applet class */ |
When a "2.5D effect" is applied to a vertical or horizontal line chart with DepthAngle and DepthRadius, the DataLineThickness property defines the width of the "fake 3D" lines in the chart. It is expressed as a value in the range 1 to 100. A value of one produces very thin lines, a value of 100 produces very thick 3D ribbons. |
Integer |
1...100 |
30 |
setDataLineThickness ( value ); value = getDataLineThickness(); |
setDataLineThickness ( 10 );
![]() |
setDataLineThickness ( 60 );
![]() |
/* A basic extension of the java.applet.Applet class */ |
setLineWidth() in Chapter 8 |
This property sets an angle from center-point that all data text is drawn from. The setDataTextAngle() method can override this property by applying an angle to an individual series/group intersection. |
Integer |
0...360 |
90 |
setDataTextAngleDefault ( value ); |
setDataTextDisplay ( true ); |
setDataTextDisplay ( true ); |
perspective1.setDataTextDisplay(true); |
The DataTextPosition property must be set to zero. |
DataTextPosition and the get/setDataTextAngle() methods in Chapter 8. |
This property enables (true) / disables (false) the display of data values next to risers or markers in a chart. The DataTextFormat property can be used to define the format (i.e., %, $, etc.) of values displayed on the risers. The DataTextPosition property can be used to define the location on or next to risers where the data text values are displayed. |
Boolean |
true (Enable the display of data values) / false (Disable the display of data values) |
false (Disable the display of data values) |
setDataTextDisplay (true);
![]() |
setDataTextDisplay (false);
![]() |
setDataTextDisplay ( true | false ); |
DataTextFormat / DataTextFormatPattern
Description:
When the DataTextDisplay property is set to true and data values are displayed next to markers and risers in a chart, these properties can be used to select the format of the data values. DataTextFormat can be used to select one of the standard preset formats. DataTextFormatPatten can be used to specify a standard Java number format pattern. |
Data Type:
DataTextFormat: Integer |
Valid Range:
DataTextFormat: -1...14 (-1 = Use format set by DataTextFormatPattern) |
||||||
Value |
Format |
Example |
Value |
Format |
Example |
|
0 |
General |
560 |
8 |
$0K |
$56K |
|
1 |
0 |
560 |
9 |
0M |
56M |
|
2 |
0% |
56% |
10 |
$0M |
$56M |
|
3 |
0.0% |
56.6% |
11 |
0B |
56B |
|
4 |
0.00% |
56.66% |
12 |
$0B |
$56B |
|
5 |
$0.00 |
$56.66 |
13 |
0T |
56T |
|
6 |
$0 |
$56 |
14 |
$0T |
$56T |
|
7 |
0K |
56K |
||||
DataTextFormatPattern: A pattern string in the following format: |
Default Value:
DataTextFormat: 0 (General) DataTextFormatPattern: "#.#" |
Syntax:
setDataTextFormat ( value ); value = getDataTextFormat (); setDataTextFormatPattern ( pattern ); |
Notes:
The DataTextDisplay property must be set to true in order for these properties to have any effect on the graph. |
Also See:
DataTextDisplay. Also see PieFeelerTextFormat to format data text displayed in a pie chart. |
This property can be used to define the position where data text is displayed in the chart when the DataTextDisplay property is enabled (true). |
Integer |
0...5 |
||
Value |
Description |
|
0 |
custom, use angle and radius |
|
1 |
above risers |
|
2 |
center on riser top edge |
|
3 |
below riser top edge |
|
4 |
center of riser |
|
5 |
base of riser |
1 (above risers) |
setDataTextPosition ( 1 );
![]() |
setDataTextPosition ( 2 );
![]() |
setDataTextPosition ( 3 );
![]() |
setDataTextPosition ( 4 );
![]() |
setDataTextPosition ( value ); |
This property sets the radius that a data text value will be drawn out from the center of a chart riser by default. The setDataTextRadius() method can override this value by setting a specific series/group intersection format for the default data text position. |
Integer |
0...100 |
25 |
setDataTextRadiusDefault ( 50 );
![]() |
setDataTextRadiusDefault ( 0 );
![]() |
setDataTextRadiusDefault ( value ); |
Code Sample:
perspective1.setDataTextDisplay(true); |
The DataTextPosition property must be set to zero. |
DataTextAngleDefault, DataTextDisplay, DataTextPosition, and the get/setDataTextAngle() and get/setDataTextRadius() methods in Chapter 8. |
This property sets the angle of a line from the front of the chart frame to the back (in degrees). |
Integer |
0-180 degrees |
45 degrees |
setDepthAngle ( 25 );
![]() |
setDepthAngle ( 65 );
![]() |
setDepthAngle ( value ); |
/* A basic extension of the java.applet.Applet class */ |
1. |
This property applies to Bar, Line, and Area charts only. |
|
2. |
The DepthRadius property must be greater than zero in order for this property to be properly applied to the graph. |
When charts are drawn with a 2.5D effect, this property sets how far out the extruded frame will be extended. Small values produce a very narrow chart, larger values produce a thicker chart. |
Integer |
0...100 |
40 |
setDepthRadius ( 20 );
![]() |
setDepthRadius ( 60);
![]() |
setDepthRadius ( value ); |
/* A basic extension of the java.applet.Applet class */ |
Display3DFloor / RightWall / LeftWall
These properties enable (true) / disable (false) the display of the floor, right wall, and left wall of the cube in a 3D chart. |
Boolean |
true (Display floor, right wall, or left wall) / false (Do not display) |
true (Display floor, right wall, and left wall) |
setDisplay3DFloor (true);
![]() |
setDisplay3DFloor (false);
![]() |
setDisplay3DFloor ( true | false ); setDisplay3DLeftWall ( true | false ); setDisplay3DRightWall ( true | false ); |
A 3D-graph type must be selected in order for this property to have any affect on the graph. See the GraphType property. |
This property enables (true) / disables (false) the display of bars as pictographs in a flat 2D chart. When this property is set to true, the picture (.GIF image) identified by the setTexture() method will be applied to the bar. The setTexture() method must be used to identified a valid .GIF image. If a texture has not been identified with setTexture(), this property may cause jagged lines to be displayed on the bars. The setFillType() method should also be set to identify textures (i.e., setFillType (3); ) as the fill type. |
Boolean |
true (display bars as pictographs) / false (display bars normally) |
false |
setDisplayBarAsPictograph ( true | false ); |
/* A basic extension of the java.applet.Applet class */ |
get/setTexture() and get/setFillType() in Chapter 8 |
This property enables (true) / disables (false) the display of a line that separates the two halves of a dual axis chart. The chart type must be a bipolar type or a stock chart with volume to see the effect of this property. |
Boolean |
true (display the dual axis line) / false (do not display the dual axis line) |
true |
setDualAxisLineDisplay ( true );
![]() |
setDualAxisLineDisplay ( false );
![]() |
setDualAxisLineDisplay ( true | false ); boolean = getDualAxisLineDisplay(); |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
For Bar, Line, and Area charts with DepthRadius set to any value greater than 0, a BiPolar plane will be displayed instead of a solid line. |
This property sets the position within the chart frame where the Dual-Y split position will be created. The default value of 50 is exactly in the middle. A lower number will move the split position closer to the bottom of the chart; a higher value will move it closer to the top of the chart. |
Integer |
10...90 |
50 |
setDualAxisSplitPosition ( 50 );
![]() |
setDualAxisSplitPosition ( 25 );
![]() |
setDualAxisSplitPosition ( value ); |
FootnoteAutofit / Display / String
These properties are used to autofit, display, and define the footnote object in a graph. The FootnoteAutofit property enables/disables autofitting of footnote text. When this property is enabled, font settings for the footnote string are ignored. The FootnoteDisplay property enables/disables drawing of the footnote string that is defined by the FootnoteString property. The FootnoteString property is used to define the footnote text that is drawn when the FootnoteDisplay property is enabled. When a footnote string is defined with this property, the FootnoteDisplay property is automatically set to true. |
FootnoteAutofit and FootnoteDisplay: Boolean |
FootnoteAutofit: true (autofit footnote) / false (do not autofit footnote) |
FootnoteAutofit and FootnoteDisplay: true |
setFootnoteAutofit ( true ); |
setFootnoteAutofit ( false ); |
setFootnoteAutofit ( true | false ); / boolean = getFootnoteAutofit(); setFootnoteDisplay( true | false ); / boolean = getFootnoteDisplay(); setFootnoteString ( "FootnoteString" ); |
This property enables (true) /disables (false) drawing of the chart frame. |
Boolean |
true (Draw Frame) / false (Do not draw frame) |
true (Draw frame) |
setFrameDisplay ( true ); |
setFrameDisplay ( false ); |
setFrameDisplay( true | false ); |
This property selects a graph type. Perspective for Java includes a wide variety of two- and three-dimensional graphs. They are listed and illustrated in Appendix A. |
Integer |
0-89 (See Appendix A for an illustration of each graph type) |
17 (Vertical Bar, Side-by-Side) |
setGraphType ( 55 ); |
setGraphType ( 67 ); |
setGraphType ( value ); |
<!doctype html public "-//ietf//dtd html//en//3.0"> |
See Appendix A for an illustration of each graph type. |
These properties enable (true) / disable (false) the display of X-axis and Z-axis grid lines on the floor of the cube in a 3D chart. |
Boolean |
true (Display grid lines) / false (Do not display grid lines) |
|
false (Do not display grid lines) |
setGrid3DFloorDisplayX ( true ); |
setGrid3DFloorDisplayX ( false ); |
setGrid3DFloorDisplayX( true | false ); setGrid3DFloorDisplayZ( true | false ); |
A 3D-graph type must be selected in order for this property to have any affect on the graph. See the GraphType property. |
Grid3DLeftWallDisplayY/Z, Grid3DRightWallDisplayX/Y, Grid3DRiserDisplayX/Y/Z |
These properties enable (true) /disable (false) the display of Y-axis and Z-axis grid lines on the left wall of a 3D chart. |
Boolean |
true (Display grid lines) / false (Do not display grid lines) |
false (Do not display grid lines) |
setGrid3DLeftWallDisplayY ( false ); |
setGrid3DLeftWallDisplayY ( true ); |
setGrid3DLeftWallDisplayY ( true | false ); setGrid3DLeftWallDisplayZ ( true | false ); |
A 3D-graph type must be selected in order for this property to have any affect on the graph. See the GraphType property. |
Grid3DFloorDisplayY/Z, Grid3DRightWallDisplayX/Y, Grid3DRiserDisplayX/Y/Z |
These properties enable (true) / disable (false) the display of X-axis and Y-axis grid lines on the right wall of the cube in a 3D chart. |
Boolean |
true (Display grid lines) / false (Do not display grid lines) |
false (Do not display grid lines) |
setGrid3DRightWallDisplayX ( false ); |
setGrid3DRightWallDisplayX ( true ); |
setGrid3DRightWallDisplayX ( true | false ); setGrid3DRightWallDisplayY( true | false ); |
A 3D-graph type must be selected in order for this property to have any affect on the graph. See the GraphType property. |
Grid3DFloorDisplay, Grid3DLeftWallDisplayY/Z, Grid3DRiserDisplayX/Y/Z |
These properties enable (true) / disable (false) the display of X-axis, Y-axis, and Z-axis grid lines on the risers in a 3D chart. |
Boolean |
true (Display grid lines )/ false (Do not display grid lines) |
false (Do not display grid lines) |
setGrid3DRiserDisplayY ( false ); |
setGrid3DRiserDisplayY ( true ); |
setGrid3DRiserDisplayX ( true | false ); setGrid3DRiserDisplayY( true | false ); setGrid3DRiserDisplayZ( true | false ); |
1. |
A 3D-graph type must be selected in order for this property to have any affect on the graph. See the GraphType property. |
|
2. |
X and Z riser gridlines enabled by Grid3DRiserDisplayX and Grid3DRiserDisplayZ are only visible/applied to 3D surface charts. |
Grid3DFloorDisplay, Grid3DLeftWallDisplayY/Z, Grid3DRightWallDisplayX/Y |
This property enables (true) / disables (false) automatic sizing and positioning of the legend box. When this property is set to true, the charting engine will automatically set the size of the legend box to half the height/width of the chart and position the legend box in the center of the chart frame. |
Boolean |
true (Charting engine automatically calculates position and size of legends) / false (Do not automatically calculate position and size of legends) |
false |
setLegendAutomatic ( true | false ); |
LegendDisplay, LegendMarkerPosition, LegendReverse, LegendTextAutofit, and get/setLegendRect() in Chapter 8 |
This property enables/disables drawing of the legend box. It also affects all legend box objects (legend text, legend marker, and legend line). When the legend box is not drawn, neither are its components. Legends are not displayed for histogram charts or any chart that is colored by group (ColorMode=2). |
Boolean |
true (Show the legends) / false (Do not show the legends) |
true (Display legend) |
setLegendDisplay ( false ); |
setLegendDisplay ( true ); |
setLegendDisplay ( true | false ); |
LegendAutomatic, LegendMarkerPosition, LegendReverse, LegendTextAutofit, UseSeriesShapes, and get/setLegendRect() in Chapter 8 |
This property sets the location and format of the chart legends. |
Integer |
0...4 |
||
Value |
Description |
|
0 |
Legend box to the left of legend text (e.g., o Legend ) |
|
1 |
Legend text to the left of legend box (e.g., Legend o ) |
|
2 |
Legend text below legend box (e.g., |
|
3 |
Legend text above legend box (e.g., |
|
4 |
Legend text inside legend box |
0 (Legend box to the left of legend text) |
setLegendMarkerPosition ( 3 ); |
setLegendMarkerPostion ( 4 ); |
setLegendMarkerPosition ( value ); |
LegendAutomatic, LegendDisplay, LegendReverse, LegendTextAutofit, UseSeriesShapes, and get/setLegendRect() in Chapter 8 |
This property enables (true) / disables (false) drawing of legends in reverse order. |
Boolean |
true/false |
false |
setLegendReverse ( true ); |
setLegendReverse ( false ); |
setLegendReverse ( true | false ); |
LegendAutomatic, LegendDisplay, LegendMarkerPosition, LegendTextAutofit, UseSeriesShapes, and get/setLegendRect() in Chapter 8 |
This property enables (true) / disables (false) autofitting of the legend text. |
Boolean |
true (Autofit legend text) / false (Do not autofit legend text) |
true (autofit legend text) |
setLegendTextAutofit ( false ); |
setLegendTextAutofit ( true ); |
setLegendTextAutofit ( true | false); |
LegendAutomatic, LegendDisplay, LegendMarkerPosition, LegendReverse, and get/setLegendRect() in Chapter 8 |
LocaleCountry / LocaleLanguage
Description:
These properties describe how to interpret number formats in different countries and different languages. These properties are only used when a format pattern has been specified with the TextFormatPattern() method or one of the following properties: DataTextFormatPattern, PieFeelerTextFormatPattern, PieRingTotalFormatPattern, X1LabelFormatPattern, Y1LabelFormatPattern, or Y2LabelFormatPattern. |
Data Type:
LocaleCountry: String |
Valid Range:
LocaleCountry: 2-character country code (See ISO 3166 Specification) |
Default Value:
LocaleCountry: "US" |
Syntax:
setLocaleCountry ( CountryCode ); setLocaleLanguage (LanguageCode ); |
Also See:
TextFormatPattern() method and the following properties: DataTextFormatPattern, PieFeelerTextFormatPattern, PieRingTotalFormatPattern, X1LabelFormatPattern, Y1LabelFormatPattern, or Y2LabelFormatPattern |
This property enables (true) / disables (false) manual redrawing of the chart when the chart properties/attributes are changed. |
Boolean |
true ( do not automatically redraw the chart when attributes are changed / false ( automatically redraw the chart when attributes are changed) |
false |
setManualRedraw ( true | false ); |
/* A basic extension of the java.applet.Applet class */ |
This property enables (true) / disables (false) the display of markers in a 2D chart. The DepthRadius property must be set to zero in order for this property to be properly applied to the chart. Use this property to turn off marker (false) in a Line Chart when you only want to see the lines themselves and not the markers. |
Boolean |
true (Display markers) / false (Do not display markers) |
true (Display markers) |
setMarkerDisplay ( false ); |
setMarkerDisplay ( true ); |
setMarkerDisplay ( true | false ); / boolean = getMarkerDisplay(); |
public class Applet1 extends Applet |
ConnectLineMarkers, ConnectScatterMarkers, MarkerSizeDefault, and the following methods in Chapter 8: get/setMarkerShape(), get/setMarkerSize(), get/setMarkerTemplate(), get/setMarkerTemplateIndex() |