/** Updates the cursor displayed on the graphic panel */ public void updateGraphicCursor() { if (foregroundLayer.isCursorOverLegend()) { graphicsPanel.setCursor(TrackConstants.CURSOR_OVER_LEGEND); } else if ((activeLayer instanceof GeneLayer) && (((GeneLayer) activeLayer).getGeneUnderMouse() != null)) { graphicsPanel.setCursor(TrackConstants.CURSOR_OVER_GENE); } else { graphicsPanel.setCursor(TrackConstants.DEFAULT_CURSOR); } }