fr.ove.openmath.jome.ctrlview.bidim
Class Display

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byfr.ove.openmath.jome.ctrlview.bidim.Display
All Implemented Interfaces:
Colorizable, Displayable, java.util.EventListener, Iconifiable, java.awt.image.ImageObserver, Localisable, java.awt.MenuContainer, ModelListener, ModelListenerController, Selectable, java.io.Serializable, Sizable
Direct Known Subclasses:
BidimDisplay

public abstract class Display
extends java.awt.Container
implements Displayable, Colorizable, Selectable, Iconifiable, ModelListenerController

The display elements of the formula.

Version:
2.0 27/06/1999
Author:
© 1999 DIRAT Laurent
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  boolean dragNDrop
          Are we in drag'n drop mode ??
protected  boolean isSelected
          Indicates whether the symbol is selected or not.
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Display(GraphicContext graphicContext)
          The constructor.
 
Method Summary
 void add(Display display)
          Adds a child display to the instance.
 void addControlListener(ControlListener controlListener)
          Registers another listener to be informed of changes of the display.
 void addSelectionEventListener(SelectionEventListener selectionEventListener)
          Registers another listener to be informed of changes of the display.
 void adjustRank()
          Adjusts the rank of its children.
 void buildDisplay()
          Builds the display of the formula tree structure.
 Display buildDisplay(int indexFts)
          Builds the display of the part of the formula tree structure at the specified index.
 void computeAncestorsAttributes()
          Recurses into the tree of the display to inform the ancestors of the instance that they need to compute their attributes.
 void computeChildrenAttributes()
          Recurses into the tree of the display to inform the children of the instance that they need to compute their attributes.
 int computeInsertionPosition(int mouseX)
          Returns the insertion position for the moving of displays.
 void decLevel()
          Decrements the level value.
 void deselect()
          Deselects the display.
 void dontDrawBounds()
          The bounds of the display don't have to be drawn.
protected  boolean doRemoveFromListListeners()
          Returns true if we remove the instance from the list of listeners.
 void drawBounds()
          The bounds of the display have to be drawn.
 void fireControlEvent(ControlEvent controlEvent)
          Fires a Control event to registered listeners.
 void fireSelectionEvent(SelectionEvent selectionEvent)
          Fires a SelectionEvent event to registered listeners.
 int getAscent()
          Returns the ascent.
 java.awt.Color getBackgroundColor()
          Returns the color used by the graphic context.
 boolean getComputeAttributes()
          Checks if we need to compute the display.
 int getDescent()
          Returns the descent.
 DisplayAllocator getDisplayAllocator()
          Returns the display allocator.
 java.awt.Color getForegroundColor()
          Returns the color used by the graphic context.
 GraphicContext getGraphicContext()
          Returns the graphic context of the display.
 int getHeight()
          Returns the height of the display.
 java.lang.String getIconName()
          Returns the name of the icon associated to the instance.
 int getLevel()
          Returns the level of the display
 ControlListener getListener()
          Returns the listener of the dispay.
 int getRank()
          Returns the rank of the display.
 java.awt.Color getSelectionColor()
          Returns the color used in the graphic context to hilight the selection.
 int getShiftX()
          Returns the horizontal shift.
 int getShiftY()
          Returns the vertical shift.
 boolean getUpdateLevel()
          Checks if we need to update the level of the display.
 int getWidth()
          Returns the width of the display.
 int getX()
          Returns the x-location of the display.
 int getY()
          Returns the y-location of the display.
 boolean gotSelectedElements()
          Returns true if the display have components selected or is selected.
 void iconify()
          Iconifies all the selected elements of the formula.
 void incLevel()
          Increments the level value.
 boolean isDisplay(FormulaTreeStructure fts)
          Returns true if the instance is a display of the specified formula tree structure.
 boolean isIcon()
           
 boolean isIconifiable()
          Returns true if the instance is iconifiable.
 boolean isSelected()
          Checks if the display is selected or not.
 boolean isSymbolOperatorDisplay()
           
 void moveSelectedDisplays(int mouseX)
          Moves the selected displays to the mouse position.
 void remove(int index)
          Removes from the instance the display at the specified index.
 void removeAll()
          Removes all the displays of the instance.
 void removeAllControlListener()
          Removes all the listeners.
 void removeAllDisplays()
          Removes all the displays of the instance.
 void removeControlListener(ControlListener controlListener)
          Removes a listener.
protected  void removeFromListListeners(boolean doRemoveFromListListeners)
          Sets if during the manipulation of children of the instance, the children manipulated have to be removed from the list od listeners.
 void removeSelectionEventListener(SelectionEventListener selectionEventListener)
          Removes a listener.
 void scaleDisplay()
          Scales the display.
 void select()
          Selects the display.
 void setAscent(int ascent)
          Sets the ascent.
 void setAttributes(int ascent, int descent, int shiftX, int shiftY)
          Sets all the attributes.
 void setBackgroundColor(java.awt.Color backgroundColor)
          Sets a new color to the context.
 void setChildrenBackground(java.awt.Color backgroundColor)
           
 void setComputeAttributes(boolean computeAttributes)
          Sets the attributes to be computed.
 void setDescent(int descent)
          Sets the descent.
 void setDisplayAllocator(DisplayAllocator displayAllocator)
          Sets the display allocator.
protected  void setDoRemoveFromListListeners(boolean doRemoveFromListListeners)
          Sets if during the removal of the instance from the its father, we remove it from the list of listeners it is listening to.
 void setFont(java.awt.Font font)
          Sets a new font to the context.
 void setForegroundColor(java.awt.Color foregroundColor)
          Sets a new color to the context.
 void setGraphicContext(GraphicContext graphicContext)
          Sets the graphic context to the display.
 void setHeight(int height)
          Sets the height of the instance.
 void setIconName(java.lang.String iconName)
          Associates an icon name to the instance.
 void setIsIconifiable(boolean isIconifiable)
          Sets the istance as iconifiable.
 void setIsSymbolOperatorDisplay(boolean isSymbolOperatorDisplay)
          Sets if the instance represents the display of the symbol of an operator.
 void setLevel(int level)
          Sets the level of the display
 void setMouseListener(java.awt.event.MouseListener listener)
           
 void setNotSelected()
          Sets the display as not selected.
 void setRank(int rank)
          Sets the rank of the display.
 void setSelected()
          Sets the display as selected.
 void setSelectionColor(java.awt.Color selectionColor)
          Sets a new selection color to the context.
 void setShiftX(int shiftX)
          Sets the horizontal shift.
 void setShiftY(int shiftY)
          Sets the vertical shift.
protected  void setTheFont(java.awt.Font font)
           
 void setUpdateLevel(boolean updateLevel)
          Sets the level to be updated.
 void setWidth(int width)
          Sets the width of the instance.
 void setX(int x)
          Sets the x-location of the instance.
 void setY(int y)
          Sets the y-location of the instance.
 void substitute(java.lang.String name)
          Substitutes the selection by the specified friendly name.
 void ToString()
          For debugg only !!!!
 void uniconify()
          Uniconifies all the selected icons which are in the formula.
 void uniconifyAll()
          Uniconifies all the selected icons.
 void updateAncestorsLevel()
          Recurses into the tree of the display to inform the ancestors of the instance that they need to update their level
 void updateChildrenLevel()
          Recurses into the tree of the display to inform the children of the instance that they need to update their level
 boolean weDrawBounds()
          Checks if the bound must be drawn or not.
 void whoAmI()
           
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fr.ove.openmath.jome.ctrlview.bidim.Displayable
paint
 
Methods inherited from interface fr.ove.openmath.jome.ctrlview.bidim.Localisable
getLocation, setLocation, setLocation
 
Methods inherited from interface fr.ove.openmath.jome.ctrlview.bidim.Sizable
getPreferredSize, getSize, setSize, setSize
 
Methods inherited from interface fr.ove.openmath.jome.model.events.ModelListener
consumeModelEvent
 

Field Detail

isSelected

protected boolean isSelected
Indicates whether the symbol is selected or not.


dragNDrop

protected boolean dragNDrop
Are we in drag'n drop mode ??

Constructor Detail

Display

public Display(GraphicContext graphicContext)
The constructor.

Parameters:
graphicContext - the graphic context of the display.
Method Detail

isDisplay

public boolean isDisplay(FormulaTreeStructure fts)
Returns true if the instance is a display of the specified formula tree structure. false otherwise.


setIsSymbolOperatorDisplay

public void setIsSymbolOperatorDisplay(boolean isSymbolOperatorDisplay)
Sets if the instance represents the display of the symbol of an operator.


isSymbolOperatorDisplay

public boolean isSymbolOperatorDisplay()
Returns:
true if the instance represents the display of the symbol of an operator. false otherwise.

drawBounds

public void drawBounds()
The bounds of the display have to be drawn.


dontDrawBounds

public void dontDrawBounds()
The bounds of the display don't have to be drawn.


weDrawBounds

public boolean weDrawBounds()
Checks if the bound must be drawn or not.

Returns:
true if we have to draw the bounds of the display. false otherwise.

setLevel

public void setLevel(int level)
Sets the level of the display

Parameters:
level - the level of the display.

getLevel

public int getLevel()
Returns the level of the display


incLevel

public void incLevel()
Increments the level value.


decLevel

public void decLevel()
Decrements the level value.


setUpdateLevel

public void setUpdateLevel(boolean updateLevel)
Sets the level to be updated.

Parameters:
updateLevel - true if the display level need to be updated. false otherwise.

getUpdateLevel

public boolean getUpdateLevel()
Checks if we need to update the level of the display.

Returns:
true if needed. false otherwise.

updateAncestorsLevel

public void updateAncestorsLevel()
Recurses into the tree of the display to inform the ancestors of the instance that they need to update their level


updateChildrenLevel

public void updateChildrenLevel()
Recurses into the tree of the display to inform the children of the instance that they need to update their level


setComputeAttributes

public void setComputeAttributes(boolean computeAttributes)
Sets the attributes to be computed.

Parameters:
computeAttributes - true if the display attributes need to be computed. false otherwise.

getComputeAttributes

public boolean getComputeAttributes()
Checks if we need to compute the display.

Returns:
true if needed. false otherwise.

computeAncestorsAttributes

public void computeAncestorsAttributes()
Recurses into the tree of the display to inform the ancestors of the instance that they need to compute their attributes.


computeChildrenAttributes

public void computeChildrenAttributes()
Recurses into the tree of the display to inform the children of the instance that they need to compute their attributes.


setRank

public void setRank(int rank)
Sets the rank of the display.

Parameters:
rank - the rank.

getRank

public int getRank()
Returns the rank of the display.


adjustRank

public void adjustRank()
Adjusts the rank of its children.


removeAllDisplays

public void removeAllDisplays()
Removes all the displays of the instance.
The fundamental difference with removeAll is in that case, the displays removed are not removed form the list of listeners of the formula tree structure they are listening to.


scaleDisplay

public void scaleDisplay()
Scales the display.


moveSelectedDisplays

public void moveSelectedDisplays(int mouseX)
Moves the selected displays to the mouse position.

Parameters:
mouseX - the mouse position.

computeInsertionPosition

public int computeInsertionPosition(int mouseX)
Returns the insertion position for the moving of displays.

Parameters:
mouseX - the mouse position.

setDisplayAllocator

public void setDisplayAllocator(DisplayAllocator displayAllocator)
Sets the display allocator.

Parameters:
displayAllocator - the display allocator

getDisplayAllocator

public DisplayAllocator getDisplayAllocator()
Returns the display allocator.

Returns:
the display allocator, or null if none has been specified.

buildDisplay

public void buildDisplay()
Builds the display of the formula tree structure.
This method has to be called when a formula tree structure has been created and the displays have not been associated yet.
As a prerequesit, the instance which call this method MUST have a corresponding instance (a listener) in the formula tree structure (i.e. the formula tree structure we want to display).


buildDisplay

public Display buildDisplay(int indexFts)
Builds the display of the part of the formula tree structure at the specified index.
This method has to be called when a new part of the formula tree structure has been created and the displays have not been associated yet. (modification of the formula expression, and then we only ask to build displays of the new part, and only them)
As a prerequesit, the instance which calls this method MUST have a corresponding instance (a listener) in the formula tree structure (i.e. the formula tree structure we want to display)

Parameters:
indexFts - the index of the fts which needs displays to be associated, in the list of "sub-fts" of the corresponding fts of the instance (ouf !!!).
indexFts must be less than the number of elements of the correponding fts, and greater or equal than 0.
Returns:
the new display created.

add

public void add(Display display)
Adds a child display to the instance. The child is added as the last child of the set of children of the instance.

Parameters:
display - the display to add.

remove

public void remove(int index)
Removes from the instance the display at the specified index.

Parameters:
index - the specified index.

removeAll

public void removeAll()
Removes all the displays of the instance.


setDoRemoveFromListListeners

protected void setDoRemoveFromListListeners(boolean doRemoveFromListListeners)
Sets if during the removal of the instance from the its father, we remove it from the list of listeners it is listening to.

Parameters:
doRemoveFromListListeners - true if we remove the instance from the list of listeners. false otherwise.

doRemoveFromListListeners

protected boolean doRemoveFromListListeners()
Returns true if we remove the instance from the list of listeners. false otherwise.


removeFromListListeners

protected void removeFromListListeners(boolean doRemoveFromListListeners)
Sets if during the manipulation of children of the instance, the children manipulated have to be removed from the list od listeners.

Parameters:
doRemoveFromListListeners - true if we remove the children manipulated from the list of listeners. false otherwise.

setFont

public void setFont(java.awt.Font font)
Sets a new font to the context.

Parameters:
font - the new font.

setTheFont

protected void setTheFont(java.awt.Font font)

substitute

public void substitute(java.lang.String name)
Substitutes the selection by the specified friendly name.


setAscent

public void setAscent(int ascent)
Sets the ascent.

Specified by:
setAscent in interface Displayable
Parameters:
ascent - the new ascent value.

getAscent

public int getAscent()
Returns the ascent.

Specified by:
getAscent in interface Displayable
Returns:
the ascent.

setDescent

public void setDescent(int descent)
Sets the descent.

Specified by:
setDescent in interface Displayable
Parameters:
descent - the new descent value.

getDescent

public int getDescent()
Returns the descent.

Specified by:
getDescent in interface Displayable
Returns:
the descent.

setShiftX

public void setShiftX(int shiftX)
Sets the horizontal shift.

Specified by:
setShiftX in interface Displayable

getShiftX

public int getShiftX()
Returns the horizontal shift.

Specified by:
getShiftX in interface Displayable
Returns:
the horizontal shift.

setShiftY

public void setShiftY(int shiftY)
Sets the vertical shift.

Specified by:
setShiftY in interface Displayable
Parameters:
shiftY - the new vertical shift value.

getShiftY

public int getShiftY()
Returns the vertical shift.

Specified by:
getShiftY in interface Displayable
Returns:
the vertical shift.

setAttributes

public void setAttributes(int ascent,
                          int descent,
                          int shiftX,
                          int shiftY)
Sets all the attributes.

Specified by:
setAttributes in interface Displayable
Parameters:
ascent - the new ascent value.
descent - the new descent value.
shiftX - the new horizontal shift value.
shiftY - the new vertical shift value.

setGraphicContext

public void setGraphicContext(GraphicContext graphicContext)
Sets the graphic context to the display.

Specified by:
setGraphicContext in interface Displayable
Parameters:
graphicContext - the graphic context.

getGraphicContext

public GraphicContext getGraphicContext()
Returns the graphic context of the display.

Specified by:
getGraphicContext in interface Displayable

setX

public void setX(int x)
Sets the x-location of the instance.

Specified by:
setX in interface Localisable
Parameters:
x - the x-location of the instance.

getX

public int getX()
Returns the x-location of the display.

Specified by:
getX in interface Localisable

setY

public void setY(int y)
Sets the y-location of the instance.

Specified by:
setY in interface Localisable
Parameters:
y - the y-location of the instance.

getY

public int getY()
Returns the y-location of the display.

Specified by:
getY in interface Localisable

setWidth

public void setWidth(int width)
Sets the width of the instance.

Specified by:
setWidth in interface Sizable
Parameters:
width - the width of the instance

getWidth

public int getWidth()
Returns the width of the display.

Specified by:
getWidth in interface Sizable

setHeight

public void setHeight(int height)
Sets the height of the instance.

Specified by:
setHeight in interface Sizable
Parameters:
height - the height of the instance

getHeight

public int getHeight()
Returns the height of the display.

Specified by:
getHeight in interface Sizable

select

public void select()
Selects the display. Selects the instance and its children if any.

Specified by:
select in interface Selectable

deselect

public void deselect()
Deselects the display. Deselects the instance and its children if any.

Specified by:
deselect in interface Selectable

setSelected

public void setSelected()
Sets the display as selected.

Specified by:
setSelected in interface Selectable

setNotSelected

public void setNotSelected()
Sets the display as not selected.

Specified by:
setNotSelected in interface Selectable

isSelected

public boolean isSelected()
Checks if the display is selected or not.

Specified by:
isSelected in interface Selectable
Returns:
true if the display is selected. false otherwise.

gotSelectedElements

public boolean gotSelectedElements()
Returns true if the display have components selected or is selected.
false otherwise.

Specified by:
gotSelectedElements in interface Selectable

setForegroundColor

public void setForegroundColor(java.awt.Color foregroundColor)
Sets a new color to the context.

Specified by:
setForegroundColor in interface Colorizable
Parameters:
foregroundColor - the new color.

getForegroundColor

public java.awt.Color getForegroundColor()
Returns the color used by the graphic context.

Specified by:
getForegroundColor in interface Colorizable

setBackgroundColor

public void setBackgroundColor(java.awt.Color backgroundColor)
Sets a new color to the context.

Specified by:
setBackgroundColor in interface Colorizable
Parameters:
backgroundColor - the new color.

setChildrenBackground

public void setChildrenBackground(java.awt.Color backgroundColor)

getBackgroundColor

public java.awt.Color getBackgroundColor()
Returns the color used by the graphic context.

Specified by:
getBackgroundColor in interface Colorizable

setSelectionColor

public void setSelectionColor(java.awt.Color selectionColor)
Sets a new selection color to the context.

Specified by:
setSelectionColor in interface Colorizable
Parameters:
selectionColor - the new color.

getSelectionColor

public java.awt.Color getSelectionColor()
Returns the color used in the graphic context to hilight the selection.

Specified by:
getSelectionColor in interface Colorizable

setIconName

public void setIconName(java.lang.String iconName)
Associates an icon name to the instance.

Specified by:
setIconName in interface Iconifiable
Parameters:
iconName - the name of the icon

getIconName

public java.lang.String getIconName()
Returns the name of the icon associated to the instance.

Specified by:
getIconName in interface Iconifiable

isIcon

public boolean isIcon()
Specified by:
isIcon in interface Iconifiable
Returns:
true if the instance is an icon. false otherwise.

iconify

public void iconify()
Iconifies all the selected elements of the formula.

Specified by:
iconify in interface Iconifiable

uniconify

public void uniconify()
Uniconifies all the selected icons which are in the formula.

Specified by:
uniconify in interface Iconifiable

uniconifyAll

public void uniconifyAll()
Uniconifies all the selected icons.
If the icons contains other icons, these are uniconified. There is a recursion process.

Specified by:
uniconifyAll in interface Iconifiable

setIsIconifiable

public void setIsIconifiable(boolean isIconifiable)
Sets the istance as iconifiable.

Specified by:
setIsIconifiable in interface Iconifiable
Parameters:
isIconifiable - true if the instance is iconifiable. false otherwise.

isIconifiable

public boolean isIconifiable()
Returns true if the instance is iconifiable. false otherwise.

Specified by:
isIconifiable in interface Iconifiable

addControlListener

public void addControlListener(ControlListener controlListener)
Registers another listener to be informed of changes of the display.

Specified by:
addControlListener in interface ModelListenerController
Parameters:
controlListener - a listener to add.

removeAllControlListener

public void removeAllControlListener()
Removes all the listeners.


removeControlListener

public void removeControlListener(ControlListener controlListener)
Removes a listener.

Specified by:
removeControlListener in interface ModelListenerController
Parameters:
controlListener - a listener to remove.

fireControlEvent

public void fireControlEvent(ControlEvent controlEvent)
Fires a Control event to registered listeners.

Specified by:
fireControlEvent in interface ModelListenerController
Parameters:
controlEvent - event encapsulating relevant information.

getListener

public ControlListener getListener()
Returns the listener of the dispay. (i.e. a fts)


addSelectionEventListener

public void addSelectionEventListener(SelectionEventListener selectionEventListener)
Registers another listener to be informed of changes of the display.

Parameters:
selectionEventListener - a listener to add.

removeSelectionEventListener

public void removeSelectionEventListener(SelectionEventListener selectionEventListener)
Removes a listener.

Parameters:
selectionEventListener - listener to remove.

fireSelectionEvent

public void fireSelectionEvent(SelectionEvent selectionEvent)
Fires a SelectionEvent event to registered listeners.

Parameters:
selectionEvent - event encapsulating relevant information.

setMouseListener

public void setMouseListener(java.awt.event.MouseListener listener)

ToString

public void ToString()
For debugg only !!!!


whoAmI

public void whoAmI()


Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.