|
JMSLTM Numerical Library 4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.chart.JspBean
JspBean is used to refer to charts in a Java Server Page that are later rendered using the ChartServlet.
ChartServlet
,
Chart Programmer's Guide: Servlets,
Serialized FormField Summary | |
static long |
serialVersionUID
|
Constructor Summary | |
JspBean()
Creates a JspBean object. |
Method Summary | |
String |
getChartServletName()
Returns the URL of the servlet used to render the chart. |
boolean |
getCreateImageMap()
Returns true if a client-side imagemap is to be created. |
String |
getId()
Returns the identifier number for the chart. |
String |
getImageMap()
Returns an HTML for the client-side imagemap. |
String |
getImageTag()
Returns an HTML image tag. |
String |
getMapName()
Returns the name of the client-size imagemap. |
Dimension |
getSize()
Returns the size of the generated image. |
void |
registerChart(Chart chart,
javax.servlet.http.HttpServletRequest request)
Saves the chart and sets the chart attribute "Size". |
protected void |
saveChart(Chart chart,
javax.servlet.http.HttpServletRequest request)
Saves the chart so that a servlet can later render it. |
void |
setChartServletName(String chartServletName)
Sets the URL of the servlet used to render the chart. |
void |
setCreateImageMap(boolean createImageMap)
Sets a flag indicating if a client-size imagemap is to be generated. |
void |
setSize(Dimension size)
Sets the size of the generated image. |
void |
setSize(int width,
int height)
Sets the size of the generated image. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long serialVersionUID
Constructor Detail |
public JspBean()
Method Detail |
public String getChartServletName()
public boolean getCreateImageMap()
public String getId()
public String getImageMap()
public String getImageTag()
public String getMapName()
public Dimension getSize()
public void registerChart(Chart chart, javax.servlet.http.HttpServletRequest request)
/servlet/com.imsl.chart.ChartServlet
",
where "ContextPath is the context path in the request.
chart
- is the chart to be registered.
The Dimension
-value attribute "Size" is set in the
root node of the chart tree. The Size attribute is used by
ChartServlet
.request
- from the Java Server Page.protected void saveChart(Chart chart, javax.servlet.http.HttpServletRequest request)
chart
NNN",
where NNN is the value of the id
property.
This method can be overridden to change the mechanism by which the
bean and the servlet correspond.
chart
- is the chart to be registered.request
- from the Java Server Page. The chart is saved in its
session object.public void setChartServletName(String chartServletName)
chartServletName
- is the location of the chart servlet to
be used in the generated image tag.public void setCreateImageMap(boolean createImageMap)
HREF
is defined.
The values of HREF
attributes are URLs. Such regions are
treated by the browser as hyperlinks.
createImageMap
- is true if a client-side image map is
to be generated.ChartNode.setHREF(String)
public void setSize(Dimension size)
new Dimension(300,300)
.
size
- is the size of the generated image.public void setSize(int width, int height)
new Dimension(300,300)
.
width
- is the width of the generated image.height
- is the height of the generated image.
|
JMSLTM Numerical Library 4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |