|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprioritizer.PlanningGame.Card
Defines a Card representing a Requirement in the Planning Game method
Field Summary | |
private boolean |
highlighted
|
private java.awt.Point |
pos
|
private Requirement |
requirement
|
private java.lang.String |
shortName
|
Constructor Summary | |
private |
PlanningGame.Card(Requirement requirement)
Constructs a Card |
Method Summary | |
void |
draw(java.awt.Graphics g)
Draws the Card with the specified graphics component |
private java.awt.Point |
getPos()
Gets the cards position. |
private Requirement |
getRequirement()
Gets the requirement associated with this Card. |
private boolean |
selectedBy(java.awt.Point pos)
Check if the Card is selectable by a click in this position. |
private void |
setPos(java.awt.Point pos)
Moves the Card to the specified position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private boolean highlighted
private java.awt.Point pos
private Requirement requirement
private java.lang.String shortName
Constructor Detail |
private PlanningGame.Card(Requirement requirement)
requirement
- the requirement to create the Card forMethod Detail |
private java.awt.Point getPos()
private Requirement getRequirement()
private void setPos(java.awt.Point pos)
pos
- the specified position to move the Card toprivate boolean selectedBy(java.awt.Point pos)
pos
- mouse pointer position
public void draw(java.awt.Graphics g)
g
- the specified graphics component
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |