|
|||||||||
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.
A util class for display chart in web page.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static int |
DEFAULT_IMAGE_HEIGHT
The default image height. |
static ImageType |
DEFAULT_IMAGE_TYPE
The image type. |
static int |
DEFAULT_IMAGE_WIDTH
The default image width. |
static java.lang.String |
PARAM_CHART_ID
The prefix of chart id. |
static java.lang.String |
PARAM_CHART_IMAGE_HEIGHT
The height parameter of image. |
static java.lang.String |
PARAM_CHART_IMAGE_TYPE
The type parameter of image. |
static java.lang.String |
PARAM_CHART_IMAGE_WIDTH
The width parameter of image. |
Constructor Summary | |
---|---|
WebChart(javax.servlet.http.HttpServletRequest request,
IJChart chart)
The constructor. |
|
WebChart(javax.servlet.http.HttpServletRequest request,
IJChart chart,
int imageWidth,
int imageHeight)
The constructor. |
Method Summary | |
---|---|
void |
addHotspotShapeType(ChartShapeDrawType drawType)
Add a type of hotspot shape. |
void |
clearHotspotShapeType()
Clear the types of hotspot shape. |
IAreaFragment |
getAreaFragment()
Returns the IAreaFragment object. |
IJChart |
getChart()
Returns the IJChart object. |
long |
getCurrentChartId()
Returns the current chart id. |
java.lang.String |
getDisplayServletPath()
Returns the path of DisplayChartServlet. |
java.util.Collection |
getHotspotShapeType()
Returns the types of hotspot shape. |
java.lang.String |
getImageAreas()
Returns the hotspot areas. |
int |
getImageHeight()
Returns the image height. |
ImageType |
getImageType()
Returns the image type. |
int |
getImageWidth()
Returns the image width. |
java.lang.String |
getImgTagSrcValue()
Returns the src value of the |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the HttpServletRequest object. |
void |
setAreaFragment(IAreaFragment areaFragment)
Sets the IAreaFragment object. |
void |
setChart(IJChart chart)
Sets the IJChart object. |
void |
setDisplayServletPath(java.lang.String servletPath)
Sets the path of DisplayChartServlet. |
void |
setImageHeight(int imageHeight)
Sets the image height. |
void |
setImageType(ImageType imageType)
Sets the image type. |
void |
setImageWidth(int imageWidth)
Sets the image width. |
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
The HttpServletRequest object (null not permitted).chart
- IJChart
The IJChart object (null not permitted).public WebChart(javax.servlet.http.HttpServletRequest request, IJChart chart, int imageWidth, int imageHeight)
request
- HttpServletRequest
The HttpServletRequest object (null not permitted).chart
- IJChart
The IJChart object (null not permitted).imageWidth
- int
The image width.imageHeight
- int
The image height.Method Detail |
---|
public IJChart getChart()
public void setChart(IJChart chart)
chart
- IJChart
The IJChart object (null not permitted).public javax.servlet.http.HttpServletRequest getRequest()
public int getImageWidth()
public void setImageWidth(int imageWidth)
imageWidth
- int
The image width.public int getImageHeight()
public void setImageHeight(int imageHeight)
imageHeight
- int
The image height.public ImageType getImageType()
public void setImageType(ImageType imageType)
imageType
- ImageType
The image type (null not permitted).public java.lang.String getDisplayServletPath()
public long getCurrentChartId()
public void setDisplayServletPath(java.lang.String servletPath)
servletPath
- String
The path of DisplayChartServlet (null permitted).public IAreaFragment getAreaFragment()
public void setAreaFragment(IAreaFragment areaFragment)
areaFragment
- IAreaFragment
The IAreaFragment object (null not permitted).public java.lang.String getImgTagSrcValue()
public void addHotspotShapeType(ChartShapeDrawType drawType)
drawType
- ChartShapeDrawType
The ChartShapeDrawType object (null not permitted).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 |