com.jpowered.vbgraph
Class VerticalBarGraph

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--com.jpowered.vbgraph.VerticalBarGraph
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseMotionListener, java.io.Serializable

public class VerticalBarGraph
extends java.awt.Canvas
implements java.io.Serializable, java.awt.event.MouseMotionListener

This java bean will generate a bar graph from the supplied data according to the various options set.

A simple Bar Graph can be added to an application with just the following steps:-

Step 1 - Initializing the Bean
private VerticalBarGraph vbargraph;
vbargraph = (VerticalBarGraph)Beans.instantiate(null,"com.jpowered.vbgraph.VerticalBarGraph");

Step 2 - Create a Data Vector
Vector bardata = new Vector();

bardata.add(new Graphdata(1,1,34000));
bardata.add(new Graphdata(1,2,34900));
bardata.add(new Graphdata(1,3,46000));
bardata.add(new Graphdata(2,1,27600));

bardata.add(new Graphdata(2,2,24000));
bardata.add(new Graphdata(2,3,24900));
bardata.add(new Graphdata(3,1,22000));
bardata.add(new Graphdata(3,2,26600));

bardata.add(new Graphdata(3,3,14100));
bardata.add(new Graphdata(4,1,54900));
bardata.add(new Graphdata(4,2,36650));
bardata.add(new Graphdata(4,3,36650));

Step 3 - Add the data vector to the bean instance
vbargraph.setData(bardata);

Step 4 - Set the size of the graph
vbargraph.setSize(450,450);

Step 5 - Create a Frame on which to display the bean<
Frame f = new Frame();
f.setSize(500,500);
f.addWindowListener(new ApplicationWindowAdapter());

Step 6 - Add the bean to the frame
f.add(vbargraph);


Many further properties and characteristics of the chart display may be configured.
see the various Set methods below.

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
VerticalBarGraph()
          Creates a new instance of the Vertical Bar Graph Bean
 
Method Summary
 boolean getAutoscale()
          Returns the current state of the AutoScale flag.
 boolean getAxis()
          Returns the current state of the Axis flag.
 java.awt.Color getAxiscolor()
          Returns Color used for the Axis lines.
 java.awt.Color getBackgroundcolor()
          Returns Color used for the background of the whole chart area.
 int getBar_spacing()
          Returns an integer Value indicating the gap in pixels between bars
 java.awt.Color getBaroutlinecolor()
          Returns Color used for outlining the bars.
 int getBarwidth()
          Returns the width (in pixels) of each bar
 double getChartscale()
          Returns an double Value indicating the chart scale.
This figure is the value represented by each row of the grid.
 double getChartscale2()
          Returns an double Value indicating the 2nd chart scale (right hand scale).
This figure is the value represented by each row of the grid.
 double getChartstarty()
          Returns an double Value indicating the starting value of Y-axis.
 double getChartstarty2()
          Returns an double Value indicating the starting value of 2nd Y-axis (right hand scale).
 java.util.Vector getData()
          Returns the data vector currently set for the chart
The data vector contains all the data to be plotted by the chart

Each element in the vector is a
Graphdata object.

 Dataobject getDataobj()
          Returns the data object currently set for the chart
The data object contains all the data to be plotted by the chart
 int getDepth3d()
          Returns the depth (in pixels) of the 3D effect
 java.awt.Color getFloorcolor()
          Returns Color used for the x-axis grid floor when in 3D mode.
 boolean getGradientfill()
          Returns the current state of the Gradient Fill flag.
 java.awt.Image getGraphimage()
          This method request the chart to be produced as a java.awt.Image
This is method is particularly useful where the component is to be used
within JSP and Servlets.
 boolean getGrid()
          Returns the current state of the Grid flag.
 java.awt.Color getGridbgcolor()
          Returns the color to used for the background of the grid
 java.awt.Image getGridbgimage()
          Returns the image to used for the background of the grid
 java.awt.Color getGridcolor()
          Returns Color used for the grid lines.
 java.awt.Point getGridposition()
          Returns the position of the bottom left of the grid
 java.lang.String getGridStyle()
          Returns a Value indicating the line style of the grid line drawing
The returned value will be one of the following:-

Solid
Dotted
Dashed
Solid
Long Dashed

 Imageobject getImageobj()
          Returns the free form images object currently set for the chart
The free form images object contains all the custom images to be added to the chart
 java.awt.Color getLabelcolor()
          Returns Color used for the x-axis labels.
 java.lang.String getLabelorientation()
          Returns a Value indicating the orientation of the x-axis labels.
The returned value will be one of the following:-

Horizontal
Vertical
Up Angle
Down Angle

 int getLabelsy_offset()
          Returns an integer Value indicating the offset value of every second x-axis label.
 int getLabelsy()
          Returns an integer Value indicating the y co-ordinate of the x-axis labels.
 boolean getLegend()
          Returns the current state of the Legend flag.
 java.awt.Color getLegendbackground()
          Returns Color used for the background of the legend.
 java.awt.Color getLegendborder()
          Returns Color used for the legend border.
 java.awt.Font getLegendfont()
          Returns the font used for the legend
 java.awt.Point getLegendposition()
          Returns the position of the top left of the legend
 java.awt.Color getLegendtextcolor()
          Returns Color used for the legend text.
 java.lang.String getLegendtitle()
          Returns the text used for the legend title
 int getNcols()
          Returns the number of columns of the chart area
 int getNdecplaces()
          Returns the number of decimal places which will be displayed for numeric values on the chart area.
This property effects the numeric display format for the y-axis values and
the pop-up bar values.
 int getNrows()
          Returns the number of rows of the chart area
 int getNseries()
          Returns the Number of Series property
This property refers to the nunber od distinct series within the data or to put it another way the number of bars within a column.
 boolean getOutline()
          Returns the current state of the Bar Outline flag.
 java.lang.String getPopup_post()
          Returns the string to be added at the end of the pop-up value
eg.
 java.lang.String getPopup_pre()
          Returns the string to be added at the front of the pop-up value
eg.
 java.awt.Color getPopupbgcolor()
          Returns Color used for the background of the popup value display.
 java.lang.String getPopupcursor()
          Returns a string indicating the type of cursor used for links
The returned string will be one of the following:-

Hand
Crosshair
Default
Hand
Text
North Resize
North East Resize
East Resize
South East Resize
South Resize
South West Resize
West Resize
North West Resize

 java.awt.Font getPopupfont()
          Returns Font used for the PopUp value display.
 java.util.Vector getSeriesinfo()
          Returns the series information in java.util.Vector form
The series data contains information about each series
of data that the chart is to plot.
For each series of data the following properties can be set:-

- Series Color
- Legend Label
- Scale (left or right hand y-axis)

 Seriesobject getSeriesobj()
          Returns the series object currently set for the chart
The series object contains information about each series
of data that the chart is to plot.
For each series of data the following properties can be set:-

- Series Color
- Legend Label
- Scale (left or right hand y-axis)

 Targetobject getTargetobj()
          Returns the Target Lines object currently set for the chart
The Target Lines object contains all the target line information to be drawn on the chart
 Textobject getTextobj()
          Returns the free form text object currently set for the chart
The free form text object contains all the custom text to be added to the chart
 java.lang.String getThousandseparator()
          Returns the string to be used as the thousand seperator for all numeric values
e.g the comma character "1,000,000"
 boolean getThreed()
          Returns the current state of the 3D flag.
 java.awt.Color getTitlecolor()
          Specifies the color to used for the main chart title
 java.awt.Font getTitlefont()
          Returns the font used for the main chart title
 java.awt.Point getTitleposition()
          Returns the position of the main chart title
 java.lang.String getTitletext()
          Returns the text used for the main chart title
 int getVspace()
          Returns the vertical spacing (number of pixels) between the grid rows
 java.awt.Font getXlabel_font()
          Returns Font used for the X axis labels.
 Xlabelobject getXlabelobj()
          Returns the X-Axis Labels object currently set for the chart
The X-Axis Labels object contains all the labels to written along the x-axis
 java.awt.Color getXtitlecolor()
          Specifies the color to used for the x-axis title
 java.awt.Font getXtitlefont()
          Returns the font used for the x-axis title
 java.awt.Point getXtitleposition()
          Returns the position of the x-axis title
 java.lang.String getXtitletext()
          Returns the text used for the x-axis title
 java.awt.Color getY2label_color()
          Returns Color used for the 2nd Y-axis labels.
 java.lang.String getY2label_post()
          Returns the string to be added at the end of the 2nd y-axis values
eg.
 java.lang.String getY2label_pre()
          Returns the string to be added at the front of the 2nd y-axis values
eg.
 java.awt.Font getYlabel_font()
          Returns Font used for the Y axis labels.
 java.lang.String getYlabel_post()
          Returns the string to be added at the end of the y-axis values
eg.
 java.lang.String getYlabel_pre()
          Returns the string to be added at the front of the y-axis values
eg.
 boolean getYlabels()
          Returns the current state of the Y Labels flag.
 java.awt.Color getYtitlecolor()
          Specifies the color to used for the y-axis title
 java.awt.Font getYtitlefont()
          Returns the font used for the y-axis title
 java.awt.Point getYtitleposition()
          Returns the position of the y-axis title
 java.lang.String getYtitletext()
          Returns the text used for the y-axis title
 void setAutoscale(boolean flag)
          Specifies whether the chart should automatically calculate the scale.
 void setAxis(boolean flag)
          Specifies whether the chart should be drawn with or without axis
 void setAxiscolor(java.awt.Color color)
          Specifies the Color for the Axis lines
 void setBackgroundcolor(java.awt.Color color)
          Specifies the Color for the background of the whole chart area
 void setBar_spacing(int intnumber)
          Specifies the gap in pixels between bars

 void setBaroutlinecolor(java.awt.Color color)
          Specifies the Color for outlining the bars
 void setBarwidth(int intnumber)
          Specifies the width of each bar (in pixels)
 void setChartscale(double dblnumber)
          Specifies the chart scale.
This figure is the value represented by each row of the grid.

 void setChartscale2(double dblnumber)
          Specifies the 2nd chart scale (right hand scale).
This figure is the value represented by each row of the grid.

 void setChartstarty(double dblnumber)
          Specifies the starting value of Y-axis.
 void setChartstarty2(double dblnumber)
          Specifies the starting value of 2nd Y-axis (right hand scale).
 void setData(java.util.Vector vector)
          Sets the data vector to be used by the chart
The data vector contains all the data to be plotted by the chart

Each element in the vector should be a
Graphdata object.

 void setDataobj(Dataobject data_object)
          Sets the data object to be used by the chart
The data object contains all the data to be plotted by the chart
 void setDepth3d(int intnumber)
          Specifies the depth (in pixels) of the 3D effect
 void setFloorcolor(java.awt.Color color)
          Specifies the Color for the x-axis grid floor when in 3D mode.
 void setGradientfill(boolean flag)
          Specifies whether the bars should be should be shaded with a graduation of the color specified.
 void setGrid(boolean flag)
          Specifies whether the chart should be drawn with or without a grid
 void setGridbgcolor(java.awt.Color color)
          Specifies the color to used for the background of the grid
 void setGridbgimage(java.awt.Image image)
          Specifies the image to used for the background of the grid
 void setGridcolor(java.awt.Color color)
          Specifies the Color for the grid lines
 void setGridposition(java.awt.Point point)
          Specifies the position of the bottom left of the grid
 void setGridStyle(java.lang.String text)
          Specifies the line style of the grid line drawing
The String value should be one of the following:-

Solid
Dotted
Dashed
Solid
Long Dashed

 void setImageobj(Imageobject image_obj)
          Sets the free form images object to be used by the chart
The free form images object contains all the custom images to be added to the chart
 void setLabelcolor(java.awt.Color color)
          Specifies the Color for the x-axis labels
 void setLabelorientation(java.lang.String orient)
          Specifies the orientation of the x-axis labels.
The String value should be one of the following:-

Horizontal
Vertical
Up Angle
Down Angle

 void setLabelsy_offset(int intnumber)
          Specifies the offset value of every second x-axis label.

This is particularly useful when the label orientation is set to Horizontal.
 void setLabelsy(int intnumber)
          Specifies the y co-ordinate of the x-axis labels.
 void setLegend(boolean flag)
          Specifies whether the Legend should be automatically generated
 void setLegendbackground(java.awt.Color color)
          Specifies the Color for the background of the legend
 void setLegendborder(java.awt.Color color)
          Specifies the Color for the legend border
 void setLegendfont(java.awt.Font font)
          Specifies the font used for the legend
 void setLegendposition(java.awt.Point point)
          Specifies the position of the top left of the legend
 void setLegendtextcolor(java.awt.Color color)
          Specifies the Color for the legend text
 void setLegendtitle(java.lang.String string)
          Specifies the text used for the legend title
 void setNcols(int intnumber)
          Specifies the number of columns of the chart area
 void setNdecplaces(int intnumber)
          Specifies the number of decimal places which will be displayed for numeric values on the chart area.
This property effects the numeric display format for the y-axis values and
the pop-up bar values.
 void setNrows(int intnumber)
          Specifies the number of rows of the chart area
 void setNseries(int intnumber)
          Specifies the Number of Series property This property refers to the nunber od distinct series within the data or to put it another way the number of bars within a column.
 void setOutline(boolean flag)
          Specifies whether the bars should be outlined
 void setPopup_post(java.lang.String string)
          Specifies the string to be added at the end of the pop-up value
 void setPopup_pre(java.lang.String string)
          Specifies the string to be added at the front of the pop-up value
 void setPopupbgcolor(java.awt.Color color)
          Specifies the Color for the popup value display
 void setPopupcursor(java.lang.String cursor)
          Specifies the cursor to be used for links
The String value can be one of the following:-
('Hand' would be the normal choice)

Hand
Crosshair
Default
Hand
Text
North Resize
North East Resize
East Resize
South East Resize
South Resize
South West Resize
West Resize
North West Resize

 void setPopupfont(java.awt.Font font)
          Specifies the Font for the PopUp value display.
 void setSeriesinfo(java.util.Vector vector)
          Sets the series information for the chart
The series data contains information about each series
of data that the chart is to plot.
For each series of data the following properties can be set:-

- Series Color
- Legend Label
- Scale (left or right hand y-axis)

 void setSeriesobj(Seriesobject ser_obj)
          Sets the series object for the chart
The series object contains information about each series
of data that the chart is to plot.
For each series of data the following properties can be set:-

- Series Color
- Legend Label
- Scale (left or right hand y-axis)

 void setTargetobj(Targetobject target_obj)
          Sets the Target Lines object to be used by the chart
The Target Lines object contains all the target line information to be drawn on the chart
 void setTextobj(Textobject text_obj)
          Sets the free form text object to be used by the chart
The free form text object contains all the custom text to be added to the chart
 void setThousandseparator(java.lang.String string)
          Specifies the string to be used as the thousand seperator for all numeric values
 void setThreed(boolean flag)
          Specifies whether the chart should be drawn in 2D or 3D mode.
 void setTitlecolor(java.awt.Color color)
          Specifies the color to used for the main chart title
 void setTitlefont(java.awt.Font font)
          Specifies the font used for the main chart title
 void setTitleposition(java.awt.Point point)
          Specifies the position of the main chart title
 void setTitletext(java.lang.String string)
          Specifies the text used for the main chart title
 void setVspace(int intnumber)
          Specifies the vertical spacing (number of pixels) between the grid rows
 void setXlabel_font(java.awt.Font font)
          Specifies the Font for the x-axis labels
 void setXlabelobj(Xlabelobject xlabel_obj)
          Sets the X-Axis Labels object to be used by the chart
The X-Axis Labels object contains all the labels to written along the x-axis
 void setXtitlecolor(java.awt.Color color)
          Specifies the color to used for the x-axis title
 void setXtitlefont(java.awt.Font font)
          Specifies the font used for the x-axis title
 void setXtitleposition(java.awt.Point point)
          Specifies the position of the x-axis title
 void setXtitletext(java.lang.String string)
          Specifies the text used for the x-axis title
 void setY2label_color(java.awt.Color color)
          Specifies the Color for the 2nd Y-axis labels
 void setY2label_post(java.lang.String string)
          Specifies the string to be added at the end of the 2nd y-axis values
 void setY2label_pre(java.lang.String string)
          Specifies the string to be added at the front of the 2nd y-axis values
 void setYlabel_font(java.awt.Font font)
          Specifies the Font for the y-axis labels
 void setYlabel_post(java.lang.String string)
          Specifies the string to be added at the end of the y-axis values
 void setYlabel_pre(java.lang.String string)
          Specifies the string to be added at the front of the y-axis values
 void setYlabels(boolean flag)
          Specifies whether the chart should be drawn with or without Y Axis Labels
 void setYtitlecolor(java.awt.Color color)
          Specifies the color to used for the y-axis title
 void setYtitlefont(java.awt.Font font)
          Specifies the font used for the y-axis title
 void setYtitleposition(java.awt.Point point)
          Specifies the position of the y-axis title
 void setYtitletext(java.lang.String string)
          Specifies the text used for the y-axis title
 
Methods inherited from class java.awt.Canvas
addNotify, getAccessibleContext, paint
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 

Constructor Detail

VerticalBarGraph

public VerticalBarGraph()
Creates a new instance of the Vertical Bar Graph Bean
Method Detail

getThreed

public boolean getThreed()
Returns the current state of the 3D flag. If true then the chart will be drawn in 3D mode If false then the chart will be drawn in 2D mode
Returns:
flag boolean indicating true (3D) or false (2D).

setThreed

public void setThreed(boolean flag)
Specifies whether the chart should be drawn in 2D or 3D mode.
Parameters:
flag - boolean indicating true or false.

getGrid

public boolean getGrid()
Returns the current state of the Grid flag. If true then the chart will be drawn with a grid If false then the chart will be drawn without a grid
Returns:
flag boolean indicating true or false

setGrid

public void setGrid(boolean flag)
Specifies whether the chart should be drawn with or without a grid
Parameters:
flag - boolean indicating true or false.

getAxis

public boolean getAxis()
Returns the current state of the Axis flag. If true then the chart will be drawn with axis If false then the chart will be drawn without axis
Returns:
flag boolean indicating true or false

setAxis

public void setAxis(boolean flag)
Specifies whether the chart should be drawn with or without axis
Parameters:
flag - boolean indicating true or false.

getYlabels

public boolean getYlabels()
Returns the current state of the Y Labels flag. If true then the chart will be drawn with Y Axis Labels If false then the chart will be drawn without Y Axis Labels
Returns:
flag boolean indicating true or false

setYlabels

public void setYlabels(boolean flag)
Specifies whether the chart should be drawn with or without Y Axis Labels
Parameters:
flag - boolean indicating true or false.

getOutline

public boolean getOutline()
Returns the current state of the Bar Outline flag. If true then the bars will be outlined If false then the will not be outlined
Returns:
flag boolean indicating true or false

setOutline

public void setOutline(boolean flag)
Specifies whether the bars should be outlined
Parameters:
flag - boolean indicating true or false.

getLegend

public boolean getLegend()
Returns the current state of the Legend flag. If true then the legend will automatically be generated If false then the will not legend will not be generated
Returns:
flag boolean indicating true or false

setLegend

public void setLegend(boolean flag)
Specifies whether the Legend should be automatically generated
Parameters:
flag - boolean indicating true or false.

getAutoscale

public boolean getAutoscale()
Returns the current state of the AutoScale flag. If true then the y axis scale will be automatically calculated from the range of data If false then the scale will be fixed as specified by Chart Scale properties
Returns:
flag boolean indicating true or false
See Also:
setChartscale(double dblnumber), setChartstarty(double dblnumber)

setAutoscale

public void setAutoscale(boolean flag)
Specifies whether the chart should automatically calculate the scale. If true then the y axis scale will be automatically calculated from the range of data If false then the scale will be fixed as specified by Chart Scale properties
Parameters:
flag - boolean indicating true or false.
See Also:
setChartscale(double dblnumber), setChartstarty(double dblnumber)

getGradientfill

public boolean getGradientfill()
Returns the current state of the Gradient Fill flag. If true then the bars will be shaded with a graduation of the color specified
Returns:
flag boolean indicating true or false

setGradientfill

public void setGradientfill(boolean flag)
Specifies whether the bars should be should be shaded with a graduation of the color specified.
Parameters:
flag - boolean indicating true or false.

getNrows

public int getNrows()
Returns the number of rows of the chart area
Returns:
nrows int specifying the number of rows of the chart grid

setNrows

public void setNrows(int intnumber)
Specifies the number of rows of the chart area
Parameters:
intnumber - int specifying the number of rows of the chart grid

getNcols

public int getNcols()
Returns the number of columns of the chart area
Returns:
ncols int specifying the number of columns of the chart grid

setNcols

public void setNcols(int intnumber)
Specifies the number of columns of the chart area
Parameters:
intnumber - int specifying the number of columns of the chart grid

getVspace

public int getVspace()
Returns the vertical spacing (number of pixels) between the grid rows
Returns:
vspace int specifying the number of pixels between each grid row

setVspace

public void setVspace(int intnumber)
Specifies the vertical spacing (number of pixels) between the grid rows
Parameters:
intnumber - int specifying the number of pixels between each grid row

getNseries

public int getNseries()
Returns the Number of Series property
This property refers to the nunber od distinct series within the data or to put it another way the number of bars within a column.
Returns:
nseries int specifying the number series of data

setNseries

public void setNseries(int intnumber)
Specifies the Number of Series property This property refers to the nunber od distinct series within the data or to put it another way the number of bars within a column.
Parameters:
intnumber - int specifying the specifying the number series of data

getBarwidth

public int getBarwidth()
Returns the width (in pixels) of each bar
Returns:
barwidth int specifying the width in pixels of each bar

setBarwidth

public void setBarwidth(int intnumber)
Specifies the width of each bar (in pixels)
Parameters:
intnumber - int specifying the width in pixels of each bar

getDepth3d

public int getDepth3d()
Returns the depth (in pixels) of the 3D effect
Returns:
depth3d int specifying the width in pixels of each bar

setDepth3d

public void setDepth3d(int intnumber)
Specifies the depth (in pixels) of the 3D effect
Parameters:
intnumber - int specifying the width in pixels of each bar

getNdecplaces

public int getNdecplaces()
Returns the number of decimal places which will be displayed for numeric values on the chart area.
This property effects the numeric display format for the y-axis values and
the pop-up bar values.
Returns:
ndecplaces int specifying the number of decimal places to display for numberic values.

setNdecplaces

public void setNdecplaces(int intnumber)
Specifies the number of decimal places which will be displayed for numeric values on the chart area.
This property effects the numeric display format for the y-axis values and
the pop-up bar values.
Parameters:
intnumber - int specifying the number of decimal places to display for numberic values.

getLabelorientation

public java.lang.String getLabelorientation()
Returns a Value indicating the orientation of the x-axis labels.
The returned value will be one of the following:-

Horizontal
Vertical
Up Angle
Down Angle

Returns:
orient java.lang.String specifying the orientation of the x-axis labels.

setLabelorientation

public void setLabelorientation(java.lang.String orient)
Specifies the orientation of the x-axis labels.
The String value should be one of the following:-

Horizontal
Vertical
Up Angle
Down Angle

Parameters:
orient - java.lang.String specifying the orientation of the x-axis labels.

getLabelsy

public int getLabelsy()
Returns an integer Value indicating the y co-ordinate of the x-axis labels.
Returns:
labelsy int specifying the y co-ordinate of the x-axis labels.

setLabelsy

public void setLabelsy(int intnumber)
Specifies the y co-ordinate of the x-axis labels.
Parameters:
intnumber - int specifying the y co-ordinate of the x-axis labels.

getLabelsy_offset

public int getLabelsy_offset()
Returns an integer Value indicating the offset value of every second x-axis label.
Returns:
labelsy_offset int specifying the offset value of every second x-axis label.

setLabelsy_offset

public void setLabelsy_offset(int intnumber)
Specifies the offset value of every second x-axis label.

This is particularly useful when the label orientation is set to Horizontal.
Parameters:
intnumber - int specifying the offset value of every second x-axis label.

getBar_spacing

public int getBar_spacing()
Returns an integer Value indicating the gap in pixels between bars
Returns:
bar_spacing int specifying the gap in pixels between bars.

setBar_spacing

public void setBar_spacing(int intnumber)
Specifies the gap in pixels between bars

Parameters:
intnumber - int specifying the gap in pixels between bars

getGridStyle

public java.lang.String getGridStyle()
Returns a Value indicating the line style of the grid line drawing
The returned value will be one of the following:-

Solid
Dotted
Dashed
Solid
Long Dashed

Returns:
style java.lang.String specifying the line style of the grid line drawing.

setGridStyle

public void setGridStyle(java.lang.String text)
Specifies the line style of the grid line drawing
The String value should be one of the following:-

Solid
Dotted
Dashed
Solid
Long Dashed

Parameters:
text - java.lang.String specifying the line style of the grid line drawing.

getChartscale

public double getChartscale()
Returns an double Value indicating the chart scale.
This figure is the value represented by each row of the grid.
Returns:
chartscale java.lang.double specifying the chart scale.

setChartscale

public void setChartscale(double dblnumber)
Specifies the chart scale.
This figure is the value represented by each row of the grid.

Parameters:
dblnumber - java.lang.double specifying the chart scale.

getChartstarty

public double getChartstarty()
Returns an double Value indicating the starting value of Y-axis.
Returns:
chartstarty java.lang.double specifying the starting value of Y-axis.

setChartstarty

public void setChartstarty(double dblnumber)
Specifies the starting value of Y-axis.
Parameters:
dblnumber - java.lang.double specifying the starting value of Y-axis..

getChartscale2

public double getChartscale2()
Returns an double Value indicating the 2nd chart scale (right hand scale).
This figure is the value represented by each row of the grid.
Returns:
chartscale2 java.lang.double specifying the 2nd chart scale.

setChartscale2

public void setChartscale2(double dblnumber)
Specifies the 2nd chart scale (right hand scale).
This figure is the value represented by each row of the grid.

Parameters:
dblnumber - java.lang.double specifying the 2nd chart scale.

getChartstarty2

public double getChartstarty2()
Returns an double Value indicating the starting value of 2nd Y-axis (right hand scale).
Returns:
chartstarty2 java.lang.double specifying the starting value of 2nd Y-axis (right hand scale).

setChartstarty2

public void setChartstarty2(double dblnumber)
Specifies the starting value of 2nd Y-axis (right hand scale).
Parameters:
dblnumber - java.lang.double specifying the starting value of 2nd Y-axis (right hand scale).

getXlabel_font

public java.awt.Font getXlabel_font()
Returns Font used for the X axis labels.
Returns:
xlabel_font java.awt.Font

setXlabel_font

public void setXlabel_font(java.awt.Font font)
Specifies the Font for the x-axis labels
Parameters:
font - java.awt.Font

getYlabel_font

public java.awt.Font getYlabel_font()
Returns Font used for the Y axis labels.
Returns:
ylabel_font Font

setYlabel_font

public void setYlabel_font(java.awt.Font font)
Specifies the Font for the y-axis labels
Parameters:
font - java.awt.Font

getPopupfont

public java.awt.Font getPopupfont()
Returns Font used for the PopUp value display.
Returns:
popupfont java.awt.Font

setPopupfont

public void setPopupfont(java.awt.Font font)
Specifies the Font for the PopUp value display.
Parameters:
font - java.awt.Font

getGridcolor

public java.awt.Color getGridcolor()
Returns Color used for the grid lines.
Returns:
gridcolor java.awt.Color

setGridcolor

public void setGridcolor(java.awt.Color color)
Specifies the Color for the grid lines
Parameters:
color - java.awt.Color

getAxiscolor

public java.awt.Color getAxiscolor()
Returns Color used for the Axis lines.
Returns:
axiscolor java.awt.Color

setAxiscolor

public void setAxiscolor(java.awt.Color color)
Specifies the Color for the Axis lines
Parameters:
color - java.awt.Color

getFloorcolor

public java.awt.Color getFloorcolor()
Returns Color used for the x-axis grid floor when in 3D mode.
Returns:
floorcolor java.awt.Color

setFloorcolor

public void setFloorcolor(java.awt.Color color)
Specifies the Color for the x-axis grid floor when in 3D mode.
Parameters:
color - java.awt.Color

getBaroutlinecolor

public java.awt.Color getBaroutlinecolor()
Returns Color used for outlining the bars.
Returns:
baroutlinecolor java.awt.Color

setBaroutlinecolor

public void setBaroutlinecolor(java.awt.Color color)
Specifies the Color for outlining the bars
Parameters:
color - java.awt.Color

getLabelcolor

public java.awt.Color getLabelcolor()
Returns Color used for the x-axis labels.
Returns:
labelcolor java.awt.Color

setLabelcolor

public void setLabelcolor(java.awt.Color color)
Specifies the Color for the x-axis labels
Parameters:
color - java.awt.Color

getBackgroundcolor

public java.awt.Color getBackgroundcolor()
Returns Color used for the background of the whole chart area.
Returns:
backgroundcolor java.awt.Color

setBackgroundcolor

public void setBackgroundcolor(java.awt.Color color)
Specifies the Color for the background of the whole chart area
Parameters:
color - java.awt.Color

getLegendbackground

public java.awt.Color getLegendbackground()
Returns Color used for the background of the legend.
Returns:
legendbackground Color

setLegendbackground

public void setLegendbackground(java.awt.Color color)
Specifies the Color for the background of the legend
Parameters:
color - java.awt.Color

getLegendborder

public java.awt.Color getLegendborder()
Returns Color used for the legend border.
Returns:
legendborder java.awt.Color

setLegendborder

public void setLegendborder(java.awt.Color color)
Specifies the Color for the legend border
Parameters:
color - java.awt.Color

getLegendtextcolor

public java.awt.Color getLegendtextcolor()
Returns Color used for the legend text.
Returns:
legendtextcolor java.awt.Color

setLegendtextcolor

public void setLegendtextcolor(java.awt.Color color)
Specifies the Color for the legend text
Parameters:
color - java.awt.Color

getPopupbgcolor

public java.awt.Color getPopupbgcolor()
Returns Color used for the background of the popup value display.
Returns:
popupbgcolor java.awt.Color

setPopupbgcolor

public void setPopupbgcolor(java.awt.Color color)
Specifies the Color for the popup value display
Parameters:
color - java.awt.Color

getY2label_color

public java.awt.Color getY2label_color()
Returns Color used for the 2nd Y-axis labels.
Returns:
y2label_color java.awt.Color

setY2label_color

public void setY2label_color(java.awt.Color color)
Specifies the Color for the 2nd Y-axis labels
Parameters:
color - java.awt.Color

getPopup_pre

public java.lang.String getPopup_pre()
Returns the string to be added at the front of the pop-up value
eg. a currency symbol
Returns:
popup_pre java.lang.String

setPopup_pre

public void setPopup_pre(java.lang.String string)
Specifies the string to be added at the front of the pop-up value
Parameters:
string - java.lang.String

getPopup_post

public java.lang.String getPopup_post()
Returns the string to be added at the end of the pop-up value
eg. a measurement symbol "Kg"
Returns:
popup_post java.lang.String

setPopup_post

public void setPopup_post(java.lang.String string)
Specifies the string to be added at the end of the pop-up value
Parameters:
string - java.lang.String

getYlabel_pre

public java.lang.String getYlabel_pre()
Returns the string to be added at the front of the y-axis values
eg. a currency symbol
Returns:
ylabel_pre java.lang.String

setYlabel_pre

public void setYlabel_pre(java.lang.String string)
Specifies the string to be added at the front of the y-axis values
Parameters:
string - java.lang.String

getYlabel_post

public java.lang.String getYlabel_post()
Returns the string to be added at the end of the y-axis values
eg. a measurement symbol "Kg"
Returns:
ylabel_post java.lang.String

setYlabel_post

public void setYlabel_post(java.lang.String string)
Specifies the string to be added at the end of the y-axis values
Parameters:
string - java.lang.String

getY2label_pre

public java.lang.String getY2label_pre()
Returns the string to be added at the front of the 2nd y-axis values
eg. a currency symbol
Returns:
y2label_pre java.lang.String

setY2label_pre

public void setY2label_pre(java.lang.String string)
Specifies the string to be added at the front of the 2nd y-axis values
Parameters:
string - java.lang.String

getY2label_post

public java.lang.String getY2label_post()
Returns the string to be added at the end of the 2nd y-axis values
eg. a measurement symbol "Kg"
Returns:
y2label_post java.lang.String

setY2label_post

public void setY2label_post(java.lang.String string)
Specifies the string to be added at the end of the 2nd y-axis values
Parameters:
string - java.lang.String

getThousandseparator

public java.lang.String getThousandseparator()
Returns the string to be used as the thousand seperator for all numeric values
e.g the comma character "1,000,000"
Returns:
thousandseparator java.lang.String

setThousandseparator

public void setThousandseparator(java.lang.String string)
Specifies the string to be used as the thousand seperator for all numeric values
Parameters:
string - java.lang.String

getGridbgimage

public java.awt.Image getGridbgimage()
Returns the image to used for the background of the grid
Returns:
gridbgimage java.awt.Image

setGridbgimage

public void setGridbgimage(java.awt.Image image)
Specifies the image to used for the background of the grid
Parameters:
image - java.awt.Image

getGridbgcolor

public java.awt.Color getGridbgcolor()
Returns the color to used for the background of the grid
Returns:
gridbgcolor java.awt.Color

setGridbgcolor

public void setGridbgcolor(java.awt.Color color)
Specifies the color to used for the background of the grid
Parameters:
color - java.awt.Color

getGridposition

public java.awt.Point getGridposition()
Returns the position of the bottom left of the grid
Returns:
gridposition java.awt.Point

setGridposition

public void setGridposition(java.awt.Point point)
Specifies the position of the bottom left of the grid
Parameters:
point - java.awt.Point

getLegendtitle

public java.lang.String getLegendtitle()
Returns the text used for the legend title
Returns:
legendtitle java.lang.String

setLegendtitle

public void setLegendtitle(java.lang.String string)
Specifies the text used for the legend title
Parameters:
string - java.lang.String

getLegendposition

public java.awt.Point getLegendposition()
Returns the position of the top left of the legend
Returns:
legendposition java.awt.Point

setLegendposition

public void setLegendposition(java.awt.Point point)
Specifies the position of the top left of the legend
Parameters:
point - java.awt.Point

getLegendfont

public java.awt.Font getLegendfont()
Returns the font used for the legend
Returns:
legendfont java.awt.Font

setLegendfont

public void setLegendfont(java.awt.Font font)
Specifies the font used for the legend
Parameters:
font - java.awt.Font

getTitletext

public java.lang.String getTitletext()
Returns the text used for the main chart title
Returns:
titletext java.lang.String

setTitletext

public void setTitletext(java.lang.String string)
Specifies the text used for the main chart title
Parameters:
string - java.lang.String

getTitlefont

public java.awt.Font getTitlefont()
Returns the font used for the main chart title
Returns:
titlefont java.awt.Font

setTitlefont

public void setTitlefont(java.awt.Font font)
Specifies the font used for the main chart title
Parameters:
font - java.awt.Font

getTitlecolor

public java.awt.Color getTitlecolor()
Specifies the color to used for the main chart title
Parameters:
titlecolor - java.awt.Color

setTitlecolor

public void setTitlecolor(java.awt.Color color)
Specifies the color to used for the main chart title
Parameters:
color - java.awt.Color

getTitleposition

public java.awt.Point getTitleposition()
Returns the position of the main chart title
Returns:
titleposition java.awt.Point

setTitleposition

public void setTitleposition(java.awt.Point point)
Specifies the position of the main chart title
Parameters:
point - java.awt.Point

getXtitletext

public java.lang.String getXtitletext()
Returns the text used for the x-axis title
Returns:
xtitletext java.lang.String

setXtitletext

public void setXtitletext(java.lang.String string)
Specifies the text used for the x-axis title
Parameters:
string - java.lang.String

getXtitlefont

public java.awt.Font getXtitlefont()
Returns the font used for the x-axis title
Returns:
xtitlefont java.awt.Font

setXtitlefont

public void setXtitlefont(java.awt.Font font)
Specifies the font used for the x-axis title
Parameters:
font - java.awt.Font

getXtitlecolor

public java.awt.Color getXtitlecolor()
Specifies the color to used for the x-axis title
Parameters:
xtitlecolor - java.awt.Color

setXtitlecolor

public void setXtitlecolor(java.awt.Color color)
Specifies the color to used for the x-axis title
Parameters:
color - java.awt.Color

getXtitleposition

public java.awt.Point getXtitleposition()
Returns the position of the x-axis title
Returns:
xtitleposition java.awt.Point

setXtitleposition

public void setXtitleposition(java.awt.Point point)
Specifies the position of the x-axis title
Parameters:
point - java.awt.Point

getYtitletext

public java.lang.String getYtitletext()
Returns the text used for the y-axis title
Returns:
ytitletext java.lang.String

setYtitletext

public void setYtitletext(java.lang.String string)
Specifies the text used for the y-axis title
Parameters:
string - java.lang.String

getYtitlefont

public java.awt.Font getYtitlefont()
Returns the font used for the y-axis title
Returns:
ytitlefont java.awt.Font

setYtitlefont

public void setYtitlefont(java.awt.Font font)
Specifies the font used for the y-axis title
Parameters:
font - java.awt.Font

getYtitlecolor

public java.awt.Color getYtitlecolor()
Specifies the color to used for the y-axis title
Parameters:
ytitlecolor - java.awt.Color

setYtitlecolor

public void setYtitlecolor(java.awt.Color color)
Specifies the color to used for the y-axis title
Parameters:
color - java.awt.Color

getYtitleposition

public java.awt.Point getYtitleposition()
Returns the position of the y-axis title
Returns:
ytitleposition java.awt.Point

setYtitleposition

public void setYtitleposition(java.awt.Point point)
Specifies the position of the y-axis title
Parameters:
point - java.awt.Point

getPopupcursor

public java.lang.String getPopupcursor()
Returns a string indicating the type of cursor used for links
The returned string will be one of the following:-

Hand
Crosshair
Default
Hand
Text
North Resize
North East Resize
East Resize
South East Resize
South Resize
South West Resize
West Resize
North West Resize

Returns:
popupcursor java.lang.String

setPopupcursor

public void setPopupcursor(java.lang.String cursor)
Specifies the cursor to be used for links
The String value can be one of the following:-
('Hand' would be the normal choice)

Hand
Crosshair
Default
Hand
Text
North Resize
North East Resize
East Resize
South East Resize
South Resize
South West Resize
West Resize
North West Resize

Parameters:
cursor - java.lang.String

getSeriesobj

public Seriesobject getSeriesobj()
Returns the series object currently set for the chart
The series object contains information about each series
of data that the chart is to plot.
For each series of data the following properties can be set:-

- Series Color
- Legend Label
- Scale (left or right hand y-axis)

Returns:
seriesobj com.jpowered.vbgraph.Seriesobject
See Also:
Seriesobject

setSeriesobj

public void setSeriesobj(Seriesobject ser_obj)
Sets the series object for the chart
The series object contains information about each series
of data that the chart is to plot.
For each series of data the following properties can be set:-

- Series Color
- Legend Label
- Scale (left or right hand y-axis)

Parameters:
seriesobj - com.jpowered.vbgraph.Seriesobject
See Also:
Seriesobject

getSeriesinfo

public java.util.Vector getSeriesinfo()
Returns the series information in java.util.Vector form
The series data contains information about each series
of data that the chart is to plot.
For each series of data the following properties can be set:-

- Series Color
- Legend Label
- Scale (left or right hand y-axis)

Returns:
seriesinfo java.util.Vector
See Also:
Seriesdata

setSeriesinfo

public void setSeriesinfo(java.util.Vector vector)
Sets the series information for the chart
The series data contains information about each series
of data that the chart is to plot.
For each series of data the following properties can be set:-

- Series Color
- Legend Label
- Scale (left or right hand y-axis)

Parameters:
vector - java.util.Vector
See Also:
Seriesdata

getDataobj

public Dataobject getDataobj()
Returns the data object currently set for the chart
The data object contains all the data to be plotted by the chart
Returns:
dataobj com.jpowered.vbgraph.Dataobject
See Also:
Dataobject

setDataobj

public void setDataobj(Dataobject data_object)
Sets the data object to be used by the chart
The data object contains all the data to be plotted by the chart
Parameters:
dataobj - com.jpowered.vbgraph.Dataobject
See Also:
Dataobject

getData

public java.util.Vector getData()
Returns the data vector currently set for the chart
The data vector contains all the data to be plotted by the chart

Each element in the vector is a
Graphdata object.

Returns:
data com.jpowered.vbgraph.Graphdata
See Also:
Graphdata

setData

public void setData(java.util.Vector vector)
Sets the data vector to be used by the chart
The data vector contains all the data to be plotted by the chart

Each element in the vector should be a
Graphdata object.

Parameters:
vector - com.jpowered.vbgraph.Graphdata
See Also:
Graphdata

getTextobj

public Textobject getTextobj()
Returns the free form text object currently set for the chart
The free form text object contains all the custom text to be added to the chart
Returns:
textobj com.jpowered.vbgraph.Textobject
See Also:
Textobject

setTextobj

public void setTextobj(Textobject text_obj)
Sets the free form text object to be used by the chart
The free form text object contains all the custom text to be added to the chart
Parameters:
textobj - com.jpowered.vbgraph.Textobject
See Also:
Textobject

getImageobj

public Imageobject getImageobj()
Returns the free form images object currently set for the chart
The free form images object contains all the custom images to be added to the chart
Returns:
imageobj com.jpowered.vbgraph.Imageobject
See Also:
Imageobject

setImageobj

public void setImageobj(Imageobject image_obj)
Sets the free form images object to be used by the chart
The free form images object contains all the custom images to be added to the chart
Parameters:
imageobj - com.jpowered.vbgraph.Imageobject
See Also:
Imageobject

getXlabelobj

public Xlabelobject getXlabelobj()
Returns the X-Axis Labels object currently set for the chart
The X-Axis Labels object contains all the labels to written along the x-axis
Returns:
xlabelobj com.jpowered.vbgraph.Xlabelobject
See Also:
Xlabelobject

setXlabelobj

public void setXlabelobj(Xlabelobject xlabel_obj)
Sets the X-Axis Labels object to be used by the chart
The X-Axis Labels object contains all the labels to written along the x-axis
Parameters:
xlabelobj - com.jpowered.vbgraph.Xlabelobject
See Also:
Xlabelobject

getTargetobj

public Targetobject getTargetobj()
Returns the Target Lines object currently set for the chart
The Target Lines object contains all the target line information to be drawn on the chart
Returns:
targetobj com.jpowered.vbgraph.Targetobject
See Also:
Targetobject

setTargetobj

public void setTargetobj(Targetobject target_obj)
Sets the Target Lines object to be used by the chart
The Target Lines object contains all the target line information to be drawn on the chart
Parameters:
targetobj - com.jpowered.vbgraph.Targetobject
See Also:
Targetobject

getGraphimage

public java.awt.Image getGraphimage()
This method request the chart to be produced as a java.awt.Image
This is method is particularly useful where the component is to be used
within JSP and Servlets.
Returns:
image java.awt.Image