|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEntity
ActivationBox
This class represents an activationbox.
Field Summary | |
private javax.swing.JMenuItem |
menuItem1
|
protected boolean |
moveEnd
|
protected boolean |
moveStart
|
protected ClassEntity |
ownerEntity
|
Fields inherited from class Entity |
drawingArea, end, endPoint, lifeLine, name, selected, start, startPoint, string |
Constructor Summary | |
ActivationBox(ClassEntity e,
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 |
draw(java.awt.Graphics g)
This method is called to draw the object. |
int |
getNextState()
This method returns the next state for this class. |
void |
setEndPoint(java.awt.Point p)
This method sets the endpoint for the object. |
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 |
setSelected(boolean b)
This method sets the object selected or not selected. |
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, isClickedOn, modifyString, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ClassEntity ownerEntity
protected boolean moveStart
protected boolean moveEnd
private javax.swing.JMenuItem menuItem1
Constructor Detail |
public ActivationBox(ClassEntity e, DrawingArea d)
e
- This ClassEntity will be the owner of the
activationbox, to which it will belong.d
- This is the component where the activationbox
will be drawn.Method Detail |
public int getNextState()
getNextState
in class Entity
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 for the object.public void setEndPoint(java.awt.Point p)
setEndPoint
in class Entity
p
- The endpoint for the object.public void setSelected(boolean b)
setSelected
in class Entity
b
- True if the object is selected, otherwise false.public void showMenu(java.awt.Point p)
showMenu
in class Entity
p
- The menu will be shown at the given point.public void setNextState(java.awt.Point p)
setNextState
in class Entity
p
- The point of the mouse.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- The ActionEvent.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |