DePrecated Java Methods
Table 4.2 Deprecated Java Methods
Deprecated Method 4.0 Equivalent
retrieveImageServerSide(String) loadServerSideImage(String)
saveImageAsLocally(String, String) saveImageToAppServer(String, String)
saveImageAsServerSide(String) saveImageToPopChartServer(String)
serverInfoAppendSlash(boolean) appendServerInfoSlash
setAppearanceFile appearanceFile
setBGColorStr bgColor
setCacheImage(boolean) useCache
setExtraHTMLAttributes(String) extraHTMLAttributes
setExtraPCISCommands(String) extraPCSCommands
setHeight(int) height
setHTMLHeight(String) htmlHeight
setHTMLWidth(String) htmlWidth
setReturnTextDescription(String) returnDescriptiveLink = true; language = PopChartEmbedder.EN;1
setOutputToGIF() imageType = "GIF";
setOutputToFLASH() imageType = "FLASH";
setOutputToFLASHWithFallback(boolean) imageType = "FLASH"; fallback = { "STRICT"|"LOOSE" }2
setOutputToPNG() imageType = "PNG";
setOutputToSVG() imageType = "SVG";
setOutputToSVGWithFallback(boolean) imageType = "FLASH"; fallback = { "STRICT"|"LOOSE" }3
setOutputToWBMP() imageType = "WBMP";
setPCScript(String) pcScript
setReturningGraphicalLog(String) useLogData = true; password = "password";
setServerInfo(String) externalServerAddress = "www.myserver.com:2001"; internalCommPortAddress = "10.0.0.1:2002";4
setUseCommPortAlways() Obsolete (Comm Port always used)
setUseCommPortIfOverLength(int) makeFullRequest = true;5 maxRequestLen = int;
setUseCommPortNever() makeFullRequest = true;6
setUseLoadBalancing(boolean) Obsolete (use Clustering instead)
setUserAgent(String) userAgent
setUseSVGTemplate(String) svgTemplate
setWidth(int) width

1

You may not need to set the language attribute if you have already specified a default language. PopChart Embedder will assume a default language of EN (English).

2

Whether you use "STRICT" or "LOOSE" depends on the fallback type.

3

Whether you use "STRICT" or "LOOSE" depends on the fallback type.

4

For a better understanding of how this method translates, you should examine the description of the new attributes.

5

The PopChart Embedder must still use the COM port to generate the embedding HTML, however it will embed a full URL request instead of an embedder session ID.

6

The PopChart Embedder must still use the COM port to generate the embedding HTML, however it will embed a full URL request instead of an embedder session ID.

Deprecated COM Methods & Attributes
Table 4.3 Deprecated COMObject Methods & Attributes
Deprecated Method 4.0 Equivalent
AlwaysUseCommPort Obsolete (Comm Port always used)
AppearanceFile appearanceFile
BGColorString bgColor
CacheImage useCache
GetEmbeddingHTML() getEmbeddingHTML()
Height height
ImageData getImageData()
NeverUseCommPort makeFullRequest = true;1
RetrieveImageServerSide(String) loadServerSideImage(String)
SaveImageAsLocally(String, String) saveImageToAppServer(String, String)
SaveImageAsServerSide(String) saveImageToPopChartServer(String)
ServerInfoAppendSlash(boolean) appendServerInfoSlash
SetExtraHTMLAttributes(String) extraHTMLAttributes
SetExtraPCISCommands(String) extraPCSCommands
SetReturnTextDescription(String) returnDescriptiveLink = true language = "EN";2
SetOutputToGIF() imageType = "GIF"
SetOutputToFLASH() imageType = "FLASH"
SetOutputToFLASHWithFallback(boolean) imageType = "FLASH" fallback = { "STRICT" | "LOOSE" }3
SetOutputToPNG() imageType = "PNG";
SetOutputToSVG() imageType = "SVG"
SetOutputToSVGWithFallback(boolean) imageType = "FLASH"; fallback = { "STRICT" | "LOOSE" }4
SetOutputToWBMP() imageType = "WBMP"
SetReturningGraphicalLog(String) useLogData = true password = "password"
SetServerInfo(String) externalServerAddress = "www.myserver.com:2001" internalCommPortAddress = "10.0.0.1:2002";5
SetUseCommPortIfOverLength(int) makeFullRequest = true;6 maxRequestLen = int;
SetUserAgent(String) userAgent
SetUseSVGTemplateFile(String) svgTemplate
UseLoadBalancing Obsolete (use Clustering instead)
Width width

1

The PopChart Embedder must still use the COM port to generate the embedding HTML, however it will embed a full URL request instead of an embedder session ID.

2

You may not need to set the language attribute if you have already specified a default language. PopChart Embedder will assume a default language of EN (English).

3

Whether you use "STRICT" or "LOOSE" depends on the fallback type.

4

Whether you use "STRICT" or "LOOSE" depends on the fallback type.

5

For a better understanding of how this method translates, you should examine the description of the new attributes.

6

The PopChart Embedder must still use the COM port to generate the embedding HTML, however it will embed a full URL request instead of an embedder session ID.