|
Chart FX for Java 6.5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SoftwareFX.ChartFX.ChartCore SoftwareFX.ChartFX.Chart SoftwareFX.ChartFX.ChartServer
public final class ChartServer
Provides access to the Chart object under the application server context.
This class, which extends Chart
, is used to create charts in servlets and JSP pages. The servlet Context, Request and Response objects are necessary to properly interact with the application server.
For more details, see Chart
.
Field Summary |
---|
Fields inherited from class SoftwareFX.ChartFX.Chart |
---|
HIDDEN |
Constructor Summary | |
---|---|
ChartServer()
|
|
ChartServer(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
|
ChartServer(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Method Summary | |
---|---|
java.lang.String |
getHtmlTag(java.lang.Object objWidth,
java.lang.Object objHeight,
java.lang.String tag)
Allows Chart FX for Java Server to determine the browser posting the request and return the appropriate tag to the browser for displaying the chart. |
boolean |
isMemImage()
Gets the MemImage. |
void |
setMemImage(boolean memImage)
Get or Set a property to instruct Chart FX to generate the image in the server memory. |
void |
setWebContainer(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Sets the web environment to the ChartServer object. |
void |
setWebContainer(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Sets the web environment to the ChartServer object. |
Methods inherited from class SoftwareFX.ChartFX.Chart |
---|
dateToNumber, dateToNumber, getFont, getHeight, getHtmlData, getHtmlDataEx, getHtmlTag, getHtmlTag, getHtmlTag, getID, getImgHeight, getImgMap, getImgQuality, getImgTags, getImgWidth, getOutputWriter, getProxyUri, getURL, getURLOptions, getURLParamMask, getURLTarget, getWidth, isEmbeddedData, isImgSizeable, isMainClient, loadDefault, setConfigPath, setEmbeddedData, setFont, setHeight, setHtmlTag, setID, setImgHeight, setImgMap, setImgQuality, setImgSizeable, setImgTags, setImgWidth, setMainClient, setOutputWriter, setProxyUri, setURL, setURLOptions, setURLParamMask, setURLTarget, setWidth |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartServer()
public ChartServer(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public ChartServer(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Method Detail |
---|
public java.lang.String getHtmlTag(java.lang.Object objWidth, java.lang.Object objHeight, java.lang.String tag)
Allows Chart FX for Java Server to determine the browser posting the request and return the appropriate tag to the browser for displaying the chart.
This method overrides the Chart.getHtmlTag()
method. It is used only when MemImage = true.
getHtmlTag
in class Chart
objWidth
- Required. Specifies the suggested width of the chart. If the parameter is an integer the width will be measured in pixels. You can also specify a string containing a percentage sign (e.g. "45%") to use a percentage of the available space in the clients page (or frame).objHeight
- Required. Specifies the suggested height of the chart. If the parameter is an integer the height will be measured in pixels. You can also specify a string containing a percentage sign (e.g. "45%") to use a percentage of the available space in the clients page (or frame).tag
- Optional. Allows you to select the type of tag generated by ChartFX. The possible options are: ".NET", "ActiveX", "Image", "Jpeg", "Png", "SVG" or "Auto". In Automatic mode ChartFX will use the HTTP_USER_AGENT variable to determine the appropriate tag compatible with the browser being used by the user. If no value is specified, the default setting is Auto.Chart.getHtmlTag()
,
getHtmlTag(java.lang.Object, java.lang.Object, java.lang.String)
,
Chart
public boolean isMemImage()
Gets the MemImage. For more detail see setMemImage(boolean)
.
public void setMemImage(boolean memImage)
Get or Set a property to instruct Chart FX to generate the image in the server memory.
When set to true, Chart FX will generate the chart image in the server memory, and it will store it in a session variable.
public void setWebContainer(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Sets the web environment to the ChartServer object.
This method is used to load the web application PageContext, Request and Response to the ChartServer object, when the empty constructor is used.
context
- The PageContex or ServletContext object.request
- The HTTP request object.response
- The HTTP response object.public void setWebContainer(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Sets the web environment to the ChartServer object.
This method is used to load the web application PageContext, Request and Response to the ChartServer object, when the empty constructor is used.
context
- The PageContex or ServletContext object.request
- The HTTP request object.response
- The HTTP response object.
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |