StatBean Name: GraphicalStatbean

Purpose: The class which all graphical StatBeans extend. This bean is not intended to be used directly, but provides general properties for all graphical StatBeans.

Read/Write Properties
NameTypeDescriptionPossible ValuesDefault Value
allBlackAndWhitebooleanWhether to draw graphics in only black and white.true,falsefalse
axisColorColorThe color of the axes.Any valid Color.Color.blue
bottomMarginintThe bottom margin as a percentage of the height of the canvas.0-5025
borderbooleanWhether a border is drawn around the StatBean's canvas.true,falsetrue
crosshairsColorColorColor used to draw crosshairs.Any Color.Color.darkGray
showCrosshairsMessagebooleanWhether to display crosshair coordinates.true,falsefalse
drawCrosshairsOnMouseDownbooleanWhether to draw crosshairs when mouse is pressed.true,falsefalse
fillColorColorThe color of the first fill.Any valid Color.Color.blue
fillColors(int k)ColorThe color of fill set k.Any valid Color.Varied.
fillTypeStringThe type for fill set k."None","Solid","Horizontal",
"Vertical","Diagonal",
"Reverse Diagonal",
"Crosshatch",
"Diagonal Crosshatch"
"Solid"
fullFramebooleanWhether the X-Y axes have four sides rather than two.true,falsetrue
gridColorColorThe color of the grid.Any valid Color.Color.lightGray
gridDirectionStringThe type of grid to be added to the plot."None",
"Horizontal",
"Vertical",
"Bidirectional"
"Bidirectional"
highlightColorColorColor used to highlight point.Any Color.Color.red
highlightPointOnMouseClickbooleanWhether to highlight point if clicked on by mouse.true,falsefalse
interiorColorColorThe color of the area inside the axes.Any valid Color.Color.yellow
leftMarginintThe left margin as a percentage of the width of the canvas.0-5025
legendColorColorColor used for legend.Any Color.Color.red
legendFontFontThe font used for the legend.Any Font."Serif",0,10
legendHorizontalLocationdoubleLocation of the legend in (0,1) axis coordinates.Any double.1.05
legendTextStringThe legend text, delimited by \n.Any string, or "@" to generate a default legend."@"
legendTitleStringThe title displayed above th legends.Any string, or "@" to generate a default title."@"
legendVerticalLocationdoubleLocation of the legend in (0,1) axis coordinates.Any double.0.90
lineColorColorThe color of the line connecting the points.Any valid Color.Color.black
lineColors(int k)ColorThe color of line set k.Any valid Color.Varied.
lineTypeStringThe type to be used for the main line."Solid","Short Dash",
"Long Dash","Dot",
"Dot-Dash"
"Solid"
lineTypes(int k)StringThe type to be used for line set k."Solid","Short Dash",
"Long Dash","Dot",
"Dot-Dash"
"Solid"
messageColorColorColor used for message.Any Color.Color.red
messageFontFontThe font used for the message.Any Font."Serif",0,10
messageHorizontalLocationdoubleLocation of the message in (0,1) axis coordinates.Any double.1.05
messageVerticalLocationdoubleLocation of the message in (0,1) axis coordinates.Any double.0.30
paintInteriorbooleanWhether the area inside the axes should be painted.true,falsetrue
pointColorColorThe color of the point symbols.Any valid Color.Color.black
pointColors(int k)ColorThe color of point set k.Any valid Color.Varied.
pointSizeintThe size of the point symbols.0-202
pointSizes(int k)intThe size of point set k.0-202
pointTypeStringThe type to be used for the point symbols."Rectangle","+",
"X","Asterisk",
"Diamond",
"Inverted Triangle",
"Triangle",
"Circle","Filled Rectangle",
"Filled Circle"
"Rectangle"
rightaxisBydoubleThe distance between ticmarks on the right axis.Any double > 0.0.2
rightaxisFromdoubleThe minimum value for the right axis.Any double.0.0
rightaxisLogscalebooleanWhether axis is drawn as log base 10.true,falsefalse
rightaxisPowerbooleanWhether small and large numbers are shown with a power.true,falsetrue
rightaxisTicmarkColorColorThe color to be used for the right axis ticmarks.Any Color.Color.black
rightaxisTicmarkFontFontThe font to be used for the right axis ticmarks.Any Font."Serif",0,12
rightaxisTitleStringThe title displayed along the right axis.Any string, or "@" to generate a default title."@"
rightaxisTitleColorColorThe color to be used for the z axis title.Any Color.Color.black
rightaxisTitleFontFontThe font to be used for the right axis title.Any Font."Serif",0,12
rightaxisTodoubleThe maximum value for the right axis.Any double > zaxisFrom.1.0
rightaxisTypeStringThe type of data on the axis."Numeric","Character",
"Integer","Date","Month",
"Quarter","Time","Seconds",
"0 Decimals","1 Decimal",
"2 Decimals","3 Decimals",
"4 Decimals","5 Decimals",
"6 Decimals","7 Decimals",
"8 Decimals","9 Decimals"
"Numeric"
rightMarginintThe right margin as a percentage of the width of the canvas.0-5020
showPointClickedMessagebooleanWhether to display point coordinates.true,falsefalse
significantDigitsintThe number of signigicant digits to be displayed.2-206
ticmarkGapintGap between the axes and the origin as a percentage of the width of the axes.0-104
ticmarkOrientationStringThe direction of the ticmarks relative to the axes."In","Out","None""in"
ticmarkLengthintLength of the ticmarks as a percentage of the width of the axes.0-102
topMarginintThe top margin as a percentage of the height of the canvas.0-5020
topTitleLine1StringThe first line of the title displayed above the graph.Any string, or "@" to generate a default title."@"
topTitleLine1ColorColorThe color to be used for the first line of the top title.Any Color.Color.black
topTitleLine1FontFontThe font to be used for the first line of the top title.Any Font."Serif",0,16
topTitleLine2StringThe second line of the title displayed above the graph.Any string, or "@" to generate a default title."@"
topTitleLine2ColorColorThe color to be used for the second line of the top title.Any Color.Color.black
topTitleLine2FontFontThe font to be used for the second line of the top title.Any Font."Serif",0,12
useDefaultFontsbooleanWhether default fonts should be used.true,falsetrue
useDefaultScalingbooleanWhether default scaling should be used.true,falsetrue
xaxisBydoubleThe distance between ticmarks on the x axis.Any double > 0.0.2
xaxisFromdoubleThe minimum value for the x axis.Any double.0.0
xaxisLogscalebooleanWhether axis is drawn as log base 10.true,falsefalse
xaxisPowerbooleanWhether small and large numbers are shown with a power.true,falsetrue
xaxisTicmarkColorColorThe color to be used for the x axis ticmarks.Any Color.Color.black
xaxisTicmarkFontFontThe font to be used for the x axis ticmarks.Any Font."Serif",0,12
xaxisTitleStringThe title displayed along the x axis.Any string, or "@" to generate a default title."@"
xaxisTitleColorColorThe color to be used for the x axis title.Any Color.Color.black
xaxisTitleFontFontThe font to be used for the x axis title.Any Font."Serif",0,12
xaxisTodoubleThe maximum value for the x axis.Any double > xaxisFrom.1.0
xaxisTypeStringThe type of data on the axis."Numeric","Character",
"Integer","Date","Month",
"Quarter","Time","Seconds",
"0 Decimals","1 Decimal",
"2 Decimals","3 Decimals",
"4 Decimals","5 Decimals",
"6 Decimals","7 Decimals",
"8 Decimals","9 Decimals"
"Numeric"
yaxisBydoubleThe distance between ticmarks on the y axis.Any double > 0.0.2
yaxisFromdoubleThe minimum value for the y axis.Any double.0.0
yaxisLogscalebooleanWhether axis is drawn as log base 10.true,falsefalse
yaxisPowerbooleanWhether small and large numbers are shown with a power.true,falsetrue
yaxisTicmarkColorColorThe color to be used for the y axis ticmarks.Any Color.Color.black
yaxisTicmarkFontFontThe font to be used for the y axis ticmarks.Any Font."Serif",0,12
yaxisTitleStringThe title displayed along the y axis.Any string, or "@" to generate a default title."@"
yaxisTitleColorColorThe color to be used for the y axis title.Any Color.Color.black
yaxisTitleFontFontThe font to be used for the y axis title.Any Font."Serif",0,12
yaxisTodoubleThe maximum value for the y axis.Any double > yaxisFrom.1.0
yaxisTypeStringThe type of data on the axis."Numeric","Character",
"Integer","Date","Month",
"Quarter","Time","Seconds",
"0 Decimals","1 Decimal",
"2 Decimals","3 Decimals",
"4 Decimals","5 Decimals",
"6 Decimals","7 Decimals",
"8 Decimals","9 Decimals"
"Numeric"
zaxisBydoubleThe distance between ticmarks on the z axis.Any double > 0.0.2
zaxisFromdoubleThe minimum value for the z axis.Any double.0.0
zaxisLogscalebooleanWhether axis is drawn as log base 10.true,falsefalse
zaxisPowerbooleanWhether small and large numbers are shown with a power.true,falsetrue
zaxisTicmarkColorColorThe color to be used for the z axis ticmarks.Any Color.Color.black
zaxisTicmarkFontFontThe font to be used for the z axis ticmarks.Any Font."Serif",0,12
zaxisTitleStringThe title displayed along the z axis.Any string, or "@" to generate a default title."@"
zaxisTitleColorColorThe color to be used for the z axis title.Any Color.Color.black
zaxisTitleFontFontThe font to be used for the z axis title.Any Font."Serif",0,12
zaxisTodoubleThe maximum value for the z axis.Any double > zaxisFrom.1.0
zaxisTypeStringThe type of data on the axis."Numeric","Character",
"Integer","Date","Month",
"Quarter","Time","Seconds",
"0 Decimals","1 Decimal",
"2 Decimals","3 Decimals",
"4 Decimals","5 Decimals",
"6 Decimals","7 Decimals",
"8 Decimals","9 Decimals"
"Numeric"

Other Public Methods
NameDescriptionArgumentsReturn Value
void addText(String S,double x,double y)Writes text in (0,1) coordinates.Text,x position,y position.None.
void addText(String S,double x,double y,int rp)Writes text in (0,1) coordinates.Text,x position,y position,ref. position.None.
void addText(String S,double x,double y,int rp,Color c)Writes text in (0,1) coordinates.Text,x position,y position,ref. position,color.None.
void addText(String S,double x,double y,int rp,Color c,Font f)Writes text in (0,1) coordinates.Text,x position,y position,ref. position,color,font.None.
void addText(String S,double x,double y,double z)Writes text in (0,1) coordinates.Text,x position,y position,z position.None.
void addText(String S,double x,double y,double z,int rp)Writes text in (0,1) coordinates.Text,x position,y position,z position, ref. position.None.
void addText(String S,double x,double y,double z,int rp,Color c)Writes text in (0,1) coordinates.Text,x position,y position,z position,ref. position,color.None.
void addText(String S,double x,double y,double z,int rp,Color c,Font f)Writes text in (0,1) coordinates.Text,x position,y position,z position,ref. position,color,font.None.
void addPlotText(String S,double x,double y)Writes text in plot coordinates.Text,x position,y position.None.
void addPlotText(String S,double x,double y,int rp)Writes text in plot coordinates.Text,x position,y position, ref. position.None.
void addPlotText(String S,double x,double y,int rp,Color c)Writes text in plot coordinates.Text,x position,y position,ref. position,color.None.
void addPlotText(String S,double x,double y,int rp,Color c,Font f)Writes text in plot coordinates.Text,x position,y position,ref. position,color,font.None.
void addPlotText(String S,double x,double y,double z)Writes text in plot coordinates.Text,x position,y position,z position.None.
void addPlotText(String S,double x,double y,double z,int rp)Writes text in plot coordinates.Text,x position,y position,z position, ref. position.None.
void addPlotText(String S,double x,double y,double z,int rp,Color c)Writes text in plot coordinates.Text,x position,y position,z position,ref. position,color.None.
void addPlotText(String S,double x,double y,double z,int rp,Color c,Font f)Writes text in plot coordinates.Text,x position,y position,z position,ref. position,color,font.None.
void getLastCursorPosition(double xy[2])Returns the coordinates of the last mouse press.Mouse XY coordinates.None.
int getLastPointClicked(double xyz[3])Returns the row number and coordinates of the last highlighted point.Point XY or XYZ coordinates.Row number (0 origin).
boolean hasFills()Returns true if graph contains filled areas.None.True or false.
boolean hasGrid()Returns true if graph contains a grid.None.True or false.
boolean hasLegends()Returns true if graph contains legends.None.True or false.
boolean hasLegendTitle()Returns true if graph contains a legend title.None.True or false.
boolean hasLines()Returns true if graph contains lines.None.True or false.
boolean hasPoints()Returns true if graph contains points.None.True or false.
boolean hasRightaxis()Returns true if graph contains right-axis ticmarks.None.True or false.
boolean hasRightaxisTitle()Returns true if graph contains a right-axis title.None.True or false.
boolean hasTopTitleLine1()Returns true if graph contains a top title.None.True or false.
boolean hasTopTitleLine2()Returns true if graph contains a 2-line top title.None.True or false.
boolean hasXaxis()Returns true if graph contains x-axis ticmarks.None.True or false.
boolean hasXaxisTitle()Returns true if graph contains an x-axis title.None.True or false.
boolean hasYaxis()Returns true if graph contains y-axis ticmarks.None.True or false.
boolean hasYaxisTitle()Returns true if graph contains a y-axis title.None.True or false.
boolean hasZaxis()Returns true if graph contains z-axis ticmarks.None.True or false.
boolean hasZaxisTitle()Returns true if graph contains a z-axis title.None.True or false.
boolean isThreed()Returns true if graph is 3-dimensional.None.True or false.
void setErrorMessage(String S)Sets a message to be displayed instead of the defined graph.Message string.None.
void updateScalingFromGraph()Sets from, to, and by members to current scaling.None.None.

Note: The ref. position rp for the addText function specifies the position on the text string to which the x,y,(z) position refers. It is defined as follows:
0 = bottom left
1 = bottom center
2 = bottom right
3 = center left
4 = center (default)
5 = center right
6 = top left
7 = top center
8 = top right