Crosshair Layer


The crosshair layer draws a crosshair at the current mouse location. This feature is especially useful when giving a demonstration of the Gantt chart. The crosshair will only be visible if it has been turned on. A pre-defined action called CrosshairAction is available for toggling the visibility of the crosshair. The layer uses the ICrosshairPolicy to lookup four different labels that will be shown in the four corners of the crosshair. Several methods are available on the layer that can be used to customize the appearance of the crosshair (radius, fill color, line color, text color).

crosshair
Crosshair

Relevant API


void AbstractGanttChart.setCrosshairVisible(boolean);
ICrosshairPolicy
CrosshairAction