ChartDirector 6.1 (Java Edition)

BaseChart.setSearchPath4


Usage

public void setSearchPath4(URL path)

Description

Search for image files using a URL as the base path.

Please refer to BaseChart.setSearchPath for the various methods ChartDirector uses to search for images.

With setSearchPath4, ChartDirector will use the given URL as the base path to load images. This is commonly used in applet applications, in which the applet is running in client machines, but the images are located on server machines.

For example, the following code uses the document base of the applet as the base path for loading images.

c.setSearchPath(getDocumentBase());

Note that in using setSearchPath4, the image path is assumed to be a URL, and the base path is used to resolve the parts of the URL not specified in the image path. This is similar to the paths used in <IMG> tags in web pages.

Arguments

ArgumentDefaultDescription
path(Mandatory)An URL acting as the base path for loading images.

Return Value

None