|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.umu.cs.SequenceDiagramEditor.Entity
se.umu.cs.SequenceDiagramEditor.ClassEntity
se.umu.cs.SequenceDiagramEditor.Actor
This class represents an actor in a sequence diagram.
Field Summary | |
private Handle |
handle
The handle for the actor, used to move the actor. |
private javax.swing.JMenuItem |
menuDelete
The menuitem used if the user wants to delete the actor. |
private javax.swing.JMenuItem |
menuDestroySymbol
The menuitem used if the user wants to add a destroy symbol. |
private javax.swing.JMenuItem |
menuRename
The menuitem used if the user wants to rename the actor. |
private boolean |
move
Set true when the actor can be moved. |
Fields inherited from class se.umu.cs.SequenceDiagramEditor.ClassEntity |
bClass, destroySymbol, hasCreationMessage, hasDestroySymbol, messageList |
Fields inherited from class se.umu.cs.SequenceDiagramEditor.Entity |
drawingArea, endPoint, lifeLine, name, selected, startPoint, string |
Constructor Summary | |
Actor(DrawingArea d)
The constructor of the class. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
This method is called when an ActionEvent takes place. |
void |
changeName()
This method is called when the user wants to change the name of the actor. |
void |
draw(java.awt.Graphics g)
This method is called to draw the actor. |
int |
getNextState()
This method returns the next state for this class. |
void |
setEndPoint(java.awt.Point p)
This method sets the endpoint for the actor. |
void |
setNextState(java.awt.Point p)
This method is called to update the next state of the class based upon what the user has choosen. |
void |
showMenu(java.awt.Point p)
This method is called to show the menu of the object. |
Methods inherited from class se.umu.cs.SequenceDiagramEditor.ClassEntity |
addMessage, arrangeObjects, createDestroySymbol, delete, deleteMessage, getBClass, moveObject, moveObjects, moveObjectUp, moveVertical, setSelected |
Methods inherited from class se.umu.cs.SequenceDiagramEditor.Entity |
getEndPoint, getName, getStartPoint, getString, isClickedOn, modifyString, setName, setStartPoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private javax.swing.JMenuItem menuRename
private javax.swing.JMenuItem menuDestroySymbol
private javax.swing.JMenuItem menuDelete
private Handle handle
private boolean move
Constructor Detail |
public Actor(DrawingArea d)
d
- The component where the actor will be drawn.Method Detail |
public void draw(java.awt.Graphics g)
draw
in class Entity
g
- Used for the drawing.public void showMenu(java.awt.Point p)
showMenu
in class Entity
p
- The menu will be shown at the given point.public int getNextState()
getNextState
in class Entity
public void setEndPoint(java.awt.Point p)
setEndPoint
in class Entity
p
- The startPoint of the actor.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- The ActionEvent.public void changeName()
public void setNextState(java.awt.Point p)
setNextState
in class Entity
p
- The point of the mouse.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |