ChartDirector 7.0 (Java Edition)

BaseChart.setResource2


Usage

public void setResource2(String id, DrawArea img)

Description

Assigns a resource ID to a DrawArea object to allow it to be referenced using a resource path.

This method is the same BaseChart.setResource, except that it assigns the resource ID to a DrawArea object instead of a memory image. This allows the DrawArea object to be reference as an image resource using "@/res_id".

Arguments

ArgumentDefaultDescription
id(Mandatory)The resource ID to be used to reference the DrawArea object.
img(Mandatory)The DrawArea object to be used as a resource.

Return Value

None