|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--gecco.client.infopanels.ActionDisplay
This panel contains the action information of a piece. The ongoing action of a piece and its queued actions are displayed. The queued actions are selectable. There are buttons that stop the ongoing action or the selected queued actions.
Field Summary | |
protected JButton |
abortButton
Description of the Field |
protected JList |
actionInfo
Description of the Field |
protected Piece |
activePiece
Description of the Field |
protected JLabel |
executingAction
Description of the Field |
protected Game |
game
Description of the Field |
protected JButton |
removeButton
Description of the Field |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ActionDisplay(Game g)
|
Method Summary | |
void |
actionPerformed(ActionEvent e)
Handles button clicks. |
Dimension |
getMinimumSize()
Gets the MinimumSize attribute of the ActionDisplay object |
void |
setPiece(Piece p)
Set the piece whosse actions is displayed in the panel. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Game game
protected Piece activePiece
protected JList actionInfo
protected JLabel executingAction
protected JButton removeButton
protected JButton abortButton
Constructor Detail |
public ActionDisplay(Game g)
g
- The game object that owns the pieces that comes into this
panel, used for aborting actions.Method Detail |
public void setPiece(Piece p)
p
- The piece or NULL to empty the panel.public Dimension getMinimumSize()
getMinimumSize
in class JComponent
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- Description of Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |