li.netcat.chart.util
Class PerspectivePart

Adds a 3D effect to a given Part and changes its look for example to the following:

It is possible to specify the perspective as well as
the position and brightness of the light source.

The implementation of the 3D effect is
separated from the Part implementation and can thereby easily be replaced.
The whole chart is divided into its basic elements like lines and shapes
whereas each element has its perspective "position".

This class supports three different perspective "positions":
The value FOREGROUND will paint the element in the foreground, BACKGROUND in the
background and PERSPECTIVE will foreshorten it. Other implementations may support other
perspective positions.

The elements of a Part usually have already the right perspective position.
If not, use its perspective position to change it. For example:
CartesianGridPart.setHorizontalLinesPerspective(ChartConatants.PERSPECTIVE);.

setChart

Sets the container of this part. This method should not be called by
custom code. It gets called when this Part is added to a chart by calling
chart.setContent(part);. Implementers of parts must keep this reference
and invoke for example chart.invalidate() when a property in this part changes.