|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--visPlayerInfo
This Class provides a textbased view of a player's worldmodell
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent, javax.swing.JComponent.ActionStandin, javax.swing.JComponent.IntVector, javax.swing.JComponent.KeyboardState |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
Field Summary | |
private java.lang.String |
BALL_DISTANCE
|
private javax.swing.JLabel |
ballDistanceLabel
|
private java.lang.String |
DASH
|
private javax.swing.JLabel |
dashLabel
|
private java.lang.String |
EFFORT
|
private javax.swing.JLabel |
effortLabel
|
private java.lang.String |
GOALS
|
private javax.swing.JLabel |
goalsLabel
|
private java.lang.String |
KICK
|
private javax.swing.JLabel |
kickLabel
|
private java.lang.String |
lastMessage
|
private int |
lastNumber
|
private javax.swing.JTextArea |
messageArea
|
private javax.swing.JLabel |
messageLabel
|
private java.lang.String |
MESSAGES
|
private java.lang.String |
PLAYMODE
|
private javax.swing.JLabel |
playmodeLabel0
|
private javax.swing.JLabel |
playmodeLabel1
|
private java.lang.String |
SAY
|
private javax.swing.JLabel |
sayLabel
|
private java.lang.String |
SEPERATOR
|
private javax.swing.JScrollPane |
sp
|
private java.lang.String |
STAMINA
|
private javax.swing.JLabel |
staminaLabel
|
private java.lang.String |
TURN
|
private java.lang.String |
TURN_NECK
|
private javax.swing.JLabel |
turnLabel
|
private javax.swing.JLabel |
TurnNeckLabel
|
private java.lang.String |
VIEW_QUAL
|
private java.lang.String |
VIEW_WIDTH
|
private javax.swing.JLabel |
viewQualLabel
|
private javax.swing.JLabel |
viewWidthLabel
|
Fields inherited from class javax.swing.JPanel |
defaultLayout, uiClassID |
Fields inherited from class javax.swing.JComponent |
_bounds, accessibleContext, actionMap, ACTIONMAP_CREATED, alignmentX, alignmentY, ANCESTOR_INPUTMAP_CREATED, ANCESTOR_USING_BUFFER, ancestorInputMap, ancestorNotifier, autoscroller, border, changeSupport, clientProperties, CREATED_DOUBLE_BUFFER, flags, FOCUS_INPUTMAP_CREATED, focusInputMap, HAS_FOCUS, htmlKey, htmlView, inputVerifier, IS_DOUBLE_BUFFERED, IS_OPAQUE, IS_PAINTING_TILE, IS_PRINTING, IS_PRINTING_ALL, KEY_EVENTS_ENABLED, KEYBOARD_BINDINGS_KEY, listenerList, maximumSize, minimumSize, NEXT_FOCUS, paintImmediatelyClip, paintingChild, preferredSize, readObjectCallbacks, REQUEST_FOCUS_DISABLED, tmpRect, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, verifyInputWhenFocusTarget, vetoableChangeSupport, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, WHEN_IN_FOCUSED_WINDOW_BINDINGS, WIF_INPUTMAP_CREATED, windowInputMap |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads, serialVersionUID |
Fields inherited from class java.awt.Component |
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
(package private) |
visPlayerInfo()
This Method constructs visPlayerInfo. |
Method Summary | |
void |
addMessage(java.lang.String newMessage)
fills the message area with messages, that the chosen player hears |
void |
clearInfo()
This method clears display. |
void |
paintComponent(java.awt.Graphics g)
This method paints the JScrollPane for current and older messages depending on panel size. |
void |
setBallDistanceLabel(double d)
fills the ball distance label with data from the chosen player |
void |
setDashLabel(int i)
This method sets the dash label |
void |
setEffortLabel(double d)
fills the effort label with effort data from the chosen player |
void |
setgoalsLabel(int our,
int opp)
fills the goals label with goal data from the chosen player |
void |
setKickLabel(int i)
This method sets the kick label |
void |
setPlaymodeLabel(int i)
fills the playmode label with the playmode from the chosen player |
void |
setSayLabel(int i)
This method sets the say label |
void |
setStaminaLabel(double d)
fills the stamina label with stamina data from the chosen player |
void |
setTurnLabel(int i)
fills the turn label with turn cośnt data from the chosen player |
void |
setTurnNeckLabel(int i)
This method sets the turn neck label |
void |
setViewQualLabel(boolean b)
sets the label, that gives information about the view quality of the chosen player |
void |
setViewWidthLabel(int i)
sets the label, that gives information about the view width of the chosen player |
void |
updateInfo(AgentInfo agentInfo)
This method updates the display with data from agentInfo. |
Methods inherited from class javax.swing.JPanel |
|
Methods inherited from class javax.swing.JComponent |
_paintImmediately, addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, adjustPaintFlags, alwaysOnTop, checkIfChildObscuredBySibling, clearFocusOwners, componentInputMapChanged, computeVisibleRect, computeVisibleRect, compWriteObjectNotify, contains, createToolTip, disable, enable, enableSerialization, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperties, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getCreatedDoubleBuffer, getDebugGraphicsOptions, getFlag, getGraphics, getHeight, getInputMap, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paintWithBuffer, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyBindings, processKeyBindingsForAllComponents, processKeyEvent, processMouseMotionEvent, putClientProperty, readObject, rectangleIsObscured, rectangleIsObscuredBySibling, registerKeyboardAction, registerKeyboardAction, registerWithKeyboardManager, registerWithKeyboardManager, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setCreatedDoubleBuffer, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFlag, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPaintingChild, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, shouldDebugGraphics, superProcessMouseMotionEvent, unregisterKeyboardAction, unregisterWithKeyboardManager, unregisterWithKeyboardManager, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getLayout, getMouseEventTarget, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paintComponents, paintHeavyweightComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFocusOwner, setLayout, transferFocus, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, constructComponentName, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getToolkit, getToolkitImpl, getTreeLock, getWindowForObject, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isEnabledImpl, isLightweight, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resetGC, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
private final java.lang.String GOALS
private final java.lang.String STAMINA
private final java.lang.String EFFORT
private final java.lang.String PLAYMODE
private final java.lang.String VIEW_QUAL
private final java.lang.String VIEW_WIDTH
private final java.lang.String BALL_DISTANCE
private final java.lang.String DASH
private final java.lang.String KICK
private final java.lang.String SAY
private final java.lang.String TURN
private final java.lang.String TURN_NECK
private final java.lang.String MESSAGES
private final java.lang.String SEPERATOR
private javax.swing.JLabel goalsLabel
private javax.swing.JLabel staminaLabel
private javax.swing.JLabel effortLabel
private javax.swing.JLabel playmodeLabel0
private javax.swing.JLabel playmodeLabel1
private javax.swing.JLabel viewQualLabel
private javax.swing.JLabel viewWidthLabel
private javax.swing.JLabel ballDistanceLabel
private javax.swing.JLabel dashLabel
private javax.swing.JLabel kickLabel
private javax.swing.JLabel sayLabel
private javax.swing.JLabel turnLabel
private javax.swing.JLabel TurnNeckLabel
private javax.swing.JLabel messageLabel
private javax.swing.JTextArea messageArea
private javax.swing.JScrollPane sp
private java.lang.String lastMessage
private int lastNumber
Constructor Detail |
visPlayerInfo()
Method Detail |
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public void clearInfo()
public void setgoalsLabel(int our, int opp)
public void setStaminaLabel(double d)
public void setEffortLabel(double d)
public void setPlaymodeLabel(int i)
public void setBallDistanceLabel(double d)
public void setViewQualLabel(boolean b)
public void setViewWidthLabel(int i)
public void setDashLabel(int i)
public void setKickLabel(int i)
public void setSayLabel(int i)
public void setTurnLabel(int i)
public void setTurnNeckLabel(int i)
public void addMessage(java.lang.String newMessage)
public void updateInfo(AgentInfo agentInfo)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |