|
|||||||||||
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.PieceInfoPanel
This is a panel that contains info about a Piece. It contains a property display, an action display and a message display. Additionally, it contains the current time.
Field Summary | |
static int |
FILL
The amount (in pixels) of white space between things. |
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 | |
PieceInfoPanel(Game g)
|
Method Summary | |
void |
setPiece(Piece p)
Sets the piece whose information is displayed in this info panel. |
void |
updateActionDisplay()
Call this when the ongoing or queued actions of the piece has changed. |
void |
updateMessageDisplay()
Call this when the messages of the piece has changed. |
void |
updatePropertyDisplay()
Call this when the properties of the piece has changed. |
void |
updateTime(String newTime)
Updates the time label. |
void |
warningMessage(String s)
|
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 |
public static final int FILL
Constructor Detail |
public PieceInfoPanel(Game g)
g
- The Game object that whose pieces are displayed in this panel.
Used for aborting actions.Method Detail |
public void setPiece(Piece p)
p
- The new Piece valuepublic void updateTime(String newTime)
public void updateActionDisplay()
public void updatePropertyDisplay()
public void updateMessageDisplay()
public void warningMessage(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |