|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEntity
ClassEntity
This class represents a classEntity in a sequence diagram.
Field Summary | |
protected bluej.extensions.BClass |
bClass
|
protected DestroySymbol |
destroySymbol
|
protected boolean |
hasCreationMessage
|
protected boolean |
hasDestroySymbol
|
protected java.util.Vector |
messageList
|
Fields inherited from class Entity |
drawingArea, end, endPoint, lifeLine, name, selected, start, startPoint, string |
Constructor Summary | |
ClassEntity(DrawingArea d)
The constructor of the class. |
|
ClassEntity(DrawingArea d,
bluej.extensions.BClass b)
The constructor of the class. |
Method Summary | |
void |
addMessage(Message m)
This method adds a message to the messageList of the classEntity, if it is not already in the list. |
void |
arrangeObjects(Entity e)
This method is used when the user has moved one object and then the others should get rearranged. |
void |
createDestroySymbol()
This method creates a destroysymbol for the classEntity and adds it to the drawingobjects for the drawingarea. |
void |
delete()
This method deletes a classEntity from the drawingarea. |
void |
deleteMessage(Message m)
This method removes a messages from the messageList of the classEntity if the message is in the list. |
bluej.extensions.BClass |
getBClass()
This method return the BClass for the object. |
void |
moveObject(java.awt.Point p)
This method is used when the user wants to move an actor or an object in the drawingarea. |
void |
moveObjects(int firstIndex,
int lastIndex,
boolean direction)
This method is used by the method delete and moves all classEntitys from the given index to the left or to the right. |
void |
moveObjectUp(java.awt.Point p)
This method is called when a create message is removed from the ClassEntity and also if the classEntity has a creationmessage and the user wants to move it in the vertical plane. |
void |
moveVertical(java.awt.Point p)
This method moves a classEntity in the vertical plane. |
void |
setSelected(boolean b)
This method sets the object selected or not selected. |
Methods inherited from class Entity |
draw, getEndPoint, getName, getNextState, getStartPoint, getString, isClickedOn, modifyString, setEndPoint, setName, setNextState, setStartPoint, showMenu |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector messageList
protected DestroySymbol destroySymbol
protected boolean hasDestroySymbol
protected boolean hasCreationMessage
protected bluej.extensions.BClass bClass
Constructor Detail |
public ClassEntity(DrawingArea d)
d
- The component where the classEntity will be drawn.public ClassEntity(DrawingArea d, bluej.extensions.BClass b)
d
- The component where the classEntity will be drawn.b
- The Class to which the sequence object belongs.Method Detail |
public void delete()
public void moveObject(java.awt.Point p)
p
- The actor/object is moved to this pointpublic void arrangeObjects(Entity e)
e
- The Entity that has been moved.public void moveObjects(int firstIndex, int lastIndex, boolean direction)
firstIndex
- From this index all classEntity are moved.lastIndex
- To this index all ClassEntitys are moved.direction
- If true move to left, if false move to right.public void moveVertical(java.awt.Point p)
p
- The point to where the classEntity is to be moved.public void moveObjectUp(java.awt.Point p)
p
- The point to where the classEntity is to be moved.public void addMessage(Message m)
m
- The message to add to the messageList.public void deleteMessage(Message m)
m
- The message to be deleted.public void createDestroySymbol()
public void setSelected(boolean b)
setSelected
in class Entity
b
- True if the object is selected, otherwise false.public bluej.extensions.BClass getBClass()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |