jcreek.cke.conceptview
Interface ConceptViewPaintListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
BuildTool, MoveTool, ZoomTool

public interface ConceptViewPaintListener
extends java.util.EventListener

Defines the interface for being a view paint listener. This gives classes a chance to draw to the view before and/or after the view performs the usual paint operation. This can be used to add additional decorations to the view or to allow unique user interaction not supported by the view.

Version:
Author:

Method Summary
 void paintAfter(ConceptViewPaintEvent event)
          Called after the view draws the graph.
 void paintBefore(ConceptViewPaintEvent event)
          Called before the view draws the graph.
 

Method Detail

paintAfter

public void paintAfter(ConceptViewPaintEvent event)
Called after the view draws the graph. Gives the listener a chance to draw something to the view after everything else has been drawn. The order in which listeners are called is non-deterministic.

Parameters:
event - view paint event

paintBefore

public void paintBefore(ConceptViewPaintEvent event)
Called before the view draws the graph. Gives the listener a chance to draw something to the view before anything else appears. The order in which listeners are called is non-deterministic.

Parameters:
event - view paint event


Created at IDI, NTNU by the Artificial Intelligence and Learning group