|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEntity
Message
This class represents a message.
Field Summary | |
private ClassEntity |
endEntity
|
private Handle |
endHandle
|
private boolean |
isCreateMessage
|
private boolean |
isReturnMessage
|
private javax.swing.JMenuItem |
menuChangeMessage
|
private javax.swing.JMenuItem |
menuDelete
|
private boolean |
moveEnd
|
private boolean |
moveObject
|
private boolean |
moveStart
|
private Message |
returnMessage
|
private ClassEntity |
startEntity
|
private Handle |
startHandle
|
private boolean |
validEnd
|
Fields inherited from class Entity |
drawingArea, end, endPoint, lifeLine, name, selected, start, startPoint, string |
Constructor Summary | |
Message(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 |
changeMessage()
This method is called when the user wants to change the message. |
void |
delete()
This method is called to delete a message. |
void |
draw(java.awt.Graphics g)
This method is called to draw the object. |
ClassEntity |
getEndEntity()
|
boolean |
getIsCreateMessage()
|
boolean |
getIsReturnMessage()
|
int |
getNextState()
This method returns the next state for this class. |
Message |
getReturnMessage()
|
ClassEntity |
getStartEntity()
|
boolean |
isClickedOn(java.awt.Point p)
This method decides whether the object is clicked on or not. |
void |
setEndEntity(ClassEntity end)
|
void |
setEndHandle(Handle h)
|
void |
setEndPoint(java.awt.Point p)
This method sets the endpoint for the object. |
void |
setIsCreateMessage(boolean b)
|
void |
setIsReturnMessage(boolean b)
|
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 |
setReturnMessage(Message retMess)
|
void |
setSelected(boolean b)
This method sets the object selected or not selected. |
void |
setStartEntity(ClassEntity start)
|
void |
setStartHandle(Handle h)
|
void |
setStartPoint(java.awt.Point p)
This method sets the startpoint for the object. |
void |
showMenu(java.awt.Point p)
This method is called to show the menu of the object. |
Methods inherited from class Entity |
getEndPoint, getName, getStartPoint, getString, modifyString, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private javax.swing.JMenuItem menuChangeMessage
private javax.swing.JMenuItem menuDelete
private ClassEntity startEntity
private ClassEntity endEntity
private Handle startHandle
private Handle endHandle
private boolean moveStart
private boolean moveEnd
private boolean validEnd
private boolean moveObject
private boolean isCreateMessage
private boolean isReturnMessage
private Message returnMessage
Constructor Detail |
public Message(DrawingArea d)
d
- The component where the message will be drawn.Method Detail |
public void draw(java.awt.Graphics g)
draw
in class Entity
g
- Used for the drawing.public void setStartPoint(java.awt.Point p)
setStartPoint
in class Entity
p
- The startpoint.public void setEndPoint(java.awt.Point p)
setEndPoint
in class Entity
p
- The endpoint.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 actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- The ActionEvent.public void changeMessage()
public boolean isClickedOn(java.awt.Point p)
isClickedOn
in class Entity
p
- The point where the user has clicked.
public void delete()
public void setNextState(java.awt.Point p)
setNextState
in class Entity
p
- The point of the mouse.public void setSelected(boolean b)
setSelected
in class Entity
b
- True if the object is selected, otherwise false.public ClassEntity getStartEntity()
public void setStartEntity(ClassEntity start)
public void setEndEntity(ClassEntity end)
public ClassEntity getEndEntity()
public void setEndHandle(Handle h)
public void setStartHandle(Handle h)
public void setIsCreateMessage(boolean b)
public boolean getIsCreateMessage()
public boolean getIsReturnMessage()
public void setIsReturnMessage(boolean b)
public Message getReturnMessage()
public void setReturnMessage(Message retMess)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |