ShapedAction sa; Shape sh; Action ac;   for ( int i = 0; i < al.size( ); i++ ) { sa = (ShapedAction) al.get( i ); sh = sa.getShape( ); if ( sh.contains( p ) ) { ac = sa.getAction( ); switch ( ac.getType( ).getValue( ) ) { case ActionType.URL_REDIRECT : final URLValue uv = (URLValue) ac.getValue( ); logger.log( ILogger.INFORMATION, Messages.getString( "info.redirect.url", lcl ) + uv.getBaseUrl( ) ); break;  case ActionType.TOGGLE_VISIBILITY : final StructureSource src = (StructureSource) sa.getSource( ); if ( src.getType( ) == StructureType.SERIES ) { final Series seRT = (Series) src.getSource( ); logger.log( ILogger.INFORMATION, Messages.getString( "info.toggle.visibility", lcl ) + seRT ); Series seDT = null; try { seDT = findDesignTimeSeries( seRT );     } catch ( ChartException oosx ) { logger.log( oosx ); return; } seDT.setVisible( !seDT.isVisible( ) ); iun.regenerateChart( ); } break; } } }
handleAction( al, e );
	public void mouseClicked( MouseEvent e )	{		if ( !isLeftButton( e ) )		{			return;		}		// FILTER OUT ALL TRIGGERS FOR MOUSE CLICKS ONLY		final Point p = e.getPoint( );		final ArrayList al = (ArrayList) lhmAllTriggers.get( TriggerCondition.MOUSE_CLICK_LITERAL );		if ( al == null )			return;		ShapedAction sa;		Shape sh;		Action ac;		// POLL EACH EVENT REGISTERED FOR MOUSE CLICKS		for ( int i = 0; i < al.size( ); i++ )		{			sa = (ShapedAction) al.get( i );			sh = sa.getShape( );			if ( sh.contains( p ) )			{				ac = sa.getAction( );				switch ( ac.getType( ).getValue( ) )				{					case ActionType.URL_REDIRECT :						final URLValue uv = (URLValue) ac.getValue( );						logger.log( ILogger.INFORMATION,								Messages.getString( "info.redirect.url", lcl ) //$NON-NLS-1$										+ uv.getBaseUrl( ) );						break;					case ActionType.TOGGLE_VISIBILITY :						final StructureSource src = (StructureSource) sa.getSource( );						if ( src.getType( ) == StructureType.SERIES )						{							final Series seRT = (Series) src.getSource( );							logger.log( ILogger.INFORMATION,									Messages.getString( "info.toggle.visibility", //$NON-NLS-1$											lcl )											+ seRT );							Series seDT = null;							try							{								seDT = findDesignTimeSeries( seRT ); // LOCATE								// THE								// CORRESPONDING								// DESIGN-TIME								// SERIES							}							catch ( ChartException oosx )							{								logger.log( oosx );								return;							}							seDT.setVisible( !seDT.isVisible( ) );							iun.regenerateChart( );						}						break;				}			}		}	}