Chart FX for Java 6.2

SoftwareFX.ChartFX
Class ChartServer

java.lang.Object
  extended bySoftwareFX.ChartFX.Chart
      extended bySoftwareFX.ChartFX.ChartServer

public final class ChartServer
extends Chart

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.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()
          Get or Set a property to instruct Chart FX to generate the image in the server memory.
 void setMemImage(boolean memImage)
          Get or Set a property to instruct Chart FX to generate the image in the server memory.
 
Methods inherited from class SoftwareFX.ChartFX.Chart
clearData, closeData, dateToNumber, dateToNumber, exportChart, exportChart, getAngleX, getAngleY, getAxesStyle, getAxis, getAxis, getAxisX, getAxisY, getAxisY2, getBackColor, getBackgroundImage, getBackObject, getBorderColor, getBorderEffect, getBorderObject, getBottomGap, getChartStyle, getCommand, getCommands, getConditionalAttribute, getConditionalAttributes, getConstantLine, getConstantLines, getCulture, getCylSides, getDataEditorObj, getDataSource, getDataSourceSettings, getDataStyle, getDataType, getDataType, getExtension, getExtensions, getFileMask, getFont, getGallery, getGalleryObj, getGaps, getGrid, getHeight, getHighlight, getHtmlData, getHtmlDataEx, getHtmlTag, getHtmlTag, getHtmlTag, getID, getImageMode, getImgHeight, getImgMap, getImgQuality, getImgTags, getImgWidth, getInfoString, getIniValue, getIniValue, getInsideBackObject, getInsideColor, getKeyLeg, getKeyLeg, getLeftGap, getLegend, getLegend, getLegendBoxObj, getLineStyle, getLineWidth, getLink, getMarkerShape, getMarkerSize, getMarkerStep, getMenuBarObj, getMenuBarObj, getMessageText, getNSeries, getNValues, getOutputWriter, getPageColor, getPalette, getPane, getPanes, getPersonalizedFlags, getPersonalizedName, getPerspective, getPoint, getPoint, getPoint, getPointFont, getPointLabelAlign, getPointLabelAngle, getPointLabelColor, getPointLabelFont, getPointLabelMask, getPointLabelOffset, getPrinter, getProxyUri, getRightGap, getScheme, getSeries, getSeries, getSerKey, getSerKey, getSerLeg, getSerLeg, getSerLegBoxObj, getSmoothFlags, getStacked, getStripe, getStripes, getStyleEx, getTemplateMask, getTipMask, getTitle, getTitles, getToolBarObj, getToolBarObj, getTopGap, getTypeEx, getTypeMask, getURL, getURLOptions, getURLParamMask, getURLTarget, getUserLegendBoxObj, getValue, getValue, getView3DDepth, getView3DLight, getVolume, getWallWidth, getWidth, getXValue, getXValue, getYLeg, getYLeg, importChart, importChart, isAllowDrag, isAllowEdit, isBorder, isChart3D, isCluster, isContextMenus, isCrossHairs, isDataEditor, isDirty, isEmbeddedData, isImgSizeable, isLegendBox, isMainClient, isMenuBar, isMultipleColors, isPointLabels, isScrollable, isSerLegBox, isShowTips, isToolBar, isUserLegendBox, isView3D, isZoom, loadDefault, markerToPixel, openData, paint, recalcScale, setAllowDrag, setAllowEdit, setAngleX, setAngleY, setAxesStyle, setBackColor, setBackgroundImage, setBackObject, setBorder, setBorderColor, setBorderEffect, setBorderObject, setBottomGap, setChart3D, setChartStyle, setCluster, setConfigPath, setContextMenus, setCrossHairs, setCulture, setCylSides, setDataEditor, setDataSource, setDataStyle, setDataType, setDirty, setEmbeddedData, setFileMask, setFont, setGallery, setGalleryObj, setGaps, setGrid, setHeight, setHtmlTag, setID, setImageMode, setImgHeight, setImgMap, setImgQuality, setImgSizeable, setImgTags, setImgWidth, setIniValue, setInsideBackObject, setInsideColor, setKeyLeg, setLeftGap, setLegend, setLegendBox, setLineStyle, setLineWidth, setMainClient, setMarkerShape, setMarkerSize, setMarkerStep, setMenuBar, setMenuBarObj, setMessageText, setMultipleColors, setNSeries, setNValues, setOutputWriter, setPageColor, setPalette, setPersonalizedFlags, setPersonalizedName, setPerspective, setPoint, setPoint, setPointFont, setPointLabelAlign, setPointLabelAngle, setPointLabelColor, setPointLabelFont, setPointLabelMask, setPointLabelOffset, setPointLabels, setProxyUri, setRightGap, setScheme, setScrollable, setSerKey, setSerLeg, setSerLegBox, setShowTips, setSmoothFlags, setStacked, setStyleEx, setTemplateMask, setTipMask, setToolBar, setToolBarObj, setTopGap, setTypeEx, setTypeMask, setURL, setURLOptions, setURLParamMask, setURLTarget, setUserLegendBox, setValue, setView3D, setView3DDepth, setView3DLight, setVolume, setWallWidth, setWidth, setXValue, setYLeg, setZoom
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartServer

public ChartServer()

ChartServer

public ChartServer(javax.servlet.ServletContext context,
                   javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
Method Detail

getHtmlTag

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.

Remarks:
  • This method overrides the Chart.getHtmlTag() method. It is used only when MemImage = true.

  • Overrides:
    getHtmlTag in class Chart
    Parameters:
    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.In the COM version, the "ActiveX" option is also available.
    See Also:
    Chart.getHtmlTag(), getHtmlTag(java.lang.Object, java.lang.Object, java.lang.String), Chart

    isMemImage

    public boolean isMemImage()

    Get or Set a property to instruct Chart FX to generate the image in the server memory.

    Remarks:
  • When set to true, Chart FX will generate the chart image in the server memory, and it will store it in a session variable.


  • setMemImage

    public void setMemImage(boolean memImage)

    Get or Set a property to instruct Chart FX to generate the image in the server memory.

    Remarks:
  • When set to true, Chart FX will generate the chart image in the server memory, and it will store it in a session variable.


  • http://www.softwarefx.com

    2005 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
    All other names are trademarks or registered trademarks of their respective owners.