org.objectweb.jac.ide.diagrams
Class ClassNameFigure

java.lang.Object
  extended byCH.ifa.draw.standard.AbstractFigure
      extended byCH.ifa.draw.figures.AttributeFigure
          extended byorg.objectweb.jac.ide.diagrams.TextFigure
              extended byorg.objectweb.jac.ide.diagrams.ClassNameFigure
All Implemented Interfaces:
Cloneable, EventListener, FieldUpdate, CH.ifa.draw.framework.Figure, CH.ifa.draw.framework.FigureChangeListener, Serializable, CH.ifa.draw.standard.TextHolder

public class ClassNameFigure
extends TextFigure
implements FieldUpdate

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
ClassNameFigure(Class substance, ClassFigure parentFigure)
           
 
Method Summary
 void fieldUpdated(Object substance, FieldItem field, Object value, Object param)
          Upcalled when a field was modified.
 String getName()
           
 Class getSubstance()
          Get the value of substance.
 Color getTextColor()
           
 void setSubstance(Class v)
          Set the value of substance.
 void setText(String s)
          Sets the text shown by the text figure.
 
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
 

Constructor Detail

ClassNameFigure

public ClassNameFigure(Class substance,
                       ClassFigure parentFigure)
Method Detail

getTextColor

public Color getTextColor()
Overrides:
getTextColor in class TextFigure

getSubstance

public Class getSubstance()
Get the value of substance.

Returns:
value of substance.

setSubstance

public void setSubstance(Class v)
Set the value of substance.

Parameters:
v - Value to assign to substance.

getName

public String getName()

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

fieldUpdated

public void fieldUpdated(Object substance,
                         FieldItem field,
                         Object value,
                         Object param)
Description copied from interface: FieldUpdate
Upcalled when a field was modified.

Specified by:
fieldUpdated in interface FieldUpdate
Parameters:
substance - the object of which a field was updated
field - the updated field
value - new value of the vield
param - extra infos (unused)
See Also:
ViewControlWrapper.registerField(Wrappee,FieldItem,FieldUpdate,Object)