|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprioritizer.PlanningGame.Pile
Defines a Pile where the cards can be put
Field Summary | |
private java.util.LinkedList |
cardsList
|
private static int |
HEIGHT
|
private boolean |
highlighted
|
private java.awt.Image |
image
|
private java.awt.Image |
imageHighlight
|
private java.lang.String |
pileType
|
private java.awt.Point |
pos
|
private static int |
WIDTH
|
Constructor Summary | |
private |
PlanningGame.Pile(java.lang.String pileType)
Constructs a Pile |
Method Summary | |
private void |
addCard(PlanningGame.Card c)
Adds a Card to the last position in the Pile |
void |
draw(java.awt.Graphics g)
Draws the the Pile (box on desk) with the specified graphics component |
boolean |
selectedBy(java.awt.Point pos)
Check if the Pile is selectable by a click in this position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int WIDTH
private static final int HEIGHT
private java.util.LinkedList cardsList
private boolean highlighted
private java.lang.String pileType
private java.awt.Point pos
private java.awt.Image image
private java.awt.Image imageHighlight
Constructor Detail |
private PlanningGame.Pile(java.lang.String pileType)
pileType
- defines the type of the pile: High, Medium or LowMethod Detail |
private void addCard(PlanningGame.Card c)
c
- the Card to be addedpublic void draw(java.awt.Graphics g)
g
- the specified graphics componentpublic boolean selectedBy(java.awt.Point pos)
pos
- mouse pointer position
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |