Class ERComponent
java.lang.Object
|
+--ERComponent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Attribute, Connection, Entity, ERSet, Relation
- public abstract class ERComponent
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected ERPaintArea container
font
protected java.awt.Font font
selected
protected boolean selected
name
protected java.lang.String name
bounds
protected Rect bounds
nameHeight
protected int nameHeight
textX
protected int textX
textY
protected int textY
x
protected int x
y
protected int y
ERComponent
public ERComponent()
ERComponent
public ERComponent(java.lang.String name,
java.awt.Font font,
ERPaintArea container)
rename
public void rename(java.lang.String name)
paint
public abstract void paint(java.awt.Graphics g)
removeAttribute
public void removeAttribute(Attribute a)
addAttribute
public void addAttribute(Attribute a)
delete
public abstract void delete()
change
public abstract void change()
getBounds
public java.awt.geom.Rectangle2D getBounds()
getCoord
public abstract java.awt.Point getCoord(int x,
int y)
setXY
public void setXY(int x,
int y)
translate
public void translate(int x,
int y)
select
public void select(boolean b)
isSelected
public boolean isSelected()