|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.web.WebChart
public class WebChart
Title: IJChart
Description: a chart library for the Java(tm) platform.
用于在web页面上显示chart对象的工具类.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static int |
DEFAULT_IMAGE_HEIGHT
缺省的图片的高度. |
static ImageType |
DEFAULT_IMAGE_TYPE
图片的类型. |
static int |
DEFAULT_IMAGE_WIDTH
缺省的图片的宽度. |
static java.lang.String |
PARAM_CHART_ID
chart id 的前缀. |
static java.lang.String |
PARAM_CHART_IMAGE_HEIGHT
图片的高度参数. |
static java.lang.String |
PARAM_CHART_IMAGE_TYPE
图片的类型参数. |
static java.lang.String |
PARAM_CHART_IMAGE_WIDTH
图片的宽度参数. |
Constructor Summary | |
---|---|
WebChart(javax.servlet.http.HttpServletRequest request,
IJChart chart)
构造器. |
|
WebChart(javax.servlet.http.HttpServletRequest request,
IJChart chart,
int imageWidth,
int imageHeight)
构造器. |
Method Summary | |
---|---|
void |
addHotspotShapeType(ChartShapeDrawType drawType)
增加一个显示热点的图形类型. |
void |
clearHotspotShapeType()
清除所有的显示热点的图形类型. |
IAreaFragment |
getAreaFragment()
返回IAreaFragment对象. |
IJChart |
getChart()
返回IJChart对象. |
long |
getCurrentChartId()
返回当前的chart id. |
java.lang.String |
getDisplayServletPath()
返回DisplayChartServlet的路径. |
java.util.Collection |
getHotspotShapeType()
返回显示热点的图形类型. |
java.lang.String |
getImageAreas()
返回图形的热点Area. |
int |
getImageHeight()
返回图片的高度. |
ImageType |
getImageType()
返回图片的类型. |
int |
getImageWidth()
返回图片的宽度. |
java.lang.String |
getImgTagSrcValue()
返回 |
javax.servlet.http.HttpServletRequest |
getRequest()
返回HttpServletRequest对象. |
void |
setAreaFragment(IAreaFragment areaFragment)
设置IAreaFragment对象. |
void |
setChart(IJChart chart)
设置IJChart对象. |
void |
setDisplayServletPath(java.lang.String servletPath)
设置DisplayChartServlet的路径. |
void |
setImageHeight(int imageHeight)
设置图片的高度. |
void |
setImageType(ImageType imageType)
设置图片的类型. |
void |
setImageWidth(int imageWidth)
设置图片的宽度. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAM_CHART_ID
public static final java.lang.String PARAM_CHART_IMAGE_WIDTH
public static final java.lang.String PARAM_CHART_IMAGE_HEIGHT
public static final java.lang.String PARAM_CHART_IMAGE_TYPE
public static final int DEFAULT_IMAGE_WIDTH
public static final int DEFAULT_IMAGE_HEIGHT
public static final ImageType DEFAULT_IMAGE_TYPE
Constructor Detail |
---|
public WebChart(javax.servlet.http.HttpServletRequest request, IJChart chart)
request
- HttpServletRequest HttpServletRequest对象 (不可为null).
chart
- IJChart IJChart对象 (不可为null).
public WebChart(javax.servlet.http.HttpServletRequest request, IJChart chart, int imageWidth, int imageHeight)
request
- HttpServletRequest HttpServletRequest对象 (不可为null).
chart
- IJChart IJChart对象 (不可为null).
imageWidth
- int 图片的宽度.
imageHeight
- int 图片的高度.
Method Detail |
---|
public IJChart getChart()
public void setChart(IJChart chart)
chart
- IJChart IJChart对象 (不可为null).
public javax.servlet.http.HttpServletRequest getRequest()
public int getImageWidth()
public void setImageWidth(int imageWidth)
imageWidth
- int 图片的宽度.
public int getImageHeight()
public void setImageHeight(int imageHeight)
imageHeight
- int 图片的高度.
public ImageType getImageType()
public void setImageType(ImageType imageType)
imageType
- ImageType 图片的类型 (不可为null).
public java.lang.String getDisplayServletPath()
public long getCurrentChartId()
public void setDisplayServletPath(java.lang.String servletPath)
servletPath
- String DisplayChartServlet的路径 (可为null).
public IAreaFragment getAreaFragment()
public void setAreaFragment(IAreaFragment areaFragment)
areaFragment
- IAreaFragment IAreaFragment对象 (不可为null).
public java.lang.String getImgTagSrcValue()
public void addHotspotShapeType(ChartShapeDrawType drawType)
drawType
- ChartShapeDrawType ChartShapeDrawType对象 (不可为null).
public void clearHotspotShapeType()
public java.util.Collection getHotspotShapeType()
public java.lang.String getImageAreas()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |