registerMarkerTemplate()

This method is used to register a user-defined marker.

Syntax:

int registerMarkerTemplate (java.awt.Polygon newPolygon);

int registerMarkerTemplate(tdg.MarkerTemplate MarkerTemplate newTemplate)

Input:

newPolygon: as a standard Java Polygon. The polygon must fit in the rectangle: -900, -900, 1800, 1800 (i.e., the rectangle that goes from -900 to 900 in the X- and Y-directions). These are Perspective virtual coordinates.

Input:

newTemplate: not currently used

Return:

int: the new marker shape number that can be used assign the marker shape in the chart with setMarkerShape().

Also See:

getNextMarkerTemplateSlot(), setMarkerTemplate()

reloadOriginalData()

This method is called when the "original data" should be reloaded, either because it has changed, or the user wants to back out a tweak or optimization.

Syntax:

void reloadOriginalData();

Input:

None

Return:

void;

Also See:

optimizeData()

removePerspectiveListener()

This method removes a Perspective Listener. In the Java environment, a listener is an object that has defined the listener interface for a specific event (in this case, a Perspective event such as the user interface to the chart). See the perspectiveEvent() method later in this chapter for a list of events that are currently provided by Perspective to the listener interface. Also see Chapter 3 for an overview of how events are handled in the Perspective environment.

Syntax:

void removePerspectiveListener (TDGListener);

Input:

TDGListener: a listener object that has defined the listener interface

Return:

None

Also See:

addPerspectiveListener(), perspectiveEvent()

restoreAllSlices()

This method restores all deleted or detached slices to a pie chart.

Syntax:

void restoreAllSlices ( );

Input:

None

Return:

None

Example:

perspective1.setPieSliceDelete(
    perspective1.getSeries(3),true);
perspective1.setPieSliceDelete(
    perspective1.getSeriesGroup(3,0),true);
perspective1.setPieSliceDelete(
    perspective1.getSeries(0),false);
perspective1.setPieSliceDelete(
    perspective1.getSeriesGroup(0,0),false);
perspective1.setPieSliceDetach(
    perspective1.getSeries(0),100);
perspective1.setPieSliceDetach(
    perspective1.getSeriesGroup(0,0),100);

perspective1.restoreAllSlices();

Also See:

getPieSliceDelete(), setPieSliceDelete(), getPieSliceDetach(), setPieSliceDetach()

restoreDefaults()

This method can be used to restore a chart to Perspective default values. It restores the default chart type (17, a vertical side-by-side bar graph) and the sample data associated with this chart type.

Syntax:

void restoreDefaults();

Input:

None

Return:

None

Also See:

outputParamString()