org.objectweb.jac.ide.diagrams
Class MethodFigure

java.lang.Object
  |
  +--CH.ifa.draw.standard.AbstractFigure
        |
        +--CH.ifa.draw.figures.AttributeFigure
              |
              +--org.objectweb.jac.ide.diagrams.TextFigure
                    |
                    +--org.objectweb.jac.ide.diagrams.MemberFigure
                          |
                          +--org.objectweb.jac.ide.diagrams.MethodFigure
All Implemented Interfaces:
Cloneable, EventListener, CH.ifa.draw.framework.Figure, CH.ifa.draw.framework.FigureChangeListener, ModelElementFigure, ObjectUpdate, Selectable, Serializable, CH.ifa.draw.standard.TextHolder

public class MethodFigure
extends MemberFigure
implements ModelElementFigure, ObjectUpdate, Selectable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jac.ide.diagrams.TextFigure
fOriginX, fOriginY
 
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
 
Constructor Summary
MethodFigure(Method method, ClassFigure parentFigure)
           
 
Method Summary
 void close()
          Unregister from update events
 Vector getArgs()
           
 String getName()
           
 String getPrototype()
           
 ModelElement getSubstance()
          Get the value of substance.
 void objectUpdated(Object object, Object extra)
          The callback method.
 void onSelect(DisplayContext context)
          Called when the figure is selected
protected  void setText()
           
 void setText(String s)
          Sets the text shown by the text figure.
 
Methods inherited from class org.objectweb.jac.ide.diagrams.MemberFigure
getTextColor, getType
 
Methods inherited from class org.objectweb.jac.ide.diagrams.TextFigure
acceptsTyping, basicDisplayBox, basicMoveBy, changed, connect, createCurrentFont, disconnect, displayBox, drawBackground, drawFrame, figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, getAttribute, getFont, getText, handles, moveBy, overlayColumns, readOnly, release, setAttribute, setCurrentFontName, setCurrentFontSize, setCurrentFontStyle, setFont, setReadOnly, textDisplayBox, updateLocation
 
Methods inherited from class CH.ifa.draw.figures.AttributeFigure
draw, getDefaultAttribute, getFillColor, getFrameColor
 
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, canConnect, center, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, getZValue, includes, invalidate, isEmpty, listener, removeFigureChangeListener, removeFromContainer, setZValue, size, willChange
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface CH.ifa.draw.framework.Figure
addFigureChangeListener, addToContainer, basicDisplayBox, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, displayBox, draw, figures, findFigureInside, getAttribute, getZValue, handles, includes, invalidate, isEmpty, listener, moveBy, release, removeFigureChangeListener, removeFromContainer, setAttribute, setZValue, size, willChange
 

Constructor Detail

MethodFigure

public MethodFigure(Method method,
                    ClassFigure parentFigure)
Method Detail

close

public void close()
Description copied from interface: ModelElementFigure
Unregister from update events

Specified by:
close in interface ModelElementFigure

setText

protected void setText()

getSubstance

public ModelElement getSubstance()
Get the value of substance.

Specified by:
getSubstance in interface ModelElementFigure
Specified by:
getSubstance in class MemberFigure
Returns:
value of substance.

getPrototype

public String getPrototype()

getName

public String getName()
Overrides:
getName in class MemberFigure

getArgs

public Vector getArgs()

setText

public void setText(String s)
Description copied from class: TextFigure
Sets the text shown by the text figure.

Specified by:
setText in interface CH.ifa.draw.standard.TextHolder
Overrides:
setText in class TextFigure

objectUpdated

public void objectUpdated(Object object,
                          Object extra)
Description copied from interface: ObjectUpdate
The callback method.

Specified by:
objectUpdated in interface ObjectUpdate
Parameters:
object - the updated object
extra - extra data
See Also:
ViewControlWrapper.registerObject(Wrappee,ObjectUpdate,Object)

onSelect

public void onSelect(DisplayContext context)
Description copied from interface: Selectable
Called when the figure is selected

Specified by:
onSelect in interface Selectable
Parameters:
context - the DiagramView's DisplayContext