Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions
CH.ifa.draw.standard.FigureChangeEventMulticaster Class Reference

Manages a list of FigureChangeListeners to be notified of specific FigureChangeEvents. More...

List of all members.

Public Member Functions

 FigureChangeEventMulticaster (EventListener a, EventListener b)
void figureInvalidated (FigureChangeEvent e)
void figureRequestRemove (FigureChangeEvent e)
void figureRequestUpdate (FigureChangeEvent e)
void figureChanged (FigureChangeEvent e)
void figureRemoved (FigureChangeEvent e)

Static Public Member Functions

static FigureChangeListener add (FigureChangeListener a, FigureChangeListener b)
static FigureChangeListener remove (FigureChangeListener l, FigureChangeListener oldl)

Protected Member Functions

EventListener remove (EventListener oldl)

Static Protected Member Functions

static EventListener addInternal (FigureChangeListener a, FigureChangeListener b)
static EventListener removeInternal (EventListener l, EventListener oldl)

Detailed Description

Manages a list of FigureChangeListeners to be notified of specific FigureChangeEvents.

Definition at line 21 of file FigureChangeEventMulticaster.java.


Constructor & Destructor Documentation

CH.ifa.draw.standard.FigureChangeEventMulticaster.FigureChangeEventMulticaster ( EventListener  a,
EventListener  b 
) [inline]

Definition at line 24 of file FigureChangeEventMulticaster.java.

                                                                          {
       super(a, b);
    }

Here is the caller graph for this function:


Member Function Documentation

static FigureChangeListener CH.ifa.draw.standard.FigureChangeEventMulticaster.add ( FigureChangeListener  a,
FigureChangeListener  b 
) [inline, static]

Definition at line 53 of file FigureChangeEventMulticaster.java.

                                                                                           {
        return (FigureChangeListener)addInternal(a, b);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

static EventListener CH.ifa.draw.standard.FigureChangeEventMulticaster.addInternal ( FigureChangeListener  a,
FigureChangeListener  b 
) [inline, static, protected]

Definition at line 76 of file FigureChangeEventMulticaster.java.

                                                                                               {
           if (a == null)  return b;
           if (b == null)  return a;
           return new FigureChangeEventMulticaster(a, b);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 43 of file FigureChangeEventMulticaster.java.

                                                   {
        ((FigureChangeListener)a).figureChanged(e);
        ((FigureChangeListener)b).figureChanged(e);
    }

Definition at line 28 of file FigureChangeEventMulticaster.java.

                                                       {
        ((FigureChangeListener)a).figureInvalidated(e);
        ((FigureChangeListener)b).figureInvalidated(e);
    }

Definition at line 48 of file FigureChangeEventMulticaster.java.

                                                   {
        ((FigureChangeListener)a).figureRemoved(e);
        ((FigureChangeListener)b).figureRemoved(e);
    }

Definition at line 33 of file FigureChangeEventMulticaster.java.

                                                         {
        ((FigureChangeListener)a).figureRequestRemove(e);
        ((FigureChangeListener)b).figureRequestRemove(e);
    }

Definition at line 38 of file FigureChangeEventMulticaster.java.

                                                         {
        ((FigureChangeListener)a).figureRequestUpdate(e);
        ((FigureChangeListener)b).figureRequestUpdate(e);
    }
static FigureChangeListener CH.ifa.draw.standard.FigureChangeEventMulticaster.remove ( FigureChangeListener  l,
FigureChangeListener  oldl 
) [inline, static]

Definition at line 58 of file FigureChangeEventMulticaster.java.

                                                                                                 {
           return (FigureChangeListener) removeInternal(l, oldl);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

EventListener CH.ifa.draw.standard.FigureChangeEventMulticaster.remove ( EventListener  oldl) [inline, protected]

Definition at line 62 of file FigureChangeEventMulticaster.java.

    {
        if (oldl == a)
            return b;
        if (oldl == b)
            return a;
        EventListener a2 = removeInternal((FigureChangeListener)a, oldl);
        EventListener b2 = removeInternal((FigureChangeListener)b, oldl);
        if (a2 == a && b2 == b)
            return this;
        else
            return addInternal((FigureChangeListener)a2, (FigureChangeListener)b2);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

static EventListener CH.ifa.draw.standard.FigureChangeEventMulticaster.removeInternal ( EventListener  l,
EventListener  oldl 
) [inline, static, protected]

Definition at line 82 of file FigureChangeEventMulticaster.java.

                                                                                       {
       if (l == oldl || l == null) {
           return null;
       } else if (l instanceof FigureChangeEventMulticaster) {
           return ((FigureChangeEventMulticaster)l).remove(oldl);
       } else {
           return l;        // it's not here
       }
    }

Here is the caller graph for this function:


The documentation for this class was generated from the following file: