|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.umu.cs.SequenceDiagramEditor.Entity
This class represents a entity on the drawingarea.
Field Summary | |
protected DrawingArea |
drawingArea
An object of the drawing area. |
protected java.awt.Point |
endPoint
The endpoint of the entity. |
protected LifeLine |
lifeLine
The lifeline belonging to this entity. |
protected java.lang.String |
name
The name of the entity (e.g actor, object, message etc). |
protected boolean |
selected
Tells if the entity is selected or not. |
protected java.awt.Point |
startPoint
The startpoint of the entity. |
protected java.lang.String |
string
The string of the entity. |
Constructor Summary | |
Entity(DrawingArea d)
The constructor of the class. |
Method Summary | |
abstract void |
draw(java.awt.Graphics g)
This abstract method draws the entity. |
java.awt.Point |
getEndPoint()
This method returns the endpoint of the entity. |
java.lang.String |
getName()
This method returns the name of the entity. |
abstract int |
getNextState()
This abstract method returns the next state for the entity. |
java.awt.Point |
getStartPoint()
This method returns the startpoint of the entity. |
java.lang.String |
getString()
This method returns the string of the entity. |
boolean |
isClickedOn(java.awt.Point p)
This method is called to decide wether the object is clicked on or not. |
void |
modifyString(java.lang.String s)
This method is used to modify the string of the entity. |
void |
setEndPoint(java.awt.Point p)
This method is used to set the endpoint of the entity. |
void |
setName(java.lang.String n)
This method is used to set the name of the entity. |
abstract void |
setNextState(java.awt.Point p)
This abstract method sets the next state of the entity. |
void |
setSelected(boolean s)
This method is used to set the entity selected, if it has been clicked on. |
void |
setStartPoint(java.awt.Point p)
This method is used to set the startpoint of the entity. |
abstract void |
showMenu(java.awt.Point p)
This abstract method shows the menu of the entity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean selected
protected java.awt.Point startPoint
protected java.awt.Point endPoint
protected java.lang.String string
protected java.lang.String name
protected LifeLine lifeLine
protected DrawingArea drawingArea
Constructor Detail |
public Entity(DrawingArea d)
d
- The component where the entity will be drawn.Method Detail |
public boolean isClickedOn(java.awt.Point p)
p
- The point where the user has clicked.
public java.lang.String getString()
public void modifyString(java.lang.String s)
s
- The new stringpublic void setStartPoint(java.awt.Point p)
p
- The startpointpublic java.awt.Point getStartPoint()
public void setEndPoint(java.awt.Point p)
p
- The new endpointpublic java.awt.Point getEndPoint()
public void setSelected(boolean s)
s
- True if selected, otherwise falsepublic void setName(java.lang.String n)
n
- The name of the entitypublic java.lang.String getName()
public abstract int getNextState()
public abstract void draw(java.awt.Graphics g)
g
- The graphicspublic abstract void showMenu(java.awt.Point p)
p
- The point where the menu should be shownpublic abstract void setNextState(java.awt.Point p)
p
- The point
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |