Class Attribute

java.lang.Object
  |
  +--ERComponent
        |
        +--Attribute
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CompAttribute, ForeignAttribute, SimpleAttribute

public abstract class Attribute
extends ERComponent
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.lang.String card
           
protected  int cardWidth
           
protected  boolean init
           
protected static int LEFT_SIDE
           
protected static int LINE_LENGTH
           
protected  int lineToX
           
protected  int lineToY
           
protected  ERComponent parent
           
protected  boolean primary
           
protected  double rad
           
protected static int RIGHT_SIDE
           
protected  int side
           
protected static int SPACE
           
 
Fields inherited from class ERComponent
bounds, container, font, name, nameHeight, selected, textX, textY, x, y
 
Constructor Summary
protected Attribute(java.lang.String name, double rad, ERPaintArea container, ERComponent parent)
           
 
Method Summary
abstract  void change()
           
 void delete()
           
 java.awt.Point getCoord(int x, int y)
           
 double getOrientation()
           
 boolean isPrimary()
           
 void setCard(java.lang.String min, java.lang.String max)
           
abstract  void setOrientation(double rad)
           
 void setPrimary(boolean b)
           
abstract  void setTextSide(int textSide)
           
 void translate(int x, int y)
           
 void translateAll(int x, int y)
           
 void translateAttr(int x, int y)
           
 
Methods inherited from class ERComponent
addAttribute, getBounds, isSelected, paint, removeAttribute, rename, select, setXY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT_SIDE

protected static int LEFT_SIDE

RIGHT_SIDE

protected static int RIGHT_SIDE

LINE_LENGTH

protected static int LINE_LENGTH

SPACE

protected static int SPACE

lineToX

protected int lineToX

lineToY

protected int lineToY

rad

protected double rad

parent

protected ERComponent parent

card

protected java.lang.String card

cardWidth

protected int cardWidth

side

protected int side

primary

protected boolean primary

init

protected boolean init
Constructor Detail

Attribute

protected Attribute(java.lang.String name,
                    double rad,
                    ERPaintArea container,
                    ERComponent parent)
Method Detail

getCoord

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

change

public abstract void change()
Overrides:
change in class ERComponent

setTextSide

public abstract void setTextSide(int textSide)

delete

public void delete()
Overrides:
delete in class ERComponent

translateAll

public void translateAll(int x,
                         int y)

translateAttr

public void translateAttr(int x,
                          int y)

translate

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

setCard

public void setCard(java.lang.String min,
                    java.lang.String max)

setOrientation

public abstract void setOrientation(double rad)

getOrientation

public double getOrientation()

isPrimary

public boolean isPrimary()

setPrimary

public void setPrimary(boolean b)