org.objectweb.fractal.gui.graph.control
Class AntiAliasAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.objectweb.fractal.swing.AbstractAction
          extended byorg.objectweb.fractal.gui.graph.control.AntiAliasAction
All Implemented Interfaces:
Action, org.objectweb.fractal.swing.ActionAttributes, ActionListener, AttributeController, BindingController, Cloneable, DisplayListener, EventListener, Serializable

public class AntiAliasAction
extends org.objectweb.fractal.swing.AbstractAction
implements DisplayListener, BindingController

An action that just calls the setIsAntiAliasing method on a Display. This action listens to the display model in order to change its name when the anti aliasing option changes.

See Also:
Serialized Form

Field Summary
static String DISPLAY_BINDING
          A mandatory client interface bound to a display model.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AntiAliasAction()
          Constructs a new AntiAliasAction component.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void antialiasingChanged()
          Notifies this listener that the anti aliasing option of the display has changed.
 void bindFc(String clientItfName, Object serverItf)
          Binds the client interface whose name is given to a server interface.
 void displayedAreaChanged(Rect oldValue)
          Notifies this listener that component graph area shown by the display has changed.
 void itfNameDisplayModeChanged()
          Notifies this listener that the displaying mode for the interfaces name of the display has changed.
 String[] listFc()
          Returns the names of the client interfaces of the component to which this interface belongs.
 Object lookupFc(String clientItfName)
          Returns the interface to which the given client interface is bound.
 void maxDepthChanged()
          Notifies this listener that the max rendering depth of the display has changed.
 void unbindFc(String clientItfName)
          Unbinds the given client interface.
 
Methods inherited from class org.objectweb.fractal.swing.AbstractAction
getAcceleratorKey, getIconURL, getName, getToolTipText, setAcceleratorKey, setIconURL, setName, setToolTipText
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISPLAY_BINDING

public static final String DISPLAY_BINDING
A mandatory client interface bound to a display model. This is the display whose anti aliasing option is modified by this controller component.

See Also:
Constant Field Values
Constructor Detail

AntiAliasAction

public AntiAliasAction()
Constructs a new AntiAliasAction component.

Method Detail

listFc

public String[] listFc()
Description copied from interface: BindingController
Returns the names of the client interfaces of the component to which this interface belongs.

Specified by:
listFc in interface BindingController
Returns:
the names of the client interfaces of the component to which this interface belongs.

lookupFc

public Object lookupFc(String clientItfName)
Description copied from interface: BindingController
Returns the interface to which the given client interface is bound. More precisely, returns the server interface to which the client interface whose name is given is bound. This server interface is necessarily in the same address space as the client interface (see bindFc).

Specified by:
lookupFc in interface BindingController
Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.
Returns:
the server interface to which the given interface is bound, or null if it is not bound.

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
Description copied from interface: BindingController
Binds the client interface whose name is given to a server interface. More precisely, binds the client interface of the component to which this interface belongs, and whose name is equal to the given name, to the given server interface. The given server interface must be in the same address space as the client interface.

Specified by:
bindFc in interface BindingController
Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.
serverItf - a server interface.

unbindFc

public void unbindFc(String clientItfName)
Description copied from interface: BindingController
Unbinds the given client interface. More precisely, unbinds the client interface of the component to which this interface belongs, and whose name is equal to the given name.

Specified by:
unbindFc in interface BindingController
Parameters:
clientItfName - the name of a client interface of the component to which this interface belongs.

displayedAreaChanged

public void displayedAreaChanged(Rect oldValue)
Description copied from interface: DisplayListener
Notifies this listener that component graph area shown by the display has changed.

Specified by:
displayedAreaChanged in interface DisplayListener
Parameters:
oldValue - the old component graph area that was shown by the display.

antialiasingChanged

public void antialiasingChanged()
Description copied from interface: DisplayListener
Notifies this listener that the anti aliasing option of the display has changed.

Specified by:
antialiasingChanged in interface DisplayListener

maxDepthChanged

public void maxDepthChanged()
Description copied from interface: DisplayListener
Notifies this listener that the max rendering depth of the display has changed.

Specified by:
maxDepthChanged in interface DisplayListener

itfNameDisplayModeChanged

public void itfNameDisplayModeChanged()
Description copied from interface: DisplayListener
Notifies this listener that the displaying mode for the interfaces name of the display has changed.

Specified by:
itfNameDisplayModeChanged in interface DisplayListener

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener