You can add functionality to a Dataview
toolbar by adding tools to it. Each
tool that you add must implement the oracle.dss.dataView.DataviewTool
interface.
For example, in a graph toolbar, you might create a line color tool, which changes the color
of a graph component that implements the oracle.dss.graph.Line
interface. The line
color tool must implement the DataviewTool
interface.
To add the new tool to the toolbar, you call the add method of the toolbar, as shown in the following line of code. This code assumes a graph toolbar that is named toolbar, as shown in Incorporating a Toolbar in a Java-Client Dataview.
Component lineColorTool = new LineColorTool(); toolbar.add(lineColorTool);