Class visPlayerInfo

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--visPlayerInfo
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, PlayModeInterface, java.io.Serializable

class visPlayerInfo
extends javax.swing.JPanel
implements PlayModeInterface

This Class provides a textbased view of a player's worldmodell

See Also:
Serialized Form

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 PlayModeInterface
PLAYMODE_BEFORE_KICK_OFF, PLAYMODE_EXTEND, PLAYMODE_HALF_TIME, PLAYMODE_OPPONENTS_CORNER_KICK, PLAYMODE_OPPONENTS_FOUL, PLAYMODE_OPPONENTS_FREE_KICK, PLAYMODE_OPPONENTS_GOAL, PLAYMODE_OPPONENTS_GOAL_KICK, PLAYMODE_OPPONENTS_GOALIE_CATCH, PLAYMODE_OPPONENTS_KICK_IN, PLAYMODE_OPPONENTS_KICK_OFF, PLAYMODE_OPPONENTS_OFFSIDE, PLAYMODE_OUR_CORNER_KICK, PLAYMODE_OUR_FOUL, PLAYMODE_OUR_FREE_KICK, PLAYMODE_OUR_GOAL, PLAYMODE_OUR_GOAL_KICK, PLAYMODE_OUR_GOALIE_CATCH, PLAYMODE_OUR_KICK_IN, PLAYMODE_OUR_KICK_OFF, PLAYMODE_OUR_OFFSIDE, PLAYMODE_PLAY_ON, PLAYMODE_TIME_UP, PLAYMODES
 
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
, getAccessibleContext, getUIClassID, paramString, updateUI, writeObject
 
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

GOALS

private final java.lang.String GOALS

STAMINA

private final java.lang.String STAMINA

EFFORT

private final java.lang.String EFFORT

PLAYMODE

private final java.lang.String PLAYMODE

VIEW_QUAL

private final java.lang.String VIEW_QUAL

VIEW_WIDTH

private final java.lang.String VIEW_WIDTH

BALL_DISTANCE

private final java.lang.String BALL_DISTANCE

DASH

private final java.lang.String DASH

KICK

private final java.lang.String KICK

SAY

private final java.lang.String SAY

TURN

private final java.lang.String TURN

TURN_NECK

private final java.lang.String TURN_NECK

MESSAGES

private final java.lang.String MESSAGES

SEPERATOR

private final java.lang.String SEPERATOR

goalsLabel

private javax.swing.JLabel goalsLabel

staminaLabel

private javax.swing.JLabel staminaLabel

effortLabel

private javax.swing.JLabel effortLabel

playmodeLabel0

private javax.swing.JLabel playmodeLabel0

playmodeLabel1

private javax.swing.JLabel playmodeLabel1

viewQualLabel

private javax.swing.JLabel viewQualLabel

viewWidthLabel

private javax.swing.JLabel viewWidthLabel

ballDistanceLabel

private javax.swing.JLabel ballDistanceLabel

dashLabel

private javax.swing.JLabel dashLabel

kickLabel

private javax.swing.JLabel kickLabel

sayLabel

private javax.swing.JLabel sayLabel

turnLabel

private javax.swing.JLabel turnLabel

TurnNeckLabel

private javax.swing.JLabel TurnNeckLabel

messageLabel

private javax.swing.JLabel messageLabel

messageArea

private javax.swing.JTextArea messageArea

sp

private javax.swing.JScrollPane sp

lastMessage

private java.lang.String lastMessage

lastNumber

private int lastNumber
Constructor Detail

visPlayerInfo

visPlayerInfo()
This Method constructs visPlayerInfo.
Method Detail

paintComponent

public void paintComponent(java.awt.Graphics g)
This method paints the JScrollPane for current and older messages depending on panel size.
Overrides:
paintComponent in class javax.swing.JComponent

clearInfo

public void clearInfo()
This method clears display.

setgoalsLabel

public void setgoalsLabel(int our,
                          int opp)
fills the goals label with goal data from the chosen player

setStaminaLabel

public void setStaminaLabel(double d)
fills the stamina label with stamina data from the chosen player

setEffortLabel

public void setEffortLabel(double d)
fills the effort label with effort data from the chosen player

setPlaymodeLabel

public void setPlaymodeLabel(int i)
fills the playmode label with the playmode from the chosen player

setBallDistanceLabel

public void setBallDistanceLabel(double d)
fills the ball distance label with data from the chosen player

setViewQualLabel

public void setViewQualLabel(boolean b)
sets the label, that gives information about the view quality of the chosen player

setViewWidthLabel

public void setViewWidthLabel(int i)
sets the label, that gives information about the view width of the chosen player

setDashLabel

public void setDashLabel(int i)
This method sets the dash label

setKickLabel

public void setKickLabel(int i)
This method sets the kick label

setSayLabel

public void setSayLabel(int i)
This method sets the say label

setTurnLabel

public void setTurnLabel(int i)
fills the turn label with turn cośnt data from the chosen player

setTurnNeckLabel

public void setTurnNeckLabel(int i)
This method sets the turn neck label

addMessage

public void addMessage(java.lang.String newMessage)
fills the message area with messages, that the chosen player hears

updateInfo

public void updateInfo(AgentInfo agentInfo)
This method updates the display with data from agentInfo.