|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.Chart
Title: Chart Graphics Business graphics are of great importance for the visualization of data and statistics. The Chart control provides an impressive list of the most common types of chart graphics, like pie, bar, area, columns and line graphs in various predefined designs. The actual design is determined by the property chartType. The Chart control is "data driven", i.e. it relies heavily on the concept of data binding. Thus, the most important property is dataSrc that must be assigned to a suitable external table. Suitable in this case means, that the table must specify at least the following columns (the labels in parentheses are the technical names of the columns). * Name of the data series (GROUPID). The Chart control is able to display multiple data sets at the same time, for example to allow the comparison of production statistics from different factories. Each data set must be identified with a unique name. * A column containing the x-values (X), also called "categories". * A column containing the y-values (Y). * A column containing optional z-values (Z). The Chart control is not able to visualize these values at the moment. You may leave this column empty. * An optional color (COLOR). By default, the Chart control visualizes the categories in different colors taken from a number of predefined color schemes. * An optional extension (EXTENSION). Any table containing the above mentioned columns is accepted as data source, even if the table also includes other columns as well. The scaling of the y-axis is determined by the properties axisMin and axisMax. The Chart control provides a title, a legend and labels for the two axis. Title and labels are specified by the properties title, titleCategories(x-axis) and titleValues(y-axis), respectively. A legend is created automatically from the names and colors of the corresponding data series. However, the position of the legend with respect to the graph may be set explicitly with the property legendPosition. The Chart control internally is based on a JAVA applet. Thus, the usual style sheet customizing used by the other HTMLB components is not applicable to the Chart. However, to allow a minimum of customization, the Chart control simulates at least a subset of CSS attributes, i.e. color and font attributes. Copyright (c) 2001, SAP AG
| Field Summary | |
static String |
PACKAGE_NAME
|
static String |
UI_ID
|
| Constructor Summary | |
Chart()
Creates a Chart |
|
| Method Summary | |
String |
getAltText()
Returns chart's altText |
double |
getAxisMaxVal()
|
double |
getAxisMinVal()
|
boolean |
getBusinessDigits()
show the thousand separators within long number values. |
String |
getChartLegendPositionString()
Get the enum string for the legend's position |
ChartType |
getChartType()
return the current chart type as enum |
String |
getChartTypeString()
Returns the current chart type |
String |
getColorOrderString()
|
int |
getFractionDigits()
get the number of fraction digits to be displayed at value output strings. |
String |
getHeight()
get the current pixel height of the applet on the web page |
IChartModel |
getModel()
Get the data model |
String |
getTitle()
Returns chart's title |
String |
getTitleCategories()
get the title text of the categoriy axis |
String |
getTitleValues()
get the title text of the value axis |
String |
getTooltip()
Returns chart's tooltip |
String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
double |
getVoidValue()
get the void value for the chart graphics. |
String |
getWidth()
get the current pixel width of the applet on the web page |
boolean |
isDisplayObjectValues()
query if object value display is switched on or not (value is being presented at each graphical object) |
boolean |
isVisible()
|
boolean |
isVoidValueSet()
use this routine to check if a void value was previously set to prevent painting of values. |
boolean |
requiresForm()
Chart is display only, thus we don't need a form. |
void |
setAltText(String altText)
Returns chart's alt text |
void |
setAxisMaxVal(double axisMaxVal)
set the maximum value of the axis |
void |
setAxisMinVal(double axisMinVal)
set the minimum value of the axis |
void |
setBusinessDigits(boolean newValue)
show the thousand separators within long number values. |
void |
setChartType(ChartType newType)
Sets new chart type |
void |
setColorOrder(ChartColorOrder newOrder)
Changes the used color order |
void |
setDisplayObjectValues(boolean displayObjectValues)
activate/deactive the display of each graphical object's value at it's graphical representation |
void |
setFractionDigits(int newValue)
set the number of fraction digits to be displayed at value output strings. |
void |
setHeight(String height)
set the height in pixels to be displayed in the web page |
void |
setLegendPosition(ChartLegendPosition newPosition)
Changes the legend's position within the chart output |
void |
setModel(IChartModel newModel)
Set the data model containing the chart data to render |
void |
setTitle(String title)
Returns chart's title |
void |
setTitleCategories(String titleCategories)
set the title text for the category axis |
void |
setTitleValues(String titleValues)
set the title text for the value axis |
void |
setTooltip(String tooltip)
Returns chart's tooltip |
void |
setVisible(boolean visible)
|
void |
setVoidValue(double voidValue)
set the void value for the chart graphics. |
void |
setVoidValueSet(boolean voidValueSet)
use this to switch off the painting of void values. |
void |
setWidth(String width)
set the width in pixels to be displayed in the web page |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromPageContext, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
public static final String PACKAGE_NAME
| Constructor Detail |
public Chart()
| Method Detail |
public boolean getBusinessDigits()
public void setBusinessDigits(boolean newValue)
newValue - true if show, false if not, default is false.public int getFractionDigits()
public void setFractionDigits(int newValue)
newValue - number of fraction digitspublic double getVoidValue()
public void setVoidValue(double voidValue)
voidValue - Specify the value to be treated as a void valuepublic boolean isVoidValueSet()
public void setVoidValueSet(boolean voidValueSet)
voidValueSet - Switch on the usage of the void value painting behavior.public boolean isDisplayObjectValues()
public void setDisplayObjectValues(boolean displayObjectValues)
public double getAxisMinVal()
public void setAxisMinVal(double axisMinVal)
axisMinVal - value of the minimum to be displayed in the graphicspublic double getAxisMaxVal()
public void setAxisMaxVal(double axisMaxVal)
axisMaxVal - value of the maximum to be displayed in the graphicspublic boolean isVisible()
public void setVisible(boolean visible)
public String getWidth()
public void setWidth(String width)
width - pixel width for the graphic's applet extension in the web pagepublic String getHeight()
public void setHeight(String height)
height - pixel height for the graphic's applet extension in the web pagepublic String getTitleCategories()
public void setTitleCategories(String titleCategories)
titleCategories - title text to be displayed on the category axispublic String getTitleValues()
public void setTitleValues(String titleValues)
titleValues - title text to be displayed on the value axispublic String getTitle()
public void setTitle(String title)
title - new title stringpublic String getTooltip()
public void setAltText(String altText)
public String getAltText()
public void setTooltip(String tooltip)
public void setChartType(ChartType newType)
newType - new chart type from ChartType enumerationpublic String getChartTypeString()
public ChartType getChartType()
public void setColorOrder(ChartColorOrder newOrder)
newOrder - set color order from ChartColorOrder enumpublic String getColorOrderString()
public void setLegendPosition(ChartLegendPosition newPosition)
newPosition - set the legend's position from ChartLegendPosition enumpublic String getChartLegendPositionString()
public void setModel(IChartModel newModel)
newModel - IChartModel class to contain the datapublic IChartModel getModel()
public String getUI()
Component
getUI in class Componentpublic boolean requiresForm()
requiresForm in class Component
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||