Class CompAttribute

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

public class CompAttribute
extends Attribute

See Also:
Serialized Form

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

Field Detail

LINE_LENGTH

protected static int LINE_LENGTH
Constructor Detail

CompAttribute

public CompAttribute(java.lang.String s,
                     double rad,
                     ERPaintArea container,
                     ERComponent parent)
Method Detail

setOrientation

public void setOrientation(double rad)
Overrides:
setOrientation in class Attribute

setXY

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

translate

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

translateAttr

public void translateAttr(int x,
                          int y)
Overrides:
translateAttr in class Attribute

change

public void change()
Overrides:
change in class Attribute

setTextSide

public void setTextSide(int textSide)
Overrides:
setTextSide in class Attribute

getCoord

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

paint

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

addAttribute

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

removeAttribute

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