org.objectweb.jac.ide.diagrams
Class InstanceFigure

java.lang.Object
  extended byCH.ifa.draw.standard.AbstractFigure
      extended byCH.ifa.draw.standard.CompositeFigure
          extended byorg.objectweb.jac.ide.diagrams.InstanceFigure
All Implemented Interfaces:
Cloneable, EventListener, CH.ifa.draw.framework.Figure, CH.ifa.draw.framework.FigureChangeListener, ModelElementFigure, Serializable

public class InstanceFigure
extends CH.ifa.draw.standard.CompositeFigure
implements ModelElementFigure

See Also:
Serialized Form

Field Summary
 
Fields inherited from class CH.ifa.draw.standard.CompositeFigure
_nHighestZ, _nLowestZ, fFigures
 
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
 
Constructor Summary
InstanceFigure()
           
 
Method Summary
 void basicDisplayBox(Point origin, Point corner)
           
protected  void basicMoveBy(int x, int y)
           
 void close()
          Unregister from update events
 Rectangle displayBox()
           
 void draw(Graphics g)
           
protected  void drawBorder(Graphics g)
           
 void figureChanged(CH.ifa.draw.framework.FigureChangeEvent e)
           
 void figureRemoved(CH.ifa.draw.framework.FigureChangeEvent e)
           
 Package getContainerPackage()
          Get the value of containerPackage.
 String getName()
           
 ModelElement getSubstance()
          Get the value of substance.
 String getType()
           
 Vector handles()
           
 void layout()
           
 void setContainerPackage(Package v)
          Set the value of containerPackage.
 void setSubstance(Instance v)
          Set the value of substance.
 void update(CH.ifa.draw.framework.FigureChangeEvent e)
           
 
Methods inherited from class CH.ifa.draw.standard.CompositeFigure
add, addAll, addAll, bringToFront, draw, figureAt, figureCount, figureInvalidated, figureRequestRemove, figureRequestUpdate, figures, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, getFigureFromLayer, getLayer, includes, init, orphan, orphanAll, orphanAll, release, remove, removeAll, removeAll, removeAll, replace, sendToBack, sendToLayer
 
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, getAttribute, getZValue, invalidate, isEmpty, listener, moveBy, removeFigureChangeListener, removeFromContainer, setAttribute, 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, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, getAttribute, getZValue, includes, invalidate, isEmpty, listener, moveBy, release, removeFigureChangeListener, removeFromContainer, setAttribute, setZValue, size, willChange
 

Constructor Detail

InstanceFigure

public InstanceFigure()
Method Detail

close

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

Specified by:
close in interface ModelElementFigure

getSubstance

public ModelElement getSubstance()
Get the value of substance.

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

setSubstance

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

Parameters:
v - Value to assign to substance.

getType

public String getType()

getContainerPackage

public Package getContainerPackage()
Get the value of containerPackage.

Returns:
value of containerPackage.

setContainerPackage

public void setContainerPackage(Package v)
Set the value of containerPackage.

Parameters:
v - Value to assign to containerPackage.

basicMoveBy

protected void basicMoveBy(int x,
                           int y)

displayBox

public Rectangle displayBox()
Specified by:
displayBox in interface CH.ifa.draw.framework.Figure

basicDisplayBox

public void basicDisplayBox(Point origin,
                            Point corner)
Specified by:
basicDisplayBox in interface CH.ifa.draw.framework.Figure

drawBorder

protected void drawBorder(Graphics g)

draw

public void draw(Graphics g)
Specified by:
draw in interface CH.ifa.draw.framework.Figure

handles

public Vector handles()
Specified by:
handles in interface CH.ifa.draw.framework.Figure

getName

public String getName()

layout

public void layout()

update

public void update(CH.ifa.draw.framework.FigureChangeEvent e)

figureChanged

public void figureChanged(CH.ifa.draw.framework.FigureChangeEvent e)
Specified by:
figureChanged in interface CH.ifa.draw.framework.FigureChangeListener

figureRemoved

public void figureRemoved(CH.ifa.draw.framework.FigureChangeEvent e)
Specified by:
figureRemoved in interface CH.ifa.draw.framework.FigureChangeListener