|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jdeveloper.html.WebBeanImpl | +--oracle.jdeveloper.html.DataWebBeanImpl | +--oracle.jbo.html.databeans.ChartRenderer
Chart web bean to render chart as GIF files.
This bean renders the view as a chart GIF image. It internally uses Perspective bean to render the data as GIF. This bean is made is exposed through getChart() method.
Usage :
<jsp:useBean class="oracle.jbo.html.databeans.ChartRenderer id="c" scope="request" > <% c.setReleaseApplicationResources(false); c.initialize(application,session, request,response,out,"package23_Package23Module.EmpView"); c.getChart().setTitleString("Leading company Corp."); c.getChart().setSubtitleString("Employee Sales-Commision chart"); c.getChart().setFootnoteString("Year-1999-2000"); c.setMappingColumnNames("Sal,Comm"); // draw these column's c.setSeriesLabelColumnName("Ename"); // use this column as series label c.setImageWidth(600); c.setImageHeight(600); c.execute(); %> </jsp:useBean> //ChartCommon.jsp
Perspective
Fields inherited from class oracle.jdeveloper.html.DataWebBeanImpl |
attributeRenderers,
bReleaseApplication,
dispAttrs,
isStateFull,
qView,
sApplication,
sRowSetName |
Fields inherited from class oracle.jdeveloper.html.WebBeanImpl |
application,
ctx,
out,
page,
request,
response,
session |
Constructor Summary | |
ChartRenderer()
Constructor |
Method Summary | |
void |
execute()
render chart. |
protected void |
execute(java.lang.Object o)
|
protected void |
generateImage(ChartRenderer c)
generate the GIF file and serve the image |
protected java.lang.String |
generateUniqueId()
generated an unique id to identify chart., used in the url parameter |
tdg.Perspective |
getChart()
get the Perspective bean which does the rendering. |
protected oracle.jbo.html.databeans.chart.RowOrderChartDataSource |
getChartDataSource()
get the chart data source |
java.lang.String |
getCommonScriptName()
|
java.util.Vector |
getDisplayAttributes()
get the current list of mapped columns |
java.lang.String |
getDisplayColumnIndices()
get list of column indices from the View object which is used to draw chart. |
int |
getImageHeight()
get the width of the chart image to be generated |
int |
getImageWidth()
get the width of the chart image to be generated |
java.lang.String |
getSeriesLabelColumnName()
get the name of the column in the view object which is currently used as series labels. |
void |
internalInitialize()
Internal initialize. |
protected void |
processElement(java.lang.String k,
java.lang.String val)
set property for a given name-value pair |
protected void |
processUrlProperties(java.util.Hashtable h)
For each property name-value pair speicifed in the URL, invoke the set method on the bean |
protected void |
readUrlProperties()
One or more property values for the ChartRenderer or the Perspective bean can be passed in the URL. |
protected void |
registerCleanup()
register HTTP Session binding listner to cleanup the chart objects generated in this session |
void |
render()
Generates a IMG tag pointing to the common JSP page to generate the chart. |
void |
setCommonScriptName(java.lang.String name)
Specify the JSP file which generates the chart. |
void |
setDisplayAttributes(java.lang.String s)
Specify mapping description using columnNames. |
void |
setDisplayColumnIndices(java.lang.String indices)
Specify mapping description using column indices. |
void |
setImageHeight(int height)
set the height of the chart image to be generated |
void |
setImageWidth(int width)
set the width of the chart to be generated. |
void |
setSeriesLabelColumnName(java.lang.String columnName)
Specify the name of the column in the ViewObject which should be used as series labels |
protected void |
unregisterCleanup()
unregister HTTP Session binding listner used to cleanup the chart objects generated in this session |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
|
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
|
Methods inherited from class oracle.jdeveloper.html.WebBeanImpl |
generateScriptSrc,
getCookie,
getOut,
getRenderingContext,
getRequest,
getRequestVariable,
getUniqueName,
initBeanForJS,
initialize,
initialize,
initialize,
render,
setRequestVariable |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int THREED_BARS
public static final int THREED_PYRAMIDS
public static final int THREED_OCTAGONS
public static final int THREED_FLOATING_CUBES
public static final int THREED_FLOATING_PYRAMIDS
public static final int THREED_FLOATING_CONNECTED_SERIES_AREA
public static final int THREED_FLOATING_CONNECTED_SERIES_RIBBON
public static final int THREED_FLOATING_CONNECTED_GROUP_AREA
public static final int THREED_FLOATING_CONNECTED_GROUP_RIBBON
public static final int THREED_SURFACE
public static final int THREED_SURFACE_WITH_SIDES
public static final int THREED_HONEYCOMB_SURFACE
public static final int VERTICAL_CLUSTERED_BARS
public static final int VERTICAL_STACKED_BARS
public static final int VERTICAL_DUAL_AXIS_CLUSTERED_BARS
public static final int VERTICAL_DUAL_AXIS_STACKED_BARS
public static final int VERTICAL_BI_POLAR_CLUSTERED_BARS
public static final int VERTICAL_BI_POLAR_STACKED_BARS
public static final int VERTICAL_PERCENT_BARS
public static final int HORIZONTAL_CLUSTERED_BARS
public static final int HORIZONTAL_STACKED_BARS
public static final int HORIZONTAL_DUAL_AXIS_CLUSTERED_BARS
public static final int HORIZONTAL_DUAL_AXIS_STACKED_BARS
public static final int HORIZONTAL_BI_POLAR_CLUSTERED_BARS
public static final int HORIZONTAL_BI_POLAR_STACKED_BARS
public static final int HORIZONTAL_PERCENT_BARS
public static final int VERTICAL_ABSOLUTE_AREA
public static final int VERTICAL_STACKED_AREA
public static final int VERTICAL_BI_POLAR_ABSOLUTE_AREA
public static final int VERTICAL_BI_POLAR_STACKED_AREA
public static final int VERTICAL_PERCENT_AREA
public static final int HORIZONTAL_ABSOLUTE_AREA
public static final int HORIZONTAL_STACKED_AREA
public static final int HORIZONTAL_BI_POLAR_ABSOLUTE_AREA
public static final int HORIZONTAL_BI_POLAR_STACKED_AREA
public static final int HORIZONTAL_PERCENT_AREA
public static final int VERTICAL_ABSOLUTE_LINE
public static final int VERTICAL_STACKED_LINE
public static final int VERTICAL_DUAL_AXIS_ABSOLUTE_LINE
public static final int VERTICAL_DUAL_AXIS_STACKED_LINE
public static final int VERTICAL_BI_POLAR_ABSOLUTE_LINE
public static final int VERTICAL_BI_POLAR_STACKED_LINE
public static final int VERTICAL_PERCENT_LINE
public static final int HORIZONTAL_ABSOLUTE_LINE
public static final int HORIZONTAL_STACKED_LINE
public static final int HORIZONTAL_DUAL_AXIS_ABSOLUTE_LINE
public static final int HORIZONTAL_DUAL_AXIS_STACKED_LINE
public static final int HORIZONTAL_BI_POLAR_ABSOLUTE_LINE
public static final int HORIZONTAL_BI_POLAR_STACKED_LINE
public static final int HORIZONTAL_PERCENT_LINE
public static final int PIE
public static final int RING_PIE
public static final int MULTI_PIE
public static final int MULTI_RING_PIE
public static final int MULTI_PROPORTIONAL_PIE
public static final int MULTI_PROPORTIONAL_RING_PIE
public static final int PIE_BAR_CHART
public static final int RING_PIE_BAR_CHART
public static final int XY_SCATTER
public static final int XY_SCATTER_DUAL_AXIS
public static final int XY_SCATTER_WITH_LABELS
public static final int XY_SCATTER_WITH_LABELS_DUAL_AXIS
public static final int POLAR
public static final int POLAR_DUAL_AXIS
public static final int RADAR_LINE
public static final int RADAR_AREA
public static final int RADAR_LINE_DUAL_AXIS
public static final int OPEN_HI_LO_CLOSE_CANDLE_STOCK_CHART
public static final int OPEN_HI_LO_CLOSE_CANDLE_STOCK_CHART_VOLUME
public static final int CANDLE_STOCK_HI_LO_OPEN_CLOSE
public static final int STOCK_HI_LO
public static final int STOCK_HI_LO_DUAL_AXIS
public static final int STOCK_HI_LO_BI_POLAR
public static final int STOCK_HI_LO_CLOSE
public static final int STOCK_HI_LO_CLOSE_DUAL_AXIS
public static final int STOCK_HI_LO_OPEN_CLOSE
public static final int STOCK_HI_LO_OPEN_CLOSE_DUAL_AXIS
public static final int STOCK_HI_LO_OPEN_CLOSE_BI_POLAR
public static final int STOCK_HI_LO_VOLUME
public static final int STOCK_HI_LO_OPEN_CLOSE_VOLUME
public static final int CANDLE_STOCK_HI_LO_OPEN_CLOSE_VOLUME
public static final int VERTICAL_HISTOGRAM
public static final int HORIZONTAL_HISTOGRAM
public static final int SPECTRAL_MAP
public static final int BUBBLE_CHART
public static final int BUBBLE_CHART_LABELS
public static final int BUBBLE_CHART_DUAL_AXIS
public static final int BUBBLE_CHART_LABELS_DUAL_AXIS
protected static boolean cleanupRegistered
protected static java.lang.String prefixString
protected static final java.lang.String ID
public static final java.lang.String VIEWNAME
protected java.lang.String commonScriptName
Constructor Detail |
public ChartRenderer()
Method Detail |
public void internalInitialize() throws java.lang.Exception
public void setDisplayAttributes(java.lang.String s)
s
- List of column names in the underlying View object
The resultant data source will have as column 0,
column values from the view object whose column name is
columnNames[0] and so on.
A Comma seperated list should be provided
(ex) "comm,deptno,sales"setDisplayColumnIndices()
public java.util.Vector getDisplayAttributes()
public void setDisplayColumnIndices(java.lang.String indices)
indices
- List of column indices in the underlying View object
The resultant data source will have as column 0,
column values from the view object whose column index is
indices[0] and so on.public java.lang.String getDisplayColumnIndices()
public void setSeriesLabelColumnName(java.lang.String columnName)
name
- of the column in the viewobject whose values should be
used as series labels.public java.lang.String getSeriesLabelColumnName()
public void render()
execute()
public void execute()
protected void execute(java.lang.Object o)
public void setImageWidth(int width)
width
- of the chart to be generatedpublic int getImageWidth()
public void setImageHeight(int height)
height
- Height of the chart image generatedpublic int getImageHeight()
public tdg.Perspective getChart()
public void setCommonScriptName(java.lang.String name)
public java.lang.String getCommonScriptName()
protected void readUrlProperties()
protected void processUrlProperties(java.util.Hashtable h)
protected void processElement(java.lang.String k, java.lang.String val)
protected void generateImage(ChartRenderer c)
protected oracle.jbo.html.databeans.chart.RowOrderChartDataSource getChartDataSource()
protected void registerCleanup()
protected void unregisterCleanup()
protected java.lang.String generateUniqueId()
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |