package de.unisiegen.gtitool.core.preferences.listener; import java.awt.Color; import java.util.EventListener; import de.unisiegen.gtitool.core.entities.NonterminalSymbol; import de.unisiegen.gtitool.core.entities.Production; import de.unisiegen.gtitool.core.entities.State; import de.unisiegen.gtitool.core.entities.Symbol; import de.unisiegen.gtitool.core.entities.TerminalSymbol; import de.unisiegen.gtitool.core.entities.Transition; /** * The listener interface for receiving color changes. * * @author Christian Fehler * @version $Id$ */ public interface ColorChangedListener extends EventListener { /** * Invoked when one color changed. */ public void colorChanged (); /** * Invoked when the color of the {@link NonterminalSymbol} changed. * * @param newColor The new color of the {@link NonterminalSymbol}. */ public void colorChangedNonterminalSymbol ( Color newColor ); /** * Invoked when the color of the error {@link NonterminalSymbol} changed. * * @param newColor The new color of the error {@link NonterminalSymbol}. */ public void colorChangedNonterminalSymbolError ( Color newColor ); /** * Invoked when the color of the highlighted {@link NonterminalSymbol} * changed. * * @param newColor The new color of the highlighted {@link NonterminalSymbol}. */ public void colorChangedNonterminalSymbolHighlight ( Color newColor ); /** * Invoked when the color of the parser error changed. * * @param newColor The new color of the error warning. */ public void colorChangedParserError ( Color newColor ); /** * Invoked when the color of the parser highlighting changed. * * @param newColor The new color of the parser highlighting. */ public void colorChangedParserHighlighting ( Color newColor ); /** * Invoked when the color of the parser keyword changed. * * @param newColor The new color of the parser keyword. */ public void colorChangedParserKeyword ( Color newColor ); /** * Invoked when the color of the parser warning changed. * * @param newColor The new color of the parser warning. */ public void colorChangedParserWarning ( Color newColor ); /** * Invoked when the color of the error {@link Production} changed. * * @param newColor The new color of the error {@link Production}. */ public void colorChangedProductionError ( Color newColor ); /** * Invoked when the color of the highlight {@link Production} changed. * * @param newColor The new color of the highlight {@link Production}. */ public void colorChangedProductionHighlight ( Color newColor ); /** * Invoked when the color of the Regex position changed. * * @param newColor The new color of the Regex position. */ public void colorChangedRegexPosition ( Color newColor ); /** * Invoked when the color of the Regex symbol changed. * * @param newColor The new color of the Regex symbol. */ public void colorChangedRegexSymbol ( Color newColor ); /** * Invoked when the color of the Regex token changed. * * @param newColor The new color of the Regex token. */ public void colorChangedRegexToken ( Color newColor ); /** * Invoked when the color of the Regex tool tip changed. * * @param newColor The new color of the Regex tool tip. */ public void colorChangedRegexToolTip ( Color newColor ); /** * Invoked when the color of the Regex marked node changed. * * @param newColor The new color of the Regex marked node. */ public void colorChangedRegexMarkedNode ( Color newColor ); /** * Invoked when the color of the Regex marked node changed. * * @param newColor The new color of the Regex marked node. */ public void colorChangedRegexSelectedNode ( Color newColor ); /** * Invoked when the color of the Regex comment changed. * * @param newColor The new color of the Regex comment. */ public void colorChangedRegexComment ( Color newColor ); /** * Invoked when the color of the start {@link NonterminalSymbol} changed. * * @param newColor The new color of the start{@link NonterminalSymbol}. */ public void colorChangedStartNonterminalSymbol ( Color newColor ); /** * Invoked when the color of the {@link State} changed. * * @param newColor The new color of the {@link State}. */ public void colorChangedState ( Color newColor ); /** * Invoked when the color of the active {@link State} changed. * * @param newColor The new color of the active {@link State}. */ public void colorChangedStateActive ( Color newColor ); /** * Invoked when the background color of the {@link State} changed. * * @param newColor The new color of the {@link State}. */ public void colorChangedStateBackground ( Color newColor ); /** * Invoked when the color of the error {@link State} changed. * * @param newColor The new color of the error {@link State}. */ public void colorChangedStateError ( Color newColor ); /** * Invoked when the color of the final {@link State} changed. * * @param newColor The new color of the final {@link State}. */ public void colorChangedStateFinal ( Color newColor ); /** * Invoked when the color of the selected {@link State} changed. * * @param newColor The new color of the selected {@link State}. */ public void colorChangedStateSelected ( Color newColor ); /** * Invoked when the color of the start {@link State} changed. * * @param newColor The new color of the start {@link State}. */ public void colorChangedStateStart ( Color newColor ); /** * Invoked when the color of the {@link Symbol} changed. * * @param newColor The new color of the {@link Symbol}. */ public void colorChangedSymbol ( Color newColor ); /** * Invoked when the color of the active {@link Symbol} changed. * * @param newColor The new color of the active {@link Symbol}. */ public void colorChangedSymbolActive ( Color newColor ); /** * Invoked when the color of the error {@link Symbol} changed. * * @param newColor The new color of the error {@link Symbol}. */ public void colorChangedSymbolError ( Color newColor ); /** * Invoked when the color of the {@link TerminalSymbol} changed. * * @param newColor The new color of the {@link TerminalSymbol}. */ public void colorChangedTerminalSymbol ( Color newColor ); /** * Invoked when the color of the error {@link TerminalSymbol} changed. * * @param newColor The new color of the error {@link TerminalSymbol}. */ public void colorChangedTerminalSymbolError ( Color newColor ); /** * Invoked when the color of the {@link Transition} changed. * * @param newColor The new color of the {@link Transition}. */ public void colorChangedTransition ( Color newColor ); /** * Invoked when the color of the active {@link Transition} changed. * * @param newColor The new color of the active {@link Transition}. */ public void colorChangedTransitionActive ( Color newColor ); /** * Invoked when the color of the error {@link Transition} changed. * * @param newColor The new color of the error {@link Transition}. */ public void colorChangedTransitionError ( Color newColor ); /** * Invoked when the color of the selected {@link Transition} changed. * * @param newColor The new color of the selected {@link Transition}. */ public void colorChangedTransitionSelected ( Color newColor ); }