org.objectweb.jac.ide.diagrams
Class GenericObjectFigure

java.lang.Object
  |
  +--CH.ifa.draw.standard.AbstractFigure
        |
        +--CH.ifa.draw.standard.CompositeFigure
              |
              +--org.objectweb.jac.ide.diagrams.GenericObjectFigure
All Implemented Interfaces:
Cloneable, EventListener, CH.ifa.draw.framework.Figure, CH.ifa.draw.framework.FigureChangeListener, ModelElementFigure, Serializable

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

See Also:
Serialized Form

Field Summary
static int SHAPE_RECT
           
static int SHAPE_ROUNDRECT
           
 
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
GenericObjectFigure()
           
GenericObjectFigure(GenericFigure fig, Package pack, CH.ifa.draw.framework.DrawingView view)
           
 
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)
           
 CollectionItem getCollection()
          Get the value of collection.
 Package getContainerPackage()
          Get the value of containerPackage.
 Font getDefaultFont()
          Get the value of defaultFont.
 GenericFigure getGenericFigure()
          Get the value of genericFigure.
 int getShape()
          Get the value of shape.
 ModelElement getSubstance()
          Get the value of substance.
 Vector handles()
           
 void layout()
           
 void setCollection(CollectionItem v)
          Set the value of collection.
 void setContainerPackage(Package v)
          Set the value of containerPackage.
 void setDefaultFont(Font v)
          Set the value of defaultFont.
 void setGenericFigure(GenericFigure v)
          Set the value of genericFigure.
 void setShape(int v)
          Set the value of shape.
 void setSubstance(Object 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
 

Field Detail

SHAPE_RECT

public static int SHAPE_RECT

SHAPE_ROUNDRECT

public static int SHAPE_ROUNDRECT
Constructor Detail

GenericObjectFigure

public GenericObjectFigure()

GenericObjectFigure

public GenericObjectFigure(GenericFigure fig,
                           Package pack,
                           CH.ifa.draw.framework.DrawingView view)
Method Detail

close

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

Specified by:
close in interface ModelElementFigure

getShape

public int getShape()
Get the value of shape.

Returns:
value of shape.

setShape

public void setShape(int v)
Set the value of shape.

Parameters:
v - Value to assign to shape.

getGenericFigure

public GenericFigure getGenericFigure()
Get the value of genericFigure.

Returns:
value of genericFigure.

setGenericFigure

public void setGenericFigure(GenericFigure v)
Set the value of genericFigure.

Parameters:
v - Value to assign to genericFigure.

basicMoveBy

protected void basicMoveBy(int x,
                           int y)
Overrides:
basicMoveBy in class CH.ifa.draw.standard.CompositeFigure

displayBox

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

basicDisplayBox

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

drawBorder

protected void drawBorder(Graphics g)

draw

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

handles

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

getDefaultFont

public Font getDefaultFont()
Get the value of defaultFont.

Returns:
value of defaultFont.

setDefaultFont

public void setDefaultFont(Font v)
Set the value of defaultFont.

Parameters:
v - Value to assign to defaultFont.

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
Overrides:
figureChanged in class CH.ifa.draw.standard.CompositeFigure

figureRemoved

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

getSubstance

public ModelElement getSubstance()
Get the value of substance.

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

setSubstance

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

Parameters:
v - Value to assign to substance.

getCollection

public CollectionItem getCollection()
Get the value of collection.

Returns:
value of collection.

setCollection

public void setCollection(CollectionItem v)
Set the value of collection.

Parameters:
v - Value to assign to collection.

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.