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

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.objectweb.fractal.swing.AbstractAction
          extended byorg.objectweb.fractal.gui.graph.control.ChangeDepthAction
All Implemented Interfaces:
javax.swing.Action, org.objectweb.fractal.swing.ActionAttributes, java.awt.event.ActionListener, org.objectweb.fractal.api.control.AttributeController, org.objectweb.fractal.api.control.BindingController, ChangeDepthActionAttributes, java.lang.Cloneable, DisplayListener, java.util.EventListener, java.io.Serializable

public class ChangeDepthAction
extends org.objectweb.fractal.swing.AbstractAction
implements DisplayListener, org.objectweb.fractal.api.control.BindingController, ChangeDepthActionAttributes

An action that just calls the setMax method on a Display. This action listens to the display model in order to enable or disable itself when the max depth changes.

See Also:
Serialized Form

Field Summary
static java.lang.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
ChangeDepthAction()
          Constructs a new ChangeDepthAction component.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void antialiasingChanged()
          Notifies this listener that the anti aliasing option of the display has changed.
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 void displayedAreaChanged(Rect oldValue)
          Notifies this listener that component graph area shown by the display has changed.
 boolean getIsIncrease()
          Returns true if the action must increase the max depth of the display.
 void itfNameDisplayModeChanged()
          Notifies this listener that the displaying mode for the interfaces name of the display has changed.
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 void maxDepthChanged()
          Notifies this listener that the max rendering depth of the display has changed.
 void setIsIncrease(boolean isIncrease)
          Sets the increase attribute of this action component.
 void unbindFc(java.lang.String clientItfName)
           
 
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 java.lang.String DISPLAY_BINDING
A mandatory client interface bound to a display model. This is the display whose max depth is modified by this controller component.

See Also:
Constant Field Values
Constructor Detail

ChangeDepthAction

public ChangeDepthAction()
Constructs a new ChangeDepthAction component.

Method Detail

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController

unbindFc

public void unbindFc(java.lang.String clientItfName)
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController

getIsIncrease

public boolean getIsIncrease()
Description copied from interface: ChangeDepthActionAttributes
Returns true if the action must increase the max depth of the display.

Specified by:
getIsIncrease in interface ChangeDepthActionAttributes
Returns:
true if the action must increase the max depth of the display, or false if it must decrease it.
See Also:
ChangeDepthActionAttributes.setIsIncrease(boolean)

setIsIncrease

public void setIsIncrease(boolean isIncrease)
Description copied from interface: ChangeDepthActionAttributes
Sets the increase attribute of this action component.

Specified by:
setIsIncrease in interface ChangeDepthActionAttributes
Parameters:
isIncrease - true if the action must increase the max depth of the display, or false if it must decrease it.
See Also:
ChangeDepthActionAttributes.getIsIncrease()

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(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener