Class Entity

java.lang.Object
  |
  +--ERComponent
        |
        +--Entity
All Implemented Interfaces:
java.io.Serializable

public class Entity
extends ERComponent
implements java.io.Serializable

See Also:
Serialized Form

Fields inherited from class ERComponent
bounds, container, font, name, nameHeight, selected, textX, textY, x, y
 
Constructor Summary
Entity(java.lang.String name, java.awt.Font font, ERPaintArea container)
           
 
Method Summary
 void addAttribute(Attribute a)
           
 void addDownAttr(Attribute a)
           
 void addLeftAttr(Attribute a)
           
 void addRightAttr(Attribute a)
           
 void addUpAttr(Attribute a)
           
 void change()
           
 void delete()
           
 java.awt.Point getCoord(int x, int y)
           
 void paint(java.awt.Graphics g)
           
 void removeAttribute(Attribute a)
           
 void setXY(int x, int y)
           
 
Methods inherited from class ERComponent
getBounds, isSelected, rename, select, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entity

public Entity(java.lang.String name,
              java.awt.Font font,
              ERPaintArea container)
Method Detail

addAttribute

public void addAttribute(Attribute a)
Overrides:
addAttribute in class ERComponent

addUpAttr

public void addUpAttr(Attribute a)

addDownAttr

public void addDownAttr(Attribute a)

addLeftAttr

public void addLeftAttr(Attribute a)

addRightAttr

public void addRightAttr(Attribute a)

removeAttribute

public void removeAttribute(Attribute a)
Overrides:
removeAttribute in class ERComponent

change

public void change()
Overrides:
change in class ERComponent

getCoord

public java.awt.Point getCoord(int x,
                               int y)
Overrides:
getCoord in class ERComponent

setXY

public void setXY(int x,
                  int y)
Overrides:
setXY in class ERComponent

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class ERComponent

delete

public void delete()
Overrides:
delete in class ERComponent