org.argouml.uml.diagram.static_structure.ui
Class FigEdgeNote

java.lang.Object
  extended by FigEdgePoly
      extended by org.argouml.uml.diagram.static_structure.ui.FigEdgeNote
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, ArgoFig, IItemUID

public class FigEdgeNote
extends FigEdgePoly
implements ArgoFig, IItemUID, java.beans.PropertyChangeListener

Class to display a UML note connection to a annotated model element.

The owner of this fig is always a CommentEdge. Because it is different from most every other FigEdge in ArgoUML, it doesn't subclass FigEdgeModelElement.


Field Summary
 
Fields inherited from interface org.argouml.uml.diagram.ui.ArgoFig
DEBUG, DEBUG_COLOR, FILL_COLOR, INVISIBLE_LINE_COLOR, LINE_COLOR, LINE_WIDTH, ROWHEIGHT, SOLID_FILL_COLOR, STEREOHEIGHT, TEXT_COLOR, X0, Y0
 
Constructor Summary
FigEdgeNote(java.lang.Object element, DiagramSettings theSettings)
           
 
Method Summary
protected  java.lang.Object getDestination()
          Returns the destination of the edge.
 ItemUID getItemUID()
          Getter for the UID
 Project getProject()
          Deprecated. 
 DiagramSettings getSettings()
           
protected  java.lang.Object getSource()
          Returns the source of the edge.
 java.lang.String getTipString(java.awt.event.MouseEvent me)
           
protected  void modelChanged(java.beans.PropertyChangeEvent e)
           
 void propertyChange(java.beans.PropertyChangeEvent pve)
           
 void removeFromDiagram()
           
 void renderingChanged()
          Rerender the entire fig.
 void setDestFigNode(FigNode fn)
           
 void setFig(Fig f)
           
 void setItemUID(ItemUID newId)
          Setter for the UID
 void setOwner(java.lang.Object owner)
          Deprecated. for 0.27.3 by tfmorris. Set owner in constructor. This method is implemented in GEF, so we'll leave this implementation here to block any attempts to use it within ArgoUML.
 void setProject(Project project)
          Deprecated. 
 void setSettings(DiagramSettings theSettings)
          Set the rendering settings to be used for this fig.
 void setSourceFigNode(FigNode fn)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FigEdgeNote

public FigEdgeNote(java.lang.Object element,
                   DiagramSettings theSettings)
Parameters:
element - owning CommentEdge object. This is a special case since it is not a UML element.
theSettings - render settings
Method Detail

setFig

public void setFig(Fig f)

toString

public java.lang.String toString()

modelChanged

protected void modelChanged(java.beans.PropertyChangeEvent e)

getTipString

public java.lang.String getTipString(java.awt.event.MouseEvent me)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent pve)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

removeFromDiagram

public final void removeFromDiagram()

getSource

protected java.lang.Object getSource()
Returns the source of the edge. The source is the owner of the node the edge travels from in a binary relationship. For instance: for a classifierrole, this is the sender.

Returns:
MModelElement

getDestination

protected java.lang.Object getDestination()
Returns the destination of the edge. The destination is the owner of the node the edge travels to in a binary relationship. For instance: for a classifierrole, this is the receiver.

Returns:
Object

setDestFigNode

public void setDestFigNode(FigNode fn)

setSourceFigNode

public void setSourceFigNode(FigNode fn)

getProject

@Deprecated
public Project getProject()
Deprecated. 


getSettings

public DiagramSettings getSettings()
Specified by:
getSettings in interface ArgoFig
Returns:
the rendering settings for the Fig

renderingChanged

public void renderingChanged()
Description copied from interface: ArgoFig
Rerender the entire fig.

This may be an expensive operation for subclasses which are complex, so should be used sparingly. It is only intended to be used when some global change to the rendering defaults is made at the ArgoDiagram level.

Specified by:
renderingChanged in interface ArgoFig

setProject

@Deprecated
public void setProject(Project project)
Deprecated. 


setSettings

public void setSettings(DiagramSettings theSettings)
Description copied from interface: ArgoFig
Set the rendering settings to be used for this fig. Currently this normally will be a diagram-wide or project-wide settings object that is shared by all Figs.

Specified by:
setSettings in interface ArgoFig
Parameters:
theSettings - the rendering settings to use

setItemUID

public void setItemUID(ItemUID newId)
Setter for the UID

Specified by:
setItemUID in interface IItemUID
Parameters:
newId - the new UID

getItemUID

public ItemUID getItemUID()
Getter for the UID

Specified by:
getItemUID in interface IItemUID
Returns:
the UID

setOwner

@Deprecated
public void setOwner(java.lang.Object owner)
Deprecated. for 0.27.3 by tfmorris. Set owner in constructor. This method is implemented in GEF, so we'll leave this implementation here to block any attempts to use it within ArgoUML.

Setting the owner of the Fig must be done in the constructor and not changed afterwards for all ArgoUML figs.

Parameters:
owner - owning UML element


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook