by.belsoft.report.tools.actions
Class ChartAction

java.lang.Object
  |
  +--by.belsoft.report.tools.actions.ContextData
        |
        +--by.belsoft.report.tools.actions.ChartAction

public class ChartAction
extends ContextData

Class that responds about all operaton with charts

Author:
Ilya Kirillov

Constructor Summary
ChartAction()
          Primary constructor
 
Method Summary
 void editChart(BaseElement chart)
          editChart allows to edit chart
 java.lang.String getChartname()
          gets chart name
 java.lang.String getCharttype()
          gets the chart type
 java.lang.String getDz()
          gets the number of signs after point
 java.lang.String getFieldid()
          gets the field id
 java.lang.String getHeight()
          sets the chart height
 java.lang.String getLname()
          gets leged name
 java.lang.String getMax()
          gets max value data to view on chart
 java.lang.String getMin()
          gets min value data to view on chart
 java.lang.String getPielabel()
          sets pie lebel
 java.lang.String getPielabelname()
          Gets the pie lebel name
 java.lang.String getPlacement()
          gets the legend placement
 java.lang.String getQueryid()
          gets the query id
 java.util.ArrayList getRadioFields()
          gets the array with radio fields representing query fields
 java.util.ArrayList getRadioQueries()
          gets the array of radio fields representing queries
 java.util.ArrayList getTables()
          gets tables
 java.lang.String getWidth()
          gets the chart width
 java.lang.String getXtitle()
          sets horizontal title
 java.lang.String getYtitle()
          sets vertical title
 void listenQuery(ValueChangeEvent vce)
          listenQuery listens query to view its fields
 void listenType(ValueChangeEvent vce)
          listenType listens which type of chart is chosen
 void pasteChart(ActionEvent ae)
          pasteChart pastes chart into element chosen
 void setChartname(java.lang.String chartname)
          sets chart name
 void setCharttype(java.lang.String charttype)
          sets the chart type
 void setDz(java.lang.String dz)
          sets the number of signs after point
 void setFieldid(java.lang.String fieldid)
          sets the field id
 void setHeadTables()
          setHeadTables sets tables for chart generation
 void setHeight(java.lang.String height)
          sets the chart height
 void setLname(java.lang.String lname)
          sets legend name
 void setMax(java.lang.String max)
          sets the max data value
 void setMin(java.lang.String min)
          sets min value data to view on chart
 void setPielabel(java.lang.String pielabel)
          sets the pie lebel
 void setPielabelname(java.lang.String pielabelname)
          Sets the pie lebel name
 void setPlacement(java.lang.String placement)
          sets the legend placement
 void setQueryid(java.lang.String queryid)
          Sets the query id
 void setRadioFields(java.util.ArrayList radioFields)
          sets the array of radio fields
 void setRadioFields(java.lang.String id)
          Sets radio fields by given id
 void setRadioQueries()
          Sets radio queries taken from tables
 void setRadioQueries(java.util.ArrayList radioQueries)
          sets the array to view as queries
 void setTables(java.util.ArrayList tables)
          sets tables
 void setWidth(java.lang.String width)
          sets he chart width
 void setXtitle(java.lang.String xtitle)
          sets horizontel title
 void setYtitle(java.lang.String ytitle)
          sets vertical title
 
Methods inherited from class by.belsoft.report.tools.actions.ContextData
getContext, getReportName, getRequest, getSession, setRefreshData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartAction

public ChartAction()
Primary constructor

Method Detail

setHeadTables

public void setHeadTables()
setHeadTables sets tables for chart generation


listenType

public void listenType(ValueChangeEvent vce)
listenType listens which type of chart is chosen

Parameters:
vce - ValueChangeEvent event on value change

listenQuery

public void listenQuery(ValueChangeEvent vce)
listenQuery listens query to view its fields

Parameters:
vce - ValueChangeEvent

pasteChart

public void pasteChart(ActionEvent ae)
pasteChart pastes chart into element chosen

Parameters:
ae - ActionEvent

editChart

public void editChart(BaseElement chart)
editChart allows to edit chart

Parameters:
chart - BaseElement represents chart to edit

getTables

public java.util.ArrayList getTables()
gets tables

Returns:
Returns the tables representing queries.

setTables

public void setTables(java.util.ArrayList tables)
sets tables

Parameters:
tables - tables The tables to set.

getRadioFields

public java.util.ArrayList getRadioFields()
gets the array with radio fields representing query fields

Returns:
Returns the radioFields - fields of query.

setRadioFields

public void setRadioFields(java.util.ArrayList radioFields)
sets the array of radio fields

Parameters:
radioFields - The radioFields to set.

getRadioQueries

public java.util.ArrayList getRadioQueries()
gets the array of radio fields representing queries

Returns:
Returns the radioQueries.

setRadioQueries

public void setRadioQueries(java.util.ArrayList radioQueries)
sets the array to view as queries

Parameters:
radioQueries - The radioQueries to set.

setRadioQueries

public void setRadioQueries()
Sets radio queries taken from tables


setRadioFields

public void setRadioFields(java.lang.String id)
Sets radio fields by given id

Parameters:
id - the query id

getDz

public java.lang.String getDz()
gets the number of signs after point

Returns:
Returns the dz number of signs after point.

setDz

public void setDz(java.lang.String dz)
sets the number of signs after point

Parameters:
dz - number of signs after point

getMax

public java.lang.String getMax()
gets max value data to view on chart

Returns:
Returns the max value of data.

setMax

public void setMax(java.lang.String max)
sets the max data value

Parameters:
max - value of data.

getMin

public java.lang.String getMin()
gets min value data to view on chart

Returns:
Returns the min data value.

setMin

public void setMin(java.lang.String min)
sets min value data to view on chart

Parameters:
min - The min to set.

getPlacement

public java.lang.String getPlacement()
gets the legend placement

Returns:
Returns the placement of legend.

setPlacement

public void setPlacement(java.lang.String placement)
sets the legend placement

Parameters:
placement - of legend.

getLname

public java.lang.String getLname()
gets leged name

Returns:
Returns the lname legend name.

setLname

public void setLname(java.lang.String lname)
sets legend name

Parameters:
lname - legend name.

getCharttype

public java.lang.String getCharttype()
gets the chart type

Returns:
Returns the charttype.

setCharttype

public void setCharttype(java.lang.String charttype)
sets the chart type

Parameters:
charttype - The chartname to set.

getXtitle

public java.lang.String getXtitle()
sets horizontal title

Returns:
Returns the xtitle horizontal title.

setXtitle

public void setXtitle(java.lang.String xtitle)
sets horizontel title

Parameters:
xtitle - horizontal title.

getYtitle

public java.lang.String getYtitle()
sets vertical title

Returns:
Returns the yttitle vertical title.

setYtitle

public void setYtitle(java.lang.String ytitle)
sets vertical title

Parameters:
ytitle - vertical title.

getPielabel

public java.lang.String getPielabel()
sets pie lebel

Returns:
Returns the pielabel.

setPielabel

public void setPielabel(java.lang.String pielabel)
sets the pie lebel

Parameters:
pielabel - The pielabel to set.

getChartname

public java.lang.String getChartname()
gets chart name

Returns:
Returns the chart name.

setChartname

public void setChartname(java.lang.String chartname)
sets chart name

Parameters:
chartname - The chart name to set.

getFieldid

public java.lang.String getFieldid()
gets the field id

Returns:
Returns the fieldid.

setFieldid

public void setFieldid(java.lang.String fieldid)
sets the field id

Parameters:
fieldid - The field id to set.

getQueryid

public java.lang.String getQueryid()
gets the query id

Returns:
Returns the query id.

setQueryid

public void setQueryid(java.lang.String queryid)
Sets the query id

Parameters:
queryid - The query id to set.

getPielabelname

public java.lang.String getPielabelname()
Gets the pie lebel name

Returns:
Returns the pielabelname.

setPielabelname

public void setPielabelname(java.lang.String pielabelname)
Sets the pie lebel name

Parameters:
pielabelname - The pie label name to set.

getHeight

public java.lang.String getHeight()
sets the chart height

Returns:
Returns the height.

setHeight

public void setHeight(java.lang.String height)
sets the chart height

Parameters:
height - The height to set.

getWidth

public java.lang.String getWidth()
gets the chart width

Returns:
Returns the width.

setWidth

public void setWidth(java.lang.String width)
sets he chart width

Parameters:
width - The width to set.


Copyright © 2005 BelSoft Inc. All Rights Reserved.